Skip to content
Browse files
fix: coerce array type names to lower case
  • Loading branch information
davecramer committed Oct 14, 2015
1 parent 78fe602 commit f1a5cc4a1dcc1ff52a607b31d2d6da65b6a9d530
Showing with 4 additions and 1 deletion.
  1. +4 −1 org/postgresql/jdbc4/
@@ -99,7 +99,10 @@ public Struct createStruct(String typeName, Object[] attributes) throws SQLExcep
public Array createArrayOf(String typeName, Object[] elements) throws SQLException
int oid = getTypeInfo().getPGArrayType(typeName);

// coerce to lower case to handle upper case type names
int oid = getTypeInfo().getPGArrayType(typeName.toLowerCase());

if (oid == Oid.UNSPECIFIED)
throw new PSQLException("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME);

0 comments on commit f1a5cc4

Please sign in to comment.