@@ -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 ) . '" ' ;
@@ -152,7 +152,7 @@ public function getColumns(string $table): array
152152 AND NOT a.attisdropped
153153 ORDER BY
154154 a.attnum
155- X, [$ this ->delimiteFQN ($ table )]);
155+ X, [$ this ->delimitFQN ($ table )]);
156156
157157 while ($ row = $ rows ->fetch ()) {
158158 $ column = $ row ;
@@ -183,7 +183,7 @@ public function getIndexes(string $table): array
183183 WHERE
184184 c1.relkind IN ('r', 'p')
185185 AND c1.oid = ?::regclass
186- X, [$ this ->delimiteFQN ($ table )]);
186+ X, [$ this ->delimitFQN ($ table )]);
187187
188188 while ($ row = $ rows ->fetch ()) {
189189 $ id = $ row ['name ' ];
@@ -218,7 +218,7 @@ public function getForeignKeys(string $table): array
218218 co.contype = 'f'
219219 AND cl.oid = ?::regclass
220220 AND nf.nspname = ANY (pg_catalog.current_schemas(FALSE))
221- X, [$ this ->delimiteFQN ($ table )]);
221+ X, [$ this ->delimitFQN ($ table )]);
222222
223223 while ($ row = $ rows ->fetch ()) {
224224 $ id = $ row ['name ' ];
@@ -243,8 +243,8 @@ public function convertToPhp(mixed $value, array $meta, TypeConverter $converter
243243 /**
244244 * Converts: schema.name => "schema"."name"
245245 */
246- private function delimiteFQN (string $ name ): string
246+ private function delimitFQN (string $ name ): string
247247 {
248- return implode ('. ' , array_map ([$ this , 'delimite ' ], explode ('. ' , $ name )));
248+ return implode ('. ' , array_map ([$ this , 'delimit ' ], explode ('. ' , $ name )));
249249 }
250250}
0 commit comments