----- Original Message -----
From: "Barry Lind"
> > the Oracle driver demands that columns be read in left-to-right order
> > without skipping a column
> This isn't true. My code does not always read data in column order and
> it runs fine on Oracle.
does your code access LONG columns?
the docs say:
"If your query selects multiple columns and one of the columns contains a
stream, then the contents of the columns following the stream column are not
available until the stream has been read, and the stream column is no longer
available once any following column is read. Any attempt to read a column
a streaming column closes the streaming column."
and (there is an example code skipped):
" - Call the stream column in SELECT-list order.
If your query selects multiple columns, the database sends each row as a set
bytes representing the columns in the SELECT order. If one of the columns
contains stream data, the database sends the entire data stream before
proceeding to the next column.
If you do not use the SELECT-list order to access data, then you can lose
stream data. That is, if you bypass the stream data column and access data
column that follows it, the stream data will be lost. For example, if you
access the data for the NUMBER column before reading the data from the
data column, the JDBC driver first reads then discards the streaming data
automatically. This can be very inefficient if the LONG column contains a
amount of data."
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "
In response to
pgsql-jdbc by date
|Next:||From: Sam Varshavchik||Date: 2002-04-19 19:13:29|
|Subject: Fastest method to insert data.|
|Previous:||From: Barry Lind||Date: 2002-04-19 18:21:45|
|Subject: Re: BLOB performance test FYI|