getArray() and char[]
От | Jeffrey Cox |
---|---|
Тема | getArray() and char[] |
Дата | |
Msg-id | 6F3C7223-5334-4EAA-8A81-9F2A0414FB1A@gmail.com обсуждение исходный текст |
Ответы |
Re: getArray() and char[]
|
Список | pgsql-jdbc |
While looking into updating getProcedureColumns, to appropriately return COLUMN_TYPE, ran into a 'not implemented' exception. Seems that getArray is not implemented for arrays of type char. Kinda fuzzy on all this, but walked the code and ultimately added an entry in TypeInfoCache for 'char' and then updated AbstractJdbc2Array to handle 'char' as a java.lang.Character[] rather than java.lang.String[] it seems that the issue was that char[] was being identified as Types.OTHER in TypeInfoCache. Which fixed the unimplemented error. However, considering char[] as a String caused getArray() to return a string containing leading and trailing curly brackets. Hence the change to AbstractJdbc2Array. Am I missing something, or is there another way around this? Jeff
В списке pgsql-jdbc по дате отправления: