Nick Pomfret wrote:
>
> Does anyone know of a postgresql driver which works with oid fields in
> postgresql?
>
> When trying to insert an image (or any other oid field) I get a 'Bad
> conversion: java.lang.NumberFormatException'.
>
> The notes in http://jakarta.apache.org/turbine/howto/postgres-howto.html
> describe a patch which may fix the problem, having never applied a patch it
> didn't make much sense to me. I tried decompiling Field.class and making
> the changes but this didn't work.
>
> I'm working with village-1.5.2 and postgresql driver that comes downloaded
> with tdk2.1
>
> Thanks in advance.
>
> Nick
You have to change Connection.java in the jdbc2 directory..
Try this patch file:
+diff -r1.1 Connection.java
+286c286
< "int4","oid",
---
> "int4",
-158a159
+297a298
> "oid",
-172c173
+311c312
< Types.INTEGER,Types.INTEGER,
---
> Types.INTEGER,
-183a185
+322a324
> Types.VARBINARY,
Atte.
Jerome
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
- Au 4 coins d'Paris qu'on va l'retrouver �parpill� par petits bouts
fa�on puzzle...
Moi quand on m'en fait trop j'correctionne plus, j'dynamite...
j'disperse... et j'ventile...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]