Commit graph

2351 commits

Author SHA1 Message Date
Kris Jurka
af8e9a44fe DatabaseMetaData.getSearchString escape was a \ short of working
because both Java's String constructor and pg's input parser strip
off backslashes.
2004-08-11 06:40:16 +00:00
Michael Meskes
a7d68b42f0 Fixed handling of cyclic defines. 2004-07-20 18:22:53 +00:00
Kris Jurka
7b2c575d4e When retrieving an array of numerics it attempted to set the scale on
the retrieved data to zero, which doesn't work for non-integer values.

Oliver Dauben
2004-07-15 10:00:20 +00:00
Michael Meskes
e5a806bb29 Added free() calls against memory leak in interval.c. 2004-07-05 18:54:01 +00:00
Michael Meskes
a3c695d0c2 - Only use typedefs inside their scope.
- Variables that are out of scope, were not removed all the time.
- Make a varchar NULL set everything to 0 when not using indicators.
2004-06-27 12:32:47 +00:00
Kris Jurka
46f2ee852b Fix apparently harmless typo. {$srcdir} -> ${srcdir}
Markus Schaber
2004-06-24 09:51:44 +00:00
Kris Jurka
15a932c50f Close the existing socket connection when reverting to the V2
protocol, or encountering other connection failures.

Laurent Sylvain
2004-06-22 09:37:03 +00:00
Kris Jurka
bb95de1f2a Fix some problems with result sets positioned before the start or
after the end of results.  You could still call a number of methods
on them like getXXX, updateXXX, and updateRow().
2004-06-21 03:12:01 +00:00
Kris Jurka
922c2638e4 Fix updatable ResultSets stream methods (ascii, character, binary).
The existing code didn't correctly allocate data arrays, and it
failed to loop when a stream didn't provide the full amount of
data requested of it.

Reported by Jan de Visser.
2004-06-21 02:01:12 +00:00
Kris Jurka
3cec5b804d Foreign key information results should have column name FKTABLE_CAT
instead of FK_TABLE_CAT.

From jeff@bonevich.com.
2004-06-18 05:29:11 +00:00
Michael Meskes
f9589d4acb Added patch by ISHIDA Akio to allow indicators in execute statements. 2004-06-17 11:52:59 +00:00
Kris Jurka
d9a44efc25 Don't throw an Exception in locatorsUpdateCopy() even though the
ability to update LOBs is unimplemented.  The 1.5 JDK's CachedRowSet
implementation calls this method regardless of whether large objects
are used or not.
2004-06-16 18:28:45 +00:00
Kris Jurka
94fdcc052a Bump the build number to relase a new version. 2004-06-16 05:23:33 +00:00
Kris Jurka
7e95c30953 When deleteRow() is called on an updateable ResultSet the ResultSet
should be positioned on the previous row.

Reported by Bob Messenger and Chris Pesarchick.
2004-06-16 05:12:13 +00:00
Kris Jurka
0bd656e407 Fix DatabaseMetaData results for determining foreign key
relationships.  Resulting columns from getImportedExportedKeys should
be FKTABLE_SCHEM and PKTABLE_SCHEM, not _SCHEMA.

Per report from jeff@bonevich.com.
2004-06-16 03:36:56 +00:00
Tom Lane
da736b79e7 Suppress compile warnings on machines where the INT64CONST() decoration
is actually needed.  Backport of Oliver Elphick's recent patch.
2004-06-13 17:17:49 +00:00
Bruce Momjian
ba57e33d7f Stamp 7.4.3. Still need release notes. 2004-06-11 18:17:54 +00:00
Bruce Momjian
257a8feb60 ECPG preprocessor for PostgreSQL 7.4.1, 7.4.2 doubles const,
volatile, static, and register keywords before variables,
declared as VARCHAR.

Sergey N. Yatskevich
2004-06-11 17:32:55 +00:00
Michael Meskes
962c362495 Fixed DEALLOCATE PREPARE to use correct function call 2004-05-21 13:50:59 +00:00
Kris Jurka
10a8cc5cc5 Fix setting timestamp values with very early year values, like 2, by
formatting all years with four digits.  Previously 0002-10-30 was
being sent as 2-10-30 which got turned into 2030-02-10.

Per report from oneway_111.
2004-05-17 20:38:56 +00:00
Tom Lane
fedfc5d363 Propagate enlargeStringInfo() fixes into the equivalent code in
pqexpbuffer.c.  While a client-side failure doesn't seem like a
security issue, it's still a bug.
2004-05-14 00:20:51 +00:00
Michael Meskes
006987781d Just another bug in adjust_informix. 2004-05-10 13:46:39 +00:00
Michael Meskes
86ac85b6ae - Fixed bug that reversed string length in typedefs. 2004-05-07 13:43:29 +00:00
Kris Jurka
e6e814c2b1 Allow public access to radius field to match other geometric types
behavior.

Per report from Declan Lynch.
2004-05-07 05:28:22 +00:00
Michael Meskes
d57af54ffa Fixed bug in adjust_informix that treated arrays as simple variables. 2004-05-05 15:06:21 +00:00
Kris Jurka
79e42a6eb2 Update the build.xml file to support building with the new 1.5 jdk
and ant 1.6.
2004-04-26 08:28:32 +00:00
Kris Jurka
1a60128573 Allow updateable ResultSets to support types that aren't directly
mappable to Java types, for example cidr.

Per report from Moray Taylor.
2004-04-24 01:54:45 +00:00
Michael Meskes
d8e53bd6c0 Fixed memory misusage in variable handling. 2004-04-23 06:17:27 +00:00
Barry Lind
28455721ff Fix for bug with the jdbc driver not properly working with binary cursors and
the V3 protocol.
 Modified Files:
  Tag: REL7_4_STABLE
 	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/core/BaseResultSet.java
 	jdbc/org/postgresql/core/BaseStatement.java
 	jdbc/org/postgresql/core/Field.java
 	jdbc/org/postgresql/core/PGStream.java
 	jdbc/org/postgresql/core/QueryExecutor.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
 	jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
 	jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java
 	jdbc/org/postgresql/jdbc1/Jdbc1RefCursorResultSet.java
 	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
 	jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
 	jdbc/org/postgresql/jdbc2/Array.java
 	jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
 	jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java
 	jdbc/org/postgresql/jdbc2/Jdbc2RefCursorResultSet.java
 	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
 	jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
 	jdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
 	jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java
 	jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java
 	jdbc/org/postgresql/jdbc3/Jdbc3RefCursorResultSet.java
 	jdbc/org/postgresql/jdbc3/Jdbc3ResultSet.java
 	jdbc/org/postgresql/jdbc3/Jdbc3Statement.java
 	jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
 	jdbc/org/postgresql/test/jdbc2/OID74Test.java
 Added Files:
  Tag: REL7_4_STABLE
 	jdbc/org/postgresql/test/jdbc2/ServerCursorTest.java
2004-03-29 17:47:47 +00:00
Michael Meskes
d9a1b2548f Fixed possible segfault in type.c (by Juergen Cappel) 2004-03-29 15:12:08 +00:00
Tom Lane
0175b6d101 Fix error in termination of COPY IN mode when using V2 protocol.
Report and fix per ljb, 8-Mar-04.
2004-03-14 22:01:01 +00:00
Michael Meskes
e6bc372174 Committed Informix compat bug fix to 7.4 as well. 2004-03-14 12:18:35 +00:00
Bruce Momjian
49bc9c45c9 Brand 7.4.2. Release notes still need work. 2004-03-05 19:57:22 +00:00
Tom Lane
5b6d0a4df7 libpq's query to get the OIDs of large-object support functions was not
schema-safe.  Make it so, and improve the internal support for knowledge
of server version.
2004-03-05 01:54:13 +00:00
Michael Meskes
ea41a8cc5f - Fixed segfault due to missing check for variable declaration.
- Added check for multidimensional array usage.
2004-03-04 07:38:50 +00:00
Kris Jurka
926fd43d77 Update build number in anticipation of 7.4.2 release. With no
currently outstanding issues we'll flag now, so the release doesn't
slip out the door without it.
2004-03-04 03:25:10 +00:00
Bruce Momjian
fee9629cf1 Add missing sprompt.obj psql usage for Borland compiler, per private
report from krizsan.

Backpatch to 7.4.X.
2004-03-02 15:17:32 +00:00
Michael Meskes
f7a9dbce8d Added the missing rules for VOLATILE. 2004-03-02 06:52:18 +00:00
Michael Meskes
bc0476f9c8 - Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.
2004-02-24 16:09:16 +00:00
Kris Jurka
935e6e502d Closing a Connection or Statement object twice should be a no-op
instead of throwing an Exception.

Per report from Victor Sergienko.
2004-02-24 13:11:45 +00:00
Michael Meskes
fd7d98a271 Fixed incorrect output of indicator structs using the name of the data struct. 2004-02-23 18:14:30 +00:00
Michael Meskes
fe92ed8b78 - Allowed some C keywords to be used as SQL column names. This used to work in 7.3.* 2004-02-15 15:40:54 +00:00
Michael Meskes
67893da1c1 - Added missing braces to array parsing.
- Set ecpg version to 3.1.1.
        - Removed that old debugging output that I forgot the last time.
2004-02-15 13:50:02 +00:00
Tom Lane
18b8cb5a9e Repair missing inclusions of -lintl for shared libraries. 2004-02-10 07:26:48 +00:00
Kris Jurka
24bd490369 Don't try to turn the random bytes from a md5 salt into a String
because it may not be a valid String depending on the encoding.

Per report from Nadeem Bitar.
2004-02-10 01:58:48 +00:00
Kris Jurka
932001350b V3 NotificationResonse messages were trying to be received as V2
messages.  Also the PID was being read in the wrong byte order.
Finally add a test case for listen/notify.

Per report from Hans Nather.
2004-02-03 05:43:24 +00:00
Kris Jurka
d71188860e ConnectionPool and SimpleDataSource are marked Serializable, but their
superclass (which contains a number of state variables) is not.  To
correctly serialize these objects we need to manually implement
writeObject and readObject.

Per report from R. Lemos
2004-02-03 05:28:17 +00:00
Kris Jurka
1a92a4c10c ResultSet.next() and previous() incremented or decremented the
internal current_row variable regardless of wether they succeeded or
not.  This generated some ArrayIndexOutOfBoundsExceptions when the
errorneous adjustment current_row led to out of range values.

Per report from Fischer Krisztian.
2004-02-03 05:25:38 +00:00
Kris Jurka
9287630fbc Fix the setXXXStream methods. If passed a null InputStream, convert
this to a setNull call.  The code originally would try to read the
whole stream in one call to read(), but this doesn't work.  The
InputStream API makes it clear you must be prepared to loop and
continue reading if you didn't get the whole request on the first
try.

Per report from Martin Holz.
2004-02-03 05:13:56 +00:00
Kris Jurka
7ca2bff95f Newer versions of the 1.4.2 jdk give warnings about having return in a
finally clause.
2004-02-03 05:00:21 +00:00