Commit Graph

29 Commits

Author SHA1 Message Date
Tom Lane
cfc0e015a1 Our test to see if we had permission to install into Perl5 install area
always failed if Perl makefile's INSTALLSITELIB variable was specified
in terms of another variable.  Fix by adding an echo-installdir target
to the Perl makefile, which the upper-level Makefile can invoke.
2000-04-23 04:26:32 +00:00
Tom Lane
a71daab4b4 Change PQconndefaults() to return a malloc'd array, instead of a static
array.  This allows processing of conninfo strings to be made thread-safe,
at the cost of a small memory leak in applications that use
PQconndefaults() and are not updated to free the returned array via
the new PQconninfoFree() function.  But PQconndefaults() is probably not
used very much, so this seems like a good compromise.
2000-03-11 03:08:37 +00:00
Tom Lane
773e84f52a Update perl5's self-test for changed spelling of connection failure
error message.
2000-03-11 02:57:24 +00:00
Bruce Momjian
7ee7ee1398 BLOBs containing NUL characters (ASCII 0) can be written to the
database, but they get truncated at the first NUL by lo_read
when they are read back. The reason for this is that lo_read in
Pg.xs is using the default:
    OUTPUT:
        RETVAL
        buf
which uses C's strlen() to work out the length of the scalar.

The code ought to read something more like:
    OUTPUT:
        RETVAL
        buf sv_setpvn((SV*)ST(2), buf, RETVAL);

I am not sure if this needs to be done on both lo_read methods
in this file, but I changed both and have not since had any
problems with truncated BLOBs.

Douglas Thomson <dougt@mugc.cc.monash.edu.au>
1999-10-13 02:26:37 +00:00
Bruce Momjian
440c913d42 Define __alpha__ for __alpha. 1999-10-08 17:14:46 +00:00
Bruce Momjian
fbe9d1a430 Fix for "--" comment and no trailing newline, as seen in Perl. 1999-10-08 05:03:14 +00:00
Tom Lane
3eb22085b5 OOPS ... Perl5 interface to PQsetdbLogin was actually
calling PQsetdb ...
1999-02-19 23:27:17 +00:00
Tom Lane
847da1a1ee Remove Perl module's unnecessary dependence on libpq-int.h. 1999-02-11 23:25:16 +00:00
Bruce Momjian
ecdf95f6d6 This patch fixes the undefined (according to C) and erroneous (under
Digital Uni x with both DEC cc and gcc) behaviour of modifying an
lvalue on the left side an d then using it on the right side of an
assignment. Since this code modifies the
 dbname parameter, it was changing, for example, "dbname=template1"
 into "dbname =emplate1".

David Smith Programmer P
1998-12-13 02:50:20 +00:00
Tom Lane
8ccf86bf32 Still another round of Perl-module installation tweaks.
Now, src/interfaces/perl5/Makefile.PL is pretty simple, and instead we
work a little harder in src/interfaces/Makefile.
1998-10-18 02:36:48 +00:00
Bruce Momjian
4aa8376505 Remove Makefile.PL. 1998-10-17 03:37:04 +00:00
Bruce Momjian
2bb38b5e2d Fix for GNUmakefile and stupid cruft I forgot in there. 1998-10-17 02:36:13 +00:00
Bruce Momjian
af8df21b7e Add missing tcl *.in files. 1998-10-16 17:00:44 +00:00
Bruce Momjian
9f69aa0831 add missing file for perl. 1998-10-16 05:58:22 +00:00
Bruce Momjian
baa2f9998c Perl fixes from Brook Milligan 1998-10-16 04:37:38 +00:00
Edmund Mergl
376fbadbd2 pgsql_perl5-1.8.0 1998-09-27 19:12:35 +00:00
Bruce Momjian
f71d0cf64e Attached is a patch to remove the definitions of libpq's internal
structs from libpq-fe.h, as we previously discussed.

There turned out to be sloppy coding practices in more places than
I had realized :-(, but all in all I think it was a well-worth-while
exercise.

I ended up adding several routines to libpq's API in order to respond
to application requirements that were exposed by this work.  I owe the
docs crew updates for libpq.sgml to describe these changes.  I'm way too
tired to work on the docs tonight, however.

This is the last major change I intend to submit for 6.4.  I do want
to see if I can make libpgtcl work with Tcl 8.0 before we go final,
but hopefully that will be a minor bug fix.
1998-09-03 02:10:56 +00:00
Edmund Mergl
df58a902f9 adapted Makefile.PL to be build in source tree 1998-06-01 16:41:27 +00:00
Edmund Mergl
11c091272a 1.7.3 1998-04-14 21:14:52 +00:00
Bruce Momjian
066ee9a2e9 Make DESTDIR consistent, and verious Linux cleanups. 1998-04-06 01:36:41 +00:00
Edmund Mergl
734328840c 1.7.01.7.0 1998-02-20 21:26:08 +00:00
Edmund Mergl
30b9b529f3 1.7.0 1998-02-20 21:25:47 +00:00
Edmund Mergl
c5d49902fb *** empty log message *** 1997-09-25 21:15:04 +00:00
Edmund Mergl
9d575627af *** empty log message *** 1997-09-17 20:53:35 +00:00
Edmund Mergl
5ec6055648 *** empty log message *** 1997-09-17 20:51:36 +00:00
Edmund Mergl
364efd1029 adapted to pgsql-v6.2 1997-09-17 20:48:15 +00:00
Edmund Mergl
9e74edda05 *** empty log message *** 1997-09-17 20:46:29 +00:00
Edmund Mergl
234776dbbc *** empty log message *** 1997-06-02 19:42:14 +00:00
Edmund Mergl
0aba92a2c5 creation for postgresql-6.1 1997-04-29 19:37:10 +00:00