summaryrefslogtreecommitdiff
path: root/src/interfaces
AgeCommit message (Collapse)Author
2001-07-06Repair libpq to follow protocol by not sending Terminate messages beforePeter Eisentraut
the startup exchange is complete. Also make sure that packets defined as single bytes aren't sent with a trailing '\0'.
2001-07-04Remove ConnectionHook.java. No longer used, bad code.Bruce Momjian
2001-07-04The attached patch removes some old and dead code (and some relatedBruce Momjian
misleading comments) from the PG_Stream class. Anders Bengtsson
2001-07-04This patch moves the setting of the timezone on the SimpleDateFormatBruce Momjian
object inside the initialization section instead of doing it everytime the setTimestamp method is called. Thanks to Dave Harkness for this suggestion. Barry Lind
2001-07-04Attached is a patch to remove the ConnectionHook functionality and thusBruce Momjian
the JDK 1.3 dependency. For a further explanation see my posting to the JDBC list on Friday, explaining why this is being done. Barry Lind
2001-06-29SimpleDateFormat performance improvement, thread-safe.Bruce Momjian
Barry Lind
2001-06-27Handle Procedure calls.Hiroshi Inoue
Now the version is 7.01.0006.
2001-06-25High memory usageBruce Momjian
Here is a patch which inspired by Michael Stephens that should work Dave Cramer
2001-06-23Add TEMPORARY sequences and have SERIAL on a temp table have a temporaryBruce Momjian
sequence.
2001-06-22Include catalog/pg_type.h instead of manually extracting the interestingPeter Eisentraut
oid values.
2001-06-22Change SQLPrimaryKeys() so that it detects the primary keyHiroshi Inoue
other than tablename_pkey.
2001-06-20Make sure that everything says version 3.2.D'Arcy J.M. Cain
2001-06-20Add NUMERICOID to this script. This script can be run occasionally toD'Arcy J.M. Cain
make sure that we are using the right #defines in pgmodule.c but the OIDs are never actually expected to change.
2001-06-20Change the driver so that large error messages are returnedHiroshi Inoue
by multiple SQLError calls.
2001-06-19Corrected the check for *message truncated* for the future use.Hiroshi Inoue
2001-06-19Changed the error handling as follows.Hiroshi Inoue
1) ERRORs cause an SQL_ERROR and the SQLSTATE='S1000'. 2) NOTICEs cause an SQL_SUCCESS_WITH_INFO and the succeeding SQLError() returns the NOTICE message.
2001-06-18Fix *escape* handling in copy_statement_with_parameters(was my fault).Hiroshi Inoue
2001-06-15fixed bug in connect.cMichael Meskes
2001-06-15Add bpchar to list of string types.D'Arcy J.M. Cain
Thanks to Steve McClure <smcclure@racemi.com> for the patch.
2001-06-13- Synced preproc.y with gram.y.Michael Meskes
- Applied bug fix by John Summerfield.
2001-06-12Fix compile error caused by patch application.Bruce Momjian
2001-06-12I installed postgres 7.1 with --enable-odbc. I then installedBruce Momjian
tclodbc (http://sourceforge.net/projects/tclodbc) and libiodbc-2.50.3 (http://www.iodbc.org/dist/libiodbc-2.50.3.tar.gz). I could not get either to work... postgres would not find the global odbcinst.ini file. I traced this to src/interfaces/odbc/gpps.c -- here are the many things I think are wrong: Run tclodbc and do a ``database db <DSNname>'' where ``DSNname'' is one of the DSN's in /usr/local/etc/odbcinst.ini (or wherever the global ini file is installed.) The result is always the error message that ``one of server,port,database,etc. are missing''. Run libiodbc-2.50.3/samples/odbctest <DSNname>. The command fails to connect to the database and just exits. Dave Bodenstab
2001-06-11 Got two patches that were found by folks on the Castor list, that we'd like toBruce Momjian
submit. These were done for the jdbc2 driver. The first one is for support of the Types.BIT in the PreparedStatement class. The following lines need to be inserted in the switch statment, at around line 530: (Prepared statment, line 554, before the default: switch case Types.BIT: if (x instanceof Boolean) { set(parameterIndex, ((Boolean)x).booleanValue() ? "TRUE" : "FALSE"); } else { throw new PSQLException("postgresql.prep.type"); } break; The second one is dealing with blobs, inserted in PreparedStatemant.java (After previous patch line, 558): case Types.BINARY: case Types.VARBINARY: setObject(parameterIndex,x); break; and in ResultSet.java (Around line 857): case Types.BINARY: case Types.VARBINARY: return getBytes(columnIndex); Ned Wolpert <ned.wolpert@knowledgenet.com>
2001-06-07Document and work around ANT bug that prevents directory deletion.Bruce Momjian
2001-06-07I have ported another Python Postgres interface to Windows (PgSQL). It seemsBruce Momjian
that not many people actually use libpq on Win32; I have found another bug. Some functions that are defined in libpq-fe.h aren't exported in the DLL version of the library. I have added them to src/interfaces/libpq/libpqdll.def. The new complete file is attached. Gerhard H?ring
2001-06-07This adds unary plus capability. No grammar changes, per Tom's request.Bruce Momjian
Marko Kreen
2001-06-06Add large object finalization cleanup to the proper java file.Bruce Momjian
2001-06-06Remove large object finalize code. Compile error.Bruce Momjian
2001-06-04protected void finalize() {Bruce Momjian
close(); } in LargeObject.java so that the db resources are released when it is garbage collected or am I missing something? Philip Crotwell
2001-06-01The following patch for JDBC fixes an issue with jdbc running on aBruce Momjian
non-multibyte database loosing 8bit characters. This patch will cause the jdbc driver to ignore the encoding reported by the database when multibyte isn't enabled and use the JVM default in that case. Barry Lind
2001-06-01 - Synced preproc.y with gram.y.Michael Meskes
- Synced pgc.l with scan.l. - Synced keyword.c. - Set ecpg version to 2.9.0. - Set library version to 3.3.0.
2001-05-30Remove OLD_FILE_NAMING code. No longer used.Bruce Momjian
2001-05-30I just got bitten by this too. I use type timestamp in theBruce Momjian
database, and often need the latest timestamp, but want to format it as a date. With 7.0.x, I just select ts from foo order by ts desc limit 1 and in java: d = res.getDate(1); but this fails everywhere in my code now :( http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame7.html says The ResultSet.getXXX methods will attempt to convert whatever SQL type was returned by the database to whatever Java type is returned by the getXXX method. Palle Girgensohn
2001-05-30Fix for Druid. We did not support some PROCEDURE queries.Bruce Momjian
Dave Cramer
2001-05-30Add missing comma.D'Arcy J.M. Cain
2001-05-28Suppress useless memmove() when buffer already contains left-justifiedTom Lane
data.
2001-05-28Attached is a patch to fix the problem Thomas mentions below. The JDBCBruce Momjian
driver now correctly handles timezones that are offset fractional hours from GMT (ie. -06:30). Barry Lind
2001-05-27Add NUMERICOID return type. Treat it as floating point for now. ThisD'Arcy J.M. Cain
could be changed if we create a new Python type that matches it better but NUMERIC <==> FLOAT probably works fine for most cases.
2001-05-25Mention failure of ANT to delete directories on clean.Bruce Momjian
2001-05-25While changing Cygwin Python to build its core as a DLL (like Win32Bruce Momjian
Python) to support shared extension modules, I have learned that Guido prefers the style of the attached patch to solve the above problem. I feel that this solution is particularly appropriate in this case because the following: PglargeType PgType PgQueryType are already being handled in the way that I am proposing for PgSourceType. Jason Tishler
2001-05-25Back out, per Peter E.Bruce Momjian
> > The attached patch changes src/interfaces/python/GNUmakefile to use the > > value of DESTDIR like the rest (or at least most) of the PostgreSQL > > makefiles. I found this problem when trying to package a pre-built > > Cygwin PostgreSQL distribution, but this problem is platform independent.
2001-05-25The attached patch changes src/interfaces/python/GNUmakefile to use theBruce Momjian
value of DESTDIR like the rest (or at least most) of the PostgreSQL makefiles. I found this problem when trying to package a pre-built Cygwin PostgreSQL distribution, but this problem is platform independent. The problem manifests itself when one tries to install into a stagging area (e.g., to build a tarball) instead of a real install. In this case, pg.py and _pgmodule$(SO) still end up being installed in the configured prefix directory ignoring the value of DESTDIR. Unfortunately, this patch does not handle the case where PostgreSQL and Python are configured with different prefixes. Since the Python Makefile is automatically generated and does not use DESTDIR, I believe that this issue will be difficult to correct. If anyone has ideas on how to fix this issue, then I'm quite willing to rework the patch to take the suggestion into account. Jason Tishler
2001-05-25The following patch corrects a make install problem when buildingBruce Momjian
under Cygwin. The root cause of this problem is that (Sun) java is a native Win32 app and hence does not understand Cygwin Posix style paths. The solution is to use Cygwin's cygpath utility to convert the Posix style JDBC installation directory path into a Win32 one before invoking ant. I'm not sure if my patch is the best way to correct this issue but my goal was to confine the Cygwin specific constructs to Jason Tishler
2001-05-25Get rid of the following size limit.Hiroshi Inoue
1) Query size limit(was 65536) for >=7.0 servers. 2) Text size limit(was 8190) for 7.1 servers.
2001-05-24There are a number of changes. The main ones are:Bruce Momjian
return oid on insert handle all primitive data types handle single quotes and newlines in Strings handle null variables deal with non public and final variables (not very well, though) Ken K
2001-05-23Fix ANT for *.properties files.Bruce Momjian
2001-05-23Fix ANT so it only has '*.class' files, not the 'tags' file.Bruce Momjian
2001-05-22Back out timezone fix. Not needed in jdbc1.Bruce Momjian
2001-05-22Bump major libpq++ version after API changes, Patrick WelcheBruce Momjian
2001-05-19Prevent ANT from recreating the JAR files just because theBruce Momjian
errors.properties files were being copied.