Subject | Re: Field names forced to upper case |
---|---|
Author | Roman Rokytskyy <rrokytskyy@yahoo.co.uk> |
Post date | 2002-12-16T15:41:12Z |
What version of JDBC driver do you use?
Thanks!
Roman Rokytskyy
--- In Firebird-Java@yahoogroups.com, "Robert (Jamie) Munro" <rjmunro-
egroups@i...> wrote:
Thanks!
Roman Rokytskyy
--- In Firebird-Java@yahoogroups.com, "Robert (Jamie) Munro" <rjmunro-
egroups@i...> wrote:
> The following:the
> lastExport = dbConn.createStatement().executeQuery(
> "select \"PacketID\" from \"FiBRE$PacketsTransferred\"");
> lastExport.next();
> previousExportID = new Long(lastExport.getLong("PacketID"));
>
> Gives me the error 'Column Unknown PACKETID'. It used to work when
> colum was called PACKETID, but now I have made it mixed case, andedited
> all the code in my program appropriately. I also tried:forced
>
> previousExportID = new Long(lastExport.getLong("\"PacketID\""));
>
> Which gave the error 'Column Unknown "PACKETID"'. Why is it being
> upper case? Is there a way to access lower case stuff by name? Ihave
> uninstalled Interserver, so I don't know what that did. I know Ican use
> getLong(1), and I will do that temporarily, but I prefer to usenames to
> make it clear which field I mean.
>
> Robert Munro
> --
> Robert (Jamie) Munro - IT department
> Viva Network - Helping 'children at risk'
> by linking & enhancing the Christian Response
> http://www.viva.org/
> PO Box 633, Oxford, England, OX2 0XZ
> Tel : +44 1865 320131 Switchboard : +44 1865 320 100