You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -109,7 +109,46 @@ public function compileTableExists(): string
109
109
*/
110
110
publicfunctioncompileColumnListing(): string
111
111
{
112
-
return'select column_name as column_name, data_type as data_type from information_schema.columns where table_catalog = ? and table_schema = ? and table_name = ?';
112
+
return <<<'SQL'
113
+
SELECT
114
+
a.attname AS column_name,
115
+
CASE
116
+
WHEN format_type(a.atttypid, a.atttypmod) LIKE 'numeric%' THEN
Copy file name to clipboardExpand all lines: src/Schema/Grammars/PostgresSqlSwooleExtGrammar.php
+40-1Lines changed: 40 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,46 @@ public function compileTableExists(): string
27
27
*/
28
28
publicfunctioncompileColumnListing(): string
29
29
{
30
-
return'select column_name as column_name, data_type as data_type from information_schema.columns where table_catalog = $1 and table_schema = $2 and table_name = $3';
30
+
return <<<'SQL'
31
+
SELECT
32
+
a.attname AS column_name,
33
+
CASE
34
+
WHEN format_type(a.atttypid, a.atttypmod) LIKE 'numeric%' THEN
0 commit comments