Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f032b70

Browse files
committed
Fix for Druid. We did not support some PROCEDURE queries.
Dave Cramer
1 parent 3d56fb7 commit f032b70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ public java.sql.ResultSet getProcedures(String catalog, String schemaPattern, St
14891489
f[0] = new Field(connection, "PROCEDURE_CAT", iVarcharOid, 32);
14901490
f[1] = new Field(connection, "PROCEDURE_SCHEM", iVarcharOid, 32);
14911491
f[2] = new Field(connection, "PROCEDURE_NAME", iVarcharOid, 32);
1492-
f[3] = f[4] = f[5] = null; // reserved, must be null for now
1492+
f[3] = f[4] = f[5] = new Field(connection,"reserved",iVarcharOid,32); // null; // reserved, must be null for now
14931493
f[6] = new Field(connection, "REMARKS", iVarcharOid, 8192);
14941494
f[7] = new Field(connection, "PROCEDURE_TYPE", iInt2Oid, 2);
14951495

src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ public java.sql.ResultSet getProcedures(String catalog, String schemaPattern, St
14891489
f[0] = new Field(connection, "PROCEDURE_CAT", iVarcharOid, 32);
14901490
f[1] = new Field(connection, "PROCEDURE_SCHEM", iVarcharOid, 32);
14911491
f[2] = new Field(connection, "PROCEDURE_NAME", iVarcharOid, 32);
1492-
f[3] = f[4] = f[5] = null; // reserved, must be null for now
1492+
f[3] = f[4] = f[5] = new Field(connection,"reserved",iVarcharOid,32); // null; // reserved, must be null for now
14931493
f[6] = new Field(connection, "REMARKS", iVarcharOid, 8192);
14941494
f[7] = new Field(connection, "PROCEDURE_TYPE", iInt2Oid, 2);
14951495

0 commit comments

Comments
 (0)