aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
Commit message (Collapse)AuthorAge
* Remove OLD_FILE_NAMING code. No longer used.Bruce Momjian2001-05-30
|
* I just got bitten by this too. I use type timestamp in theBruce Momjian2001-05-30
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix for Druid. We did not support some PROCEDURE queries.Bruce Momjian2001-05-30
| | | | Dave Cramer
* Add missing comma.D'Arcy J.M. Cain2001-05-30
|
* Suppress useless memmove() when buffer already contains left-justifiedTom Lane2001-05-28
| | | | data.
* Attached is a patch to fix the problem Thomas mentions below. The JDBCBruce Momjian2001-05-28
| | | | | | | driver now correctly handles timezones that are offset fractional hours from GMT (ie. -06:30). Barry Lind
* Add NUMERICOID return type. Treat it as floating point for now. ThisD'Arcy J.M. Cain2001-05-27
| | | | | could be changed if we create a new Python type that matches it better but NUMERIC <==> FLOAT probably works fine for most cases.
* Mention failure of ANT to delete directories on clean.Bruce Momjian2001-05-25
|
* While changing Cygwin Python to build its core as a DLL (like Win32Bruce Momjian2001-05-25
| | | | | | | | | | | | | | | 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
* Back out, per Peter E.Bruce Momjian2001-05-25
| | | | | | | > > 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.
* The attached patch changes src/interfaces/python/GNUmakefile to use theBruce Momjian2001-05-25
| | | | | | | | | | | | | | | | | | | | 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
* The following patch corrects a make install problem when buildingBruce Momjian2001-05-25
| | | | | | | | | | | | 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
* Get rid of the following size limit.Hiroshi Inoue2001-05-25
| | | | | 1) Query size limit(was 65536) for >=7.0 servers. 2) Text size limit(was 8190) for 7.1 servers.
* There are a number of changes. The main ones are:Bruce Momjian2001-05-24
| | | | | | | | | | | 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
* Fix ANT for *.properties files.Bruce Momjian2001-05-23
|
* Fix ANT so it only has '*.class' files, not the 'tags' file.Bruce Momjian2001-05-23
|
* Back out timezone fix. Not needed in jdbc1.Bruce Momjian2001-05-22
|
* Bump major libpq++ version after API changes, Patrick WelcheBruce Momjian2001-05-22
|
* Prevent ANT from recreating the JAR files just because theBruce Momjian2001-05-19
| | | | errors.properties files were being copied.
* Fix pg_index statistics query to join proper relation.Bruce Momjian2001-05-17
|
* Included is a patch that fixes a bug introduced in the lastest versionBruce Momjian2001-05-17
| | | | | | | | | | | | | | (1.22) of interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java. That change removed a line that set the variable s to the value of the stringbuffer. This fix changes the following if checks to check the length of the stringbuffer instead of s, since s no longer contains the string the if conditions are expecting. The bug manifests itself in getTimestamp() loosing the timezone information of timestamps selected from the database, thereby causing the time to be incorrect. Barry Lind
* Cleanup of backpatch of jdbc2 improvements to jdbc1:Bruce Momjian2001-05-17
| | | | | | | | | | | | | | | Here's what I came up with. The biggest difference api between JDK1.x and later versions is the support for collections. The problem was with the Vector class; in jdk1.x there is no method called add, so I changed the calls to addElement. Also no addAll, so I rewrote the method slightly to not require addAll. While reviewing this I notices some System.out.println statements that weren't commented out. So I commented them out in both versions. The upshot of all of this is that I have clean compile, but no idea if the code works ;( Dave Cramer
* Fix 'make clean' with jdbc and ant by using filesets.Bruce Momjian2001-05-17
|
* 1) Decrease the size of some buffers.Hiroshi Inoue2001-05-17
| | | | 2) Repair broken SQLStatistics().
* Mark column as not used.Bruce Momjian2001-05-17
|
* Add missing paren.Bruce Momjian2001-05-16
|
* Fix for HASH for index lookups in ODBC.Bruce Momjian2001-05-16
|
* This patch fixes a bug which occurs when setObject(1,obj) is called and objBruce Momjian2001-05-16
| | | | | | is of type Object, and is null Dave Cramer
* Add NUMERIC tests to jdbc code.Bruce Momjian2001-05-16
| | | | David Esposito
* I was trying to get a very nice FREE graphical db tool called DbVisualizerBruce Momjian2001-05-16
| | | | | | | | | | | | (http://www.ideit.com/products/dbvis/) to work with Postgresql and I found out the following bug: if database has views then getTables() gets the null pointer exception ('order by relname' makes the listing tree in DbVisualizer a lot useful !!) This patch should propably be applied to the the jdbc1's DatabaseMetaData.java, too. Panu Outinen
* Change the line:Bruce Momjian2001-05-16
| | | | | | | | return ((c == 't') || (c == 'T')); int the getBoolean function on line 184:ish to: return ((c == 't') || (c == 'T') (c == '1')); Hunter Hillegas
* Backpatch jdbc2 fixes to jdbc1, ANT fixes, from Peter EisentrautBruce Momjian2001-05-16
|
* Backpatch getImportedKeys to jdbc1.Bruce Momjian2001-05-16
|
* Backpatch ORDER BY fix to jdbc1.Bruce Momjian2001-05-16
|
* Here's an easy patch for todays snapshot to sort the result of theBruce Momjian2001-05-16
| | | | | | public ResultSet getTables(String catalog, String schemaPattern, String Jeroen van Vianen
* jdbc2 implementation of getImportedKeys.Bruce Momjian2001-05-16
| | | | Ola Sundell
* The current implementation of BlobInputStream doesBruce Momjian2001-05-16
| | | | | | | | | | | | not properly handle 8-bit unsigned data as it blindly casts the byte to an int, which java most helpfully promotes to a signed type. This causes problems when you can only return -1 to indicated EOF. The following patch fixes the bug and has been tested locally on image data. Chad David
* Fix small thinko.D'Arcy J.M. Cain2001-05-15
|
* Remove columns pg_index.haskeytype and pg_index.indisclustered. Not used.Bruce Momjian2001-05-14
|
* Add provisions for using strdup replacement in the places that stillPeter Eisentraut2001-05-12
| | | | | | needed it. from our fearless Ultrix porter, Alexander Klimov <ask@wisdom.weizmann.ac.il>
* PL/Python should build portably now, if you can get over the fact thatPeter Eisentraut2001-05-12
| | | | | there's no shared libpython. Test suite works as well. Also, add some documentation.
* Stamp CVS as 7.2. Update all interface version numbers. This is theBruce Momjian2001-05-11
| | | | | time to do it, not during beta because people are using this stuff in production sometimes.
* that's just me again, here's normal patch for KOI8_U toBruce Momjian2001-05-09
| | | | | | | | | | | | | jdbc/Connection.java Andy P.S. in Connection.java if encoding=="WIN" then dbEncoding is set to "Cp1252". What if it's Cyrillic "WIN"? Than it should be "Cp1251". Is there any way to fix that without making different "WIN" encodings in PostgreSQL? Andy Rysin
* Fix libpq++'s FieldSize to return int, not short.Bruce Momjian2001-05-09
|
* Add mention of getLength returning short.Bruce Momjian2001-05-09
|
* Here's a version of my suggested diffs transplanted to 7.1 beta 5. I'mBruce Momjian2001-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | still looking at the best way to integrate Tom Vijlbrief's fixes (insofar as they're still needed); would 7.2 be a suitable time for incompatible API changes? Jeroen Changes: (*) Introduced bool, true, false (replacing some int, 1, 0) (*) Made some member functions const (*) Documented GetIsNull() (*) Marked DisplayTuples() and PrintTuples() as obsolescent; fixed possible portability problem (assumed that NULL pointer equals all-zero bit pattern) (*) PrintTuples(): renamed width parameter to fillAlign to conform with other usage; fixed memory leak and compile issue w.r.t. field separator (should also slightly improve performance) (*) Fixed some minor compilation issues (*) Moved "using namespace std;" out of headers, where they didn't belong; used new (temporary) preprocessor macro PGSTD to do this (*) Made ToString() static, removed unneeded memset(), made buffer size adapt to sizeof(int) (*) Made some constructors explicit (*) Changed some const std::string & parameters to plain std::string (*) Marked PgCursor::Cursor(std::string) as obsolescent (setter with same name as getter--bad style) (*) Renamed some paramaters previously named "string" (*) Introduced size_type typedef for number of tuples in result set (*) PgTransaction now supports re-opening after closing, and aborts if not explicitly committed prior to destruction J. T. Vermeulen
* Mention new jdbc mailing list instead of interfaces list.Bruce Momjian2001-05-09
|
* Run pgindent on ODBC code only, to reformat new comments.Bruce Momjian2001-05-08
|
* ODBC source code cleanup patch. Should match rest of PostgreSQL code better.Bruce Momjian2001-05-08
|
* Fix paren typo in java.Bruce Momjian2001-05-08
|