|
@@ 6727-6732 (lines=6) @@
|
| 6724 |
|
$this->fieldClean($cfgname); |
| 6725 |
|
|
| 6726 |
|
$sql = "CREATE TEXT SEARCH CONFIGURATION \"{$f_schema}\".\"{$cfgname}\" ("; |
| 6727 |
|
if ($parser != '') { |
| 6728 |
|
$this->fieldClean($parser['schema']); |
| 6729 |
|
$this->fieldClean($parser['parser']); |
| 6730 |
|
$parser = "\"{$parser['schema']}\".\"{$parser['parser']}\""; |
| 6731 |
|
$sql .= " PARSER = {$parser}"; |
| 6732 |
|
} |
| 6733 |
|
if ($template != '') { |
| 6734 |
|
$this->fieldClean($template['schema']); |
| 6735 |
|
$this->fieldClean($template['name']); |
|
@@ 6733-6737 (lines=5) @@
|
| 6730 |
|
$parser = "\"{$parser['schema']}\".\"{$parser['parser']}\""; |
| 6731 |
|
$sql .= " PARSER = {$parser}"; |
| 6732 |
|
} |
| 6733 |
|
if ($template != '') { |
| 6734 |
|
$this->fieldClean($template['schema']); |
| 6735 |
|
$this->fieldClean($template['name']); |
| 6736 |
|
$sql .= " COPY = \"{$template['schema']}\".\"{$template['name']}\""; |
| 6737 |
|
} |
| 6738 |
|
$sql .= ')'; |
| 6739 |
|
|
| 6740 |
|
if ($comment != '') { |
|
@@ 7066-7072 (lines=7) @@
|
| 7063 |
|
$whatToComment = 'TEXT SEARCH TEMPLATE'; |
| 7064 |
|
} else { |
| 7065 |
|
$sql .= " DICTIONARY \"{$f_schema}\".\"{$dictname}\" ("; |
| 7066 |
|
if ($template != '') { |
| 7067 |
|
$this->fieldClean($template['schema']); |
| 7068 |
|
$this->fieldClean($template['name']); |
| 7069 |
|
$template = "\"{$template['schema']}\".\"{$template['name']}\""; |
| 7070 |
|
|
| 7071 |
|
$sql .= " TEMPLATE = {$template}"; |
| 7072 |
|
} |
| 7073 |
|
if ($option != '') { |
| 7074 |
|
$sql .= ", {$option}"; |
| 7075 |
|
} |