|
@@ 6579-6584 (lines=6) @@
|
| 6576 |
|
$this->fieldClean($cfgname); |
| 6577 |
|
|
| 6578 |
|
$sql = "CREATE TEXT SEARCH CONFIGURATION \"{$f_schema}\".\"{$cfgname}\" ("; |
| 6579 |
|
if ($parser != '') { |
| 6580 |
|
$this->fieldClean($parser['schema']); |
| 6581 |
|
$this->fieldClean($parser['parser']); |
| 6582 |
|
$parser = "\"{$parser['schema']}\".\"{$parser['parser']}\""; |
| 6583 |
|
$sql .= " PARSER = {$parser}"; |
| 6584 |
|
} |
| 6585 |
|
if ($template != '') { |
| 6586 |
|
$this->fieldClean($template['schema']); |
| 6587 |
|
$this->fieldClean($template['name']); |
|
@@ 6585-6589 (lines=5) @@
|
| 6582 |
|
$parser = "\"{$parser['schema']}\".\"{$parser['parser']}\""; |
| 6583 |
|
$sql .= " PARSER = {$parser}"; |
| 6584 |
|
} |
| 6585 |
|
if ($template != '') { |
| 6586 |
|
$this->fieldClean($template['schema']); |
| 6587 |
|
$this->fieldClean($template['name']); |
| 6588 |
|
$sql .= " COPY = \"{$template['schema']}\".\"{$template['name']}\""; |
| 6589 |
|
} |
| 6590 |
|
$sql .= ')'; |
| 6591 |
|
|
| 6592 |
|
if ($comment != '') { |
|
@@ 6910-6916 (lines=7) @@
|
| 6907 |
|
$whatToComment = 'TEXT SEARCH TEMPLATE'; |
| 6908 |
|
} else { |
| 6909 |
|
$sql .= " DICTIONARY \"{$f_schema}\".\"{$dictname}\" ("; |
| 6910 |
|
if ($template != '') { |
| 6911 |
|
$this->fieldClean($template['schema']); |
| 6912 |
|
$this->fieldClean($template['name']); |
| 6913 |
|
$template = "\"{$template['schema']}\".\"{$template['name']}\""; |
| 6914 |
|
|
| 6915 |
|
$sql .= " TEMPLATE = {$template}"; |
| 6916 |
|
} |
| 6917 |
|
if ($option != '') { |
| 6918 |
|
$sql .= ", {$option}"; |
| 6919 |
|
} |