@@ -48,7 +48,7 @@ public function classifyException(Nette\Database\DriverException $e): ?string
4848 /********************* SQL ****************d*g**/
4949
5050
51- public function delimite (string $ name ): string
51+ public function delimit (string $ name ): string
5252 {
5353 // @see http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
5454 return '" ' . str_replace ('" ' , '"" ' , $ name ) . '" ' ;
@@ -155,7 +155,7 @@ public function getColumns(string $table): array
155155 AND NOT a.attisdropped
156156 ORDER BY
157157 a.attnum
158- X, [$ this ->delimiteFQN ($ table )]);
158+ X, [$ this ->delimitFQN ($ table )]);
159159
160160 while ($ row = $ rows ->fetch ()) {
161161 $ column = $ row ;
@@ -186,7 +186,7 @@ public function getIndexes(string $table): array
186186 WHERE
187187 c1.relkind IN ('r', 'p')
188188 AND c1.oid = ?::regclass
189- X, [$ this ->delimiteFQN ($ table )]);
189+ X, [$ this ->delimitFQN ($ table )]);
190190
191191 while ($ row = $ rows ->fetch ()) {
192192 $ id = $ row ['name ' ];
@@ -221,7 +221,7 @@ public function getForeignKeys(string $table): array
221221 co.contype = 'f'
222222 AND cl.oid = ?::regclass
223223 AND nf.nspname = ANY (pg_catalog.current_schemas(FALSE))
224- X, [$ this ->delimiteFQN ($ table )]);
224+ X, [$ this ->delimitFQN ($ table )]);
225225
226226 while ($ row = $ rows ->fetch ()) {
227227 $ id = $ row ['name ' ];
@@ -246,8 +246,8 @@ public function convertToPhp(mixed $value, array $meta, TypeConverter $converter
246246 /**
247247 * Converts: schema.name => "schema"."name"
248248 */
249- private function delimiteFQN (string $ name ): string
249+ private function delimitFQN (string $ name ): string
250250 {
251- return implode ('. ' , array_map ([$ this , 'delimite ' ], explode ('. ' , $ name )));
251+ return implode ('. ' , array_map ([$ this , 'delimit ' ], explode ('. ' , $ name )));
252252 }
253253}
0 commit comments