| @@ 35-40 (lines=6) @@ | ||
| 32 | $this->fieldClean($cfgname); |
|
| 33 | ||
| 34 | $sql = "CREATE TEXT SEARCH CONFIGURATION \"{$f_schema}\".\"{$cfgname}\" ("; |
|
| 35 | if ($parser != '') { |
|
| 36 | $this->fieldClean($parser['schema']); |
|
| 37 | $this->fieldClean($parser['parser']); |
|
| 38 | $parser = "\"{$parser['schema']}\".\"{$parser['parser']}\""; |
|
| 39 | $sql .= " PARSER = {$parser}"; |
|
| 40 | } |
|
| 41 | if ($template != '') { |
|
| 42 | $this->fieldClean($template['schema']); |
|
| 43 | $this->fieldClean($template['name']); |
|
| @@ 41-45 (lines=5) @@ | ||
| 38 | $parser = "\"{$parser['schema']}\".\"{$parser['parser']}\""; |
|
| 39 | $sql .= " PARSER = {$parser}"; |
|
| 40 | } |
|
| 41 | if ($template != '') { |
|
| 42 | $this->fieldClean($template['schema']); |
|
| 43 | $this->fieldClean($template['name']); |
|
| 44 | $sql .= " COPY = \"{$template['schema']}\".\"{$template['name']}\""; |
|
| 45 | } |
|
| 46 | $sql .= ')'; |
|
| 47 | ||
| 48 | if ($comment != '') { |
|
| @@ 376-382 (lines=7) @@ | ||
| 373 | $whatToComment = 'TEXT SEARCH TEMPLATE'; |
|
| 374 | } else { |
|
| 375 | $sql .= " DICTIONARY \"{$f_schema}\".\"{$dictname}\" ("; |
|
| 376 | if ($template != '') { |
|
| 377 | $this->fieldClean($template['schema']); |
|
| 378 | $this->fieldClean($template['name']); |
|
| 379 | $template = "\"{$template['schema']}\".\"{$template['name']}\""; |
|
| 380 | ||
| 381 | $sql .= " TEMPLATE = {$template}"; |
|
| 382 | } |
|
| 383 | if ($option != '') { |
|
| 384 | $sql .= ", {$option}"; |
|
| 385 | } |
|