debian/0000755000000000000000000000000012232127231007161 5ustar debian/changelog0000644000000000000000000002252112232127231011035 0ustar psqlodbc (1:09.02.0100-2ubuntu1) trusty; urgency=low * Merge with Debian unstable. Remaining Ubuntu changes: - debian/tests: Disable iodbc test and dependency, as in Ubuntu iodbc and unixodbc are not installable in parallel, and iodbc is obsolete and should be removed at some point. -- Martin Pitt Thu, 24 Oct 2013 07:21:55 +0200 psqlodbc (1:09.02.0100-2) unstable; urgency=low * Ignore iusql failure on *mips*. * Add patch by Hiroshi Inoue to fix failure on s390x. * Remove test/src/common.o on clean. * Support DEB_BUILD_OPTIONS=nocheck. -- Christoph Berg Thu, 13 Jun 2013 11:11:03 +0200 psqlodbc (1:09.02.0100-1) unstable; urgency=low * New upstream release. * Run make installcheck at build time. + Ignore iusql failure on mipsel, see #711954. * Add B-D: postgresql-server-dev-all. (We only need one version, though.) -- Christoph Berg Tue, 11 Jun 2013 17:28:50 +0200 psqlodbc (1:09.01.0200-4) unstable; urgency=low * Skip testsuite on hurd, it doesn't have a working PostgreSQL server. -- Christoph Berg Sun, 02 Jun 2013 20:32:46 -0700 psqlodbc (1:09.01.0200-3) unstable; urgency=low * Relax Breaks: libiodbc2 (<= 3.52.7-2) so we don't "break" the fixed wheezy version. -- Christoph Berg Fri, 31 May 2013 23:17:44 -0700 psqlodbc (1:09.01.0200-2) unstable; urgency=low * Versioned Breaks: libiodbc2 (<< 3.52.7-3~), it is multiarch-aware now. (Fixes co-installability with KDE, Closes: #703047.) * Add build-time test and autopkgtest using isql; autopkgtest will also test using iodbctest. (Needs pg-common >= 144 for pg_virtualenv.) -- Christoph Berg Fri, 31 May 2013 22:29:52 -0700 psqlodbc (1:09.01.0200-1) experimental; urgency=low * New upstream release. * Add lintian override for breaks-without-version libiodbc2. * Move packaging to git.debian.org. -- Christoph Berg Sat, 03 Nov 2012 11:07:35 +0100 psqlodbc (1:09.01.0100-1) unstable; urgency=low * New upgrade release. -- Christoph Berg Fri, 30 Dec 2011 19:09:04 +0100 psqlodbc (1:09.00.0310-2) unstable; urgency=low [ Christoph Berg ] * Don't ship .la files at all. * Add Steve as co-maintainer. Thanks for the multiarch changes! * Delete-and-readd the odbcinst.ini sections on upgrade. [ Steve Langasek ] * Install to /usr/lib/$(DEB_HOST_MULTIARCH)/odbc. Closes: #638806. * Use a relative path in odbcinst.ini. * Declare a Breaks: on old versions of unixodbc that won't look up relative filenames in the odbc directory. * Mark the package Multi-Arch: same. -- Christoph Berg Mon, 22 Aug 2011 14:09:09 +0200 psqlodbc (1:09.00.0310-1) unstable; urgency=low * New upstream release. * Empty dependency_libs fields in our .la files. -- Christoph Berg Sat, 09 Jul 2011 08:39:43 +0200 psqlodbc (1:09.00.0300-1) unstable; urgency=low * New upstream release. * Add odbc-postgresql-dbg debug package. Closes: #592736. -- Christoph Berg Tue, 31 May 2011 15:47:36 +0200 psqlodbc (1:09.00.0200-2) unstable; urgency=low * Section: database. * Install driver definition to /etc/odbcinst.ini. Closes: #374197. -- Christoph Berg Tue, 05 Apr 2011 15:13:24 +0200 psqlodbc (1:09.00.0200-1) unstable; urgency=low * New upstream release. * Fix installing {A,W}/usr/lib/odbc. Closes: #618210. * Convert to 3.0 (quilt). * Remove psqlodbc-580878.diff: implemented upstream. * Remove psqlodbc-585476.diff: was caused by #519006 which is now closed. * Update description, suggested by Martin Eberhard Schauer. Closes: #565611. * New maintainer. Closes: #472818. -- Christoph Berg Tue, 05 Apr 2011 14:48:23 +0200 psqlodbc (1:08.03.0200-1.2) unstable; urgency=low * Non-maintainer upload. * debian/patches/psqlodbc-585476.diff: use freeaddrinfo, getaddrinfo, getnameinfo directly instead of via function pointers, to work around a toolchain bug on mips and mipsel. Closes: #585476. -- Steve Langasek Fri, 11 Jun 2010 05:54:04 +0000 psqlodbc (1:08.03.0200-1.1) unstable; urgency=high * Non-maintainer upload. * High-urgency upload for RC bugfix. * Drop psqlodbc-358949.diff completely, since it causes a build failure with the latest unixodbc now that SQLROWOFFSET is obsolete. Closes: #582988. * debian/patches/psqlodbc-580878.diff: don't use SQLROWSETSIZE, also obsoleted. Closes: #580878. * Fix debian/rules support for building multiple flavors to be compatible with recent cdbs. Thanks to Julien Cristau for the patch. Closes: #564399. -- Steve Langasek Tue, 08 Jun 2010 06:48:02 +0000 psqlodbc (1:08.03.0200-1) unstable; urgency=low * New upstream release - Disables some broken code (closes: #396218) - Obsoletes psqlodbc-413534.diff and most of psqlodbc-358949.diff -- Peter Eisentraut Fri, 09 May 2008 10:40:32 +0200 psqlodbc (1:08.01.0200-3) unstable; urgency=low * Added Homepage control field * Updated standards version * Added Vcs-* control fields -- Peter Eisentraut Wed, 26 Mar 2008 11:59:18 +0100 psqlodbc (1:08.01.0200-2.1) unstable; urgency=high * Non-maintainer upload. * High-urgency upload for RC bugfix. * Fix the signature of SQLGetData on 64-bit architectures. -- Steve Langasek Mon, 5 Mar 2007 22:28:19 -0800 psqlodbc (1:08.01.0200-2) unstable; urgency=low * Fix to build on 64-bit architectures (closes: #358949) (patch by Steve Langasek) -- Peter Eisentraut Mon, 10 Apr 2006 13:58:05 +0200 psqlodbc (1:08.01.0200-1) unstable; urgency=low * New upstream release * Fixed watch file * Updated download location * Changed build system to build ANSI and Unicode variants; odbcinst template changed accordingly * Dropped legacy driver location /usr/lib/postgresql/lib * Updated README.Debian -- Peter Eisentraut Wed, 22 Feb 2006 15:11:00 +0100 psqlodbc (1:08.01.0102-1) unstable; urgency=low * New upstream release * Changed to debhelper level 5 * Removed old FSF address from copyright file * Installed new documentation -- Peter Eisentraut Mon, 16 Jan 2006 19:17:55 +0100 psqlodbc (1:08.01.0005-1) experimental; urgency=low * New upstream version - Includes IPv6 support (closes: #312983) * Updated standards version * Changed watch file to track snapshot releases * Added build dependency on libpq-dev -- Peter Eisentraut Thu, 20 Oct 2005 11:48:42 +0200 psqlodbc (1:08.00.0101-2) unstable; urgency=low * First upload of this upstream version to unstable (closes: #292311) * Changed maintainer address * Revised README.Debian -- Peter Eisentraut Wed, 1 Jun 2005 15:49:19 +0200 psqlodbc (1:08.00.0101-1) experimental; urgency=low * New upstream release (closes: #292311) - Obsoletes patches 10_psqlodbc-makestring, 20_psqlodbc-64bit * Converted to CDBS -- Peter Eisentraut Tue, 22 Mar 2005 12:38:48 +0100 psqlodbc (1:07.03.0200-5) unstable; urgency=low * Corrected license to old LGPL 2 * Big debian/rules modernization * Moved odbc.ini.template to examples directory * Converted to dpatch * Added update of config.{guess,sub} * Renamed unixodbc.HOWTO to README.Debian; revised * Moved installation to /usr/lib/odbc; added symlink to old location for compatibility * Dropped postgresql-dev dependency -- Peter Eisentraut Sun, 14 Nov 2004 16:12:31 +0100 psqlodbc (1:07.03.0200-4) unstable; urgency=low * New maintainer (closes: #228073) * Removed suggestion of libiodbc2, because this driver is unixODBC only at this time; upgraded unixodbc to recommendation * Removed suggestion of postgresql, because clients don't need to suggest their servers * Revised description (closes: #252686) * Fixed several misguided assumptions that sizeof(long)==4; based on patch installed upstream on 2004-07-01 (closes: #254847) * Added watch file -- Peter Eisentraut Sun, 11 Jul 2004 10:38:13 +0200 psqlodbc (1:07.03.0200-3) unstable; urgency=high * urgency high since this is a security related bug and no other changes were made * misc.c: added target buffer size parameter to make_string() to prevent buffer overflows and corrected all calls to it (closes: #247306) -- Martin Pitt Thu, 13 May 2004 10:47:36 +0200 psqlodbc (1:07.03.0200-2) unstable; urgency=high * removed dependency to postgresql again since there are users who want only the driver without a full postgresql installation (closes: #233113) * urgency high because I did not change anything apart from the dependency, the previous revision is already in sarge and this seems to be a real hassle for testing users -- Martin Pitt Wed, 18 Feb 2004 08:29:20 +0100 psqlodbc (1:07.03.0200-1) unstable; urgency=low * separated out of postgresql source package; thus a new epoch had to be created, postgresql is already at 7.4.1 * added depencendy postgresql since this package does not make sense without it * corrected path to odbc.sql in unixodbc.HOWTO (closes: #194653) -- Martin Pitt Fri, 16 Jan 2004 22:54:37 +0100 debian/compat0000644000000000000000000000000212061413155010362 0ustar 7 debian/rules0000755000000000000000000000247012156306565010262 0ustar #!/usr/bin/make -f tempdir = debian/temp # (not debian/tmp, which dh_clean removes too automatically) DEB_MAKE_FLAVORS = A W DEB_BUILDDIR = build DEB_DESTDIR = $(CURDIR)/$(tempdir) DEB_DH_INSTALL_SOURCEDIR = $(tempdir) DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) clean:: $(MAKE) -C test distclean rm -rf $(tempdir) rm -f debian/install rm -f test/src/common.o include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk DEB_CONFIGURE_EXTRA_FLAGS = --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/odbc --with-unixodbc pre-build:: chmod a+x $(CURDIR)/debian/odbc_config_dummy DEB_CONFIGURE_EXTRA_FLAGS += ODBC_CONFIG='$(CURDIR)/debian/odbc_config_dummy' DEB_CONFIGURE_EXTRA_FLAGS_A = --disable-unicode DEB_CONFIGURE_EXTRA_FLAGS += $(DEB_CONFIGURE_EXTRA_FLAGS_$(cdbs_make_curflavor)) # there is no working PostgreSQL server on hurd, skip test ifneq ($(DEB_BUILD_ARCH),hurd-i386) ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) build/odbc-postgresql:: debian/tests/buildtime endif endif install/odbc-postgresql:: install -D -m 644 debian/odbcinst.ini.template $(DEB_DESTDIR)/usr/share/psqlodbc/odbcinst.ini.template rm $(CURDIR)/debian/temp/?/usr/lib/$(DEB_HOST_MULTIARCH)/odbc/*.la sed -e "s/\$${DEB_HOST_MULTIARCH}/$(DEB_HOST_MULTIARCH)/g" \ < debian/install.in > debian/install debian/install.in0000644000000000000000000000012612061413155011161 0ustar ?/usr/lib/${DEB_HOST_MULTIARCH}/odbc usr/lib/${DEB_HOST_MULTIARCH} usr/share/psqlodbc debian/control0000644000000000000000000000470012232127241010566 0ustar Source: psqlodbc Priority: optional Section: database Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Christoph Berg Uploaders: Steve Langasek Build-Depends: cdbs (>= 0.4.93), debhelper (>= 8.1.3), libpq-dev, unixodbc-dev (>= 2.2.11-13), postgresql, postgresql-common (>= 144~), postgresql-server-dev-all Standards-Version: 3.9.4 Homepage: http://psqlodbc.projects.postgresql.org/ Vcs-Git: git://anonscm.debian.org/pkg-postgresql/psqlodbc.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/psqlodbc.git XS-Testsuite: autopkgtest Package: odbc-postgresql Architecture: any Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Suggests: unixodbc-bin Enhances: unixodbc Breaks: unixodbc (<< 2.2.14p2-3), odbcinst1debian2 (<< 2.2.14p2-3), libiodbc2 (<= 3.52.7-2) Description: ODBC driver for PostgreSQL This package provides a driver that allows ODBC-enabled applications to access PostgreSQL databases. ODBC is an abstraction layer that allows applications written for that layer to access databases in a manner that is relatively independent of the particular database management system. . You need to install this package if you want to use an application that provides database access through ODBC and you want that application to access a PostgreSQL database. This package would need to be installed on the same machine as that client application; the PostgreSQL database server can be on a different machine and does not need any additional software to accept ODBC clients. . If you want to write software that can access a database through the ODBC abstraction layer, you need to install the unixODBC driver manager development package unixodbc-dev, and possibly additional packages for language bindings. This driver package is only used at run time. Package: odbc-postgresql-dbg Architecture: any Multi-Arch: same Section: debug Priority: extra Depends: ${shlibs:Depends}, ${misc:Depends}, odbc-postgresql Description: ODBC driver for PostgreSQL - debug symbols odbc-postgresql provides a driver that allows ODBC-enabled applications to access PostgreSQL databases. ODBC is an abstraction layer that allows applications written for that layer to access databases in a manner that is relatively independent of the particular database management system. . This package contains the debug symbols for odbc-postgresql. debian/watch0000644000000000000000000000011612061413155010213 0ustar version=3 ftp://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-(.*).tar.gz debian/copyright0000644000000000000000000000243512061413155011123 0ustar This package was debianized by Martin Pitt on Thu, 22 Jan 2004 14:50:11 +0100. Since 11 Jul 2004 it has been maintained by Peter Eisentraut . It was downloaded from: ftp://ftp.postgresql.org/pub/odbc/ Upstream authors: PostgreSQL ODBC team Copyright: Copyright (C) 1998 Insight Distribution Systems Copyright (C) 1998 - 2005 The PostgreSQL Global Development Group Multibyte support was added by Sankyo Unyu Service, (C) 2001. The code contained in this library is based on code written by Christian Czezatke and Dan McGuirk, (C) 1996. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. On Debian systems, the complete text of the GNU Lesser General Public License can be found in '/usr/share/common-licenses/LGPL-2'. debian/odbc-postgresql.postrm0000644000000000000000000000027012061413155013541 0ustar #!/bin/sh set -e case $1 in remove) if test -x /usr/bin/odbcinst ; then odbcinst -u -d -n 'PostgreSQL ANSI' odbcinst -u -d -n 'PostgreSQL Unicode' fi ;; esac #DEBHELPER# debian/examples0000644000000000000000000000003112061413155010717 0ustar debian/odbc.ini.template debian/source/0000755000000000000000000000000012061413155010464 5ustar debian/source/format0000644000000000000000000000001412061413155011672 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000000612061413155010033 0ustar docs/ debian/odbc_config_dummy0000755000000000000000000000011612061413155012557 0ustar # see bug #422207 if [ "$1" = --include-prefix ]; then echo /usr/include fi debian/patches/0000755000000000000000000000000012156302060010610 5ustar debian/patches/series0000644000000000000000000000005412156302040012022 0ustar test-crlf test-odbcinst.ini testsuite.patch debian/patches/test-odbcinst.ini0000644000000000000000000000046412155633122014104 0ustar --- a/test/odbcinst.ini +++ b/test/odbcinst.ini @@ -1,5 +1,5 @@ [psqlodbc test driver] Description = PostgreSQL ODBC driver (Unicode version), for regression tests -Driver = ../.libs/psqlodbcw.so +Driver = ../build/W/.libs/psqlodbcw.so Debug = 0 CommLog = 1 debian/patches/testsuite.patch0000644000000000000000000000376312156302060013673 0ustar http://www.postgresql.org/message-id/51B88B07.8070007@tpf.co.jp --- a/descriptor.h +++ b/descriptor.h @@ -210,11 +210,7 @@ struct IRDFields_ struct IPDFields_ { -#if (ODBCVER >= 0x0300) - SQLUINTEGER *param_processed_ptr; -#else - SQLULEN *param_processed_ptr; /* SQLParamOptions */ -#endif /* ODBCVER */ + SQLULEN *param_processed_ptr; SQLUSMALLINT *param_status_ptr; SQLSMALLINT allocated; ParameterImplClass *parameters; --- a/pgapi30.c +++ b/pgapi30.c @@ -825,7 +825,7 @@ IPDSetField(DescriptorClass *desc, SQLSM ipdopts->param_status_ptr = (SQLUSMALLINT *) Value; return ret; case SQL_DESC_ROWS_PROCESSED_PTR: - ipdopts->param_processed_ptr = (SQLUINTEGER *) Value; + ipdopts->param_processed_ptr = (SQLULEN *) Value; return ret; case SQL_DESC_COUNT: parameter_ibindings_set(ipdopts, CAST_PTR(SQLSMALLINT, Value), FALSE); @@ -1545,7 +1545,7 @@ PGAPI_GetStmtAttr(HSTMT StatementHandle, len = sizeof(SQLPOINTER); break; case SQL_ATTR_PARAMS_PROCESSED_PTR: /* 21 */ - *((SQLUINTEGER **) Value) = (SQLUINTEGER *) SC_get_IPDF(stmt)->param_processed_ptr; + *((SQLULEN **) Value) = (SQLULEN *) SC_get_IPDF(stmt)->param_processed_ptr; len = sizeof(SQLPOINTER); break; case SQL_ATTR_PARAMSET_SIZE: /* 22 */ @@ -1906,7 +1906,7 @@ inolog("set ard=%p\n", stmt->ard); SC_get_IPDF(stmt)->param_status_ptr = (SQLUSMALLINT *) Value; break; case SQL_ATTR_PARAMS_PROCESSED_PTR: /* 21 */ - SC_get_IPDF(stmt)->param_processed_ptr = (SQLUINTEGER *) Value; + SC_get_IPDF(stmt)->param_processed_ptr = (SQLULEN *) Value; break; case SQL_ATTR_PARAMSET_SIZE: /* 22 */ SC_get_APDF(stmt)->paramset_size = CAST_UPTR(SQLUINTEGER, Value); --- a/test/src/prepare-test.c +++ b/test/src/prepare-test.c @@ -9,7 +9,7 @@ int main(int argc, char **argv) HSTMT hstmt = SQL_NULL_HSTMT; char *param1; SQLLEN cbParam1; - long longparam; + SQLINTEGER longparam; SQL_INTERVAL_STRUCT intervalparam; SQLSMALLINT colcount; debian/patches/test-crlf0000644000000000000000000011766612155633122012464 0ustar --- a/test/launcher +++ b/test/launcher @@ -1,5 +1,5 @@ -#!/bin/bash - -# Pass ODBCSYSINI env variable to psql, so that it finds the odbc.ini and -# odbcinst.ini files from the current dir. -ODBCSYSINI=. $* \ No newline at end of file +#!/bin/bash + +# Pass ODBCSYSINI env variable to psql, so that it finds the odbc.ini and +# odbcinst.ini files from the current dir. +ODBCSYSINI=. $* --- a/test/expected/alter.out +++ b/test/expected/alter.out @@ -1,7 +1,7 @@ -\! ./src/alter-test -connected -Result set metadata: -t: VARCHAR(40) digits: 0, nullable -Result set metadata: -t: VARCHAR(80) digits: 0, nullable -disconnecting +\! ./src/alter-test +connected +Result set metadata: +t: VARCHAR(40) digits: 0, nullable +Result set metadata: +t: VARCHAR(80) digits: 0, nullable +disconnecting --- a/test/expected/arraybinding.out +++ b/test/expected/arraybinding.out @@ -1,30 +1,30 @@ -\! ./src/arraybinding-test -connected -Parameter Status -Result set: -10000 -Result set: -0 columnwise 0 -1 columnwise 1 -100 columnwise 100 -9999 columnwise 9999 -Parameter Status -Fetching result sets for array bound (5 results expected) -1: Result set: -columnwise 100 -2: Result set: -columnwise 101 -3: Result set: -columnwise 102 -4: Result set: -columnwise 103 -5: Result set: -columnwise 104 -Number of rows in table: -Result set: -9995 -Result set: -0 columnwise 0 -1 columnwise 1 -9999 columnwise 9999 -disconnecting +\! ./src/arraybinding-test +connected +Parameter Status +Result set: +10000 +Result set: +0 columnwise 0 +1 columnwise 1 +100 columnwise 100 +9999 columnwise 9999 +Parameter Status +Fetching result sets for array bound (5 results expected) +1: Result set: +columnwise 100 +2: Result set: +columnwise 101 +3: Result set: +columnwise 102 +4: Result set: +columnwise 103 +5: Result set: +columnwise 104 +Number of rows in table: +Result set: +9995 +Result set: +0 columnwise 0 +1 columnwise 1 +9999 columnwise 9999 +disconnecting --- a/test/expected/boolsaschar.out +++ b/test/expected/boolsaschar.out @@ -1,17 +1,17 @@ -\! ./src/boolsaschar-test -connected -Result set metadata: -id: INTEGER(10) digits: 0, nullable -t: VARCHAR(5) digits: 0, nullable -b: VARCHAR(5) digits: 0, nullable -Result set: -2 yes 1 -Result set metadata: -id: INTEGER(10) digits: 0, nullable -t: VARCHAR(5) digits: 0, nullable -b: VARCHAR(5) digits: 0, nullable -Result set: -1 yeah 1 -2 yes 1 -3 true 1 -disconnecting +\! ./src/boolsaschar-test +connected +Result set metadata: +id: INTEGER(10) digits: 0, nullable +t: VARCHAR(5) digits: 0, nullable +b: VARCHAR(5) digits: 0, nullable +Result set: +2 yes 1 +Result set metadata: +id: INTEGER(10) digits: 0, nullable +t: VARCHAR(5) digits: 0, nullable +b: VARCHAR(5) digits: 0, nullable +Result set: +1 yeah 1 +2 yes 1 +3 true 1 +disconnecting --- a/test/expected/connect.out +++ b/test/expected/connect.out @@ -1,3 +1,3 @@ -\! ./src/connect-test -connected -disconnecting +\! ./src/connect-test +connected +disconnecting --- a/test/expected/cvtnulldate.out +++ b/test/expected/cvtnulldate.out @@ -1,5 +1,5 @@ -\! ./src/cvtnulldate-test -connected -Result set: -1 -disconnecting +\! ./src/cvtnulldate-test +connected +Result set: +1 +disconnecting --- a/test/expected/dataatexecution.out +++ b/test/expected/dataatexecution.out @@ -1,12 +1,12 @@ -\! ./src/dataatexecution-test -connected -Result set: -2 -3 -Parameter Status -Fetching result sets for array bound (2 results expected) -1: Result set: -4 -2: Result set: -5 -disconnecting +\! ./src/dataatexecution-test +connected +Result set: +2 +3 +Parameter Status +Fetching result sets for array bound (2 results expected) +1: Result set: +4 +2: Result set: +5 +disconnecting --- a/test/expected/getresult.out +++ b/test/expected/getresult.out @@ -1,9 +1,9 @@ -\! ./src/getresult-test -connected -Result set: -varcharcol: foo -integercol: 123 -intervalyears: 10 -intervalmonths: 11 -intervaldays: 12 -disconnecting +\! ./src/getresult-test +connected +Result set: +varcharcol: foo +integercol: 123 +intervalyears: 10 +intervalmonths: 11 +intervaldays: 12 +disconnecting --- a/test/expected/insertreturning.out +++ b/test/expected/insertreturning.out @@ -1,303 +1,303 @@ -\! ./src/insertreturning-test -connected -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 0 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 1 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 2 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 3 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 4 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 5 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 6 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 7 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 8 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 9 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 10 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 11 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 12 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 13 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 14 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 15 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 16 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 17 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 18 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 19 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 20 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 21 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 22 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 23 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 24 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 25 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 26 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 27 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 28 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 29 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 30 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 31 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 32 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 33 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 34 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 35 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 36 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 37 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 38 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 39 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 40 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 41 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 42 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 43 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 44 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 45 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 46 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 47 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 48 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 49 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 50 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 51 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 52 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 53 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 54 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 55 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 56 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 57 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 58 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 59 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 60 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 61 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 62 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 63 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 64 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 65 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 66 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 67 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 68 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 69 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 70 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 71 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 72 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 73 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 74 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 75 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 76 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 77 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 78 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 79 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 80 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 81 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 82 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 83 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 84 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 85 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 86 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 87 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 88 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 89 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 90 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 91 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 92 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 93 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 94 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 95 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 96 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 97 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 98 -# of result cols before SQLExecute: 0, after: 1 -Result set: -foobar 99 -disconnecting +\! ./src/insertreturning-test +connected +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 0 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 1 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 2 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 3 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 4 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 5 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 6 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 7 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 8 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 9 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 10 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 11 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 12 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 13 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 14 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 15 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 16 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 17 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 18 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 19 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 20 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 21 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 22 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 23 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 24 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 25 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 26 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 27 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 28 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 29 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 30 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 31 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 32 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 33 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 34 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 35 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 36 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 37 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 38 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 39 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 40 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 41 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 42 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 43 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 44 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 45 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 46 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 47 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 48 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 49 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 50 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 51 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 52 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 53 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 54 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 55 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 56 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 57 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 58 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 59 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 60 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 61 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 62 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 63 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 64 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 65 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 66 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 67 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 68 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 69 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 70 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 71 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 72 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 73 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 74 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 75 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 76 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 77 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 78 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 79 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 80 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 81 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 82 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 83 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 84 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 85 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 86 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 87 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 88 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 89 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 90 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 91 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 92 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 93 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 94 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 95 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 96 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 97 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 98 +# of result cols before SQLExecute: 0, after: 1 +Result set: +foobar 99 +disconnecting --- a/test/expected/notice.out +++ b/test/expected/notice.out @@ -1,7 +1,7 @@ -\! ./src/notice-test -connected -got SUCCESS_WITH_INFO -00000=NOTICE: test notice: foo -got SUCCESS_WITH_INFO -00000= -disconnecting +\! ./src/notice-test +connected +got SUCCESS_WITH_INFO +00000=NOTICE: test notice: foo +got SUCCESS_WITH_INFO +00000= +disconnecting --- a/test/expected/params.out +++ b/test/expected/params.out @@ -1,6 +1,6 @@ -\! ./src/params-test -connected -# of result cols: 2 -Result set: -1 0102030405060708 -disconnecting +\! ./src/params-test +connected +# of result cols: 2 +Result set: +1 0102030405060708 +disconnecting --- a/test/expected/prepare.out +++ b/test/expected/prepare.out @@ -1,14 +1,14 @@ -\! ./src/prepare-test -connected -# of result cols: 2 -Result set: -2 bar -Result set: -3 foobar -Result set: -1 @ 1 day one day -2 @ 10 secs ten secs -# of result cols: 2 -Result set: -2 bar -disconnecting +\! ./src/prepare-test +connected +# of result cols: 2 +Result set: +2 bar +Result set: +3 foobar +Result set: +1 @ 1 day one day +2 @ 10 secs ten secs +# of result cols: 2 +Result set: +2 bar +disconnecting --- a/test/expected/select.out +++ b/test/expected/select.out @@ -1,8 +1,8 @@ -\! ./src/select-test -connected -Result set: -1 -2 -Result set: -1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 -disconnecting +\! ./src/select-test +connected +Result set: +1 +2 +Result set: +1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 +disconnecting --- a/test/expected/stmthandles.out +++ b/test/expected/stmthandles.out @@ -1,43 +1,43 @@ -\! ./src/stmthandles-test -connected -10 statements allocated... -20 statements allocated... -30 statements allocated... -40 statements allocated... -50 statements allocated... -60 statements allocated... -70 statements allocated... -80 statements allocated... -90 statements allocated... -100 statements allocated... -10 statements executed... -20 statements executed... -30 statements executed... -40 statements executed... -50 statements executed... -60 statements executed... -70 statements executed... -80 statements executed... -90 statements executed... -100 statements executed... -Result set: -stmt no 1 -Result set: -stmt no 11 -Result set: -stmt no 21 -Result set: -stmt no 31 -Result set: -stmt no 41 -Result set: -stmt no 51 -Result set: -stmt no 61 -Result set: -stmt no 71 -Result set: -stmt no 81 -Result set: -stmt no 91 -disconnecting +\! ./src/stmthandles-test +connected +10 statements allocated... +20 statements allocated... +30 statements allocated... +40 statements allocated... +50 statements allocated... +60 statements allocated... +70 statements allocated... +80 statements allocated... +90 statements allocated... +100 statements allocated... +10 statements executed... +20 statements executed... +30 statements executed... +40 statements executed... +50 statements executed... +60 statements executed... +70 statements executed... +80 statements executed... +90 statements executed... +100 statements executed... +Result set: +stmt no 1 +Result set: +stmt no 11 +Result set: +stmt no 21 +Result set: +stmt no 31 +Result set: +stmt no 41 +Result set: +stmt no 51 +Result set: +stmt no 61 +Result set: +stmt no 71 +Result set: +stmt no 81 +Result set: +stmt no 91 +disconnecting --- a/test/expected/sampletables.out +++ b/test/expected/sampletables.out @@ -1,21 +1,21 @@ --- This file creates some tables to be used in the tests -CREATE TABLE testtab1 (id integer, t varchar(20)); -INSERT INTO testtab1 VALUES (1, 'foo'); -INSERT INTO testtab1 VALUES (2, 'bar'); -INSERT INTO testtab1 VALUES (3, 'foobar'); -CREATE TABLE byteatab (id integer, t bytea); -INSERT INTO byteatab VALUES (1, E'\\001\\002\\003\\004\\005\\006\\007\\010'::bytea); -INSERT INTO byteatab VALUES (2, 'bar'); -INSERT INTO byteatab VALUES (3, 'foobar'); -INSERT INTO byteatab VALUES (4, 'foo'); -INSERT INTO byteatab VALUES (5, 'barf'); -CREATE TABLE intervaltable(id integer, iv interval, d varchar(100)); -INSERT INTO intervaltable VALUES (1, '1 day', 'one day'); -INSERT INTO intervaltable VALUES (2, '10 seconds', 'ten secs'); -INSERT INTO intervaltable VALUES (3, '100 years', 'hundred years'); -CREATE TABLE booltab (id integer, t varchar(5), b boolean); -INSERT INTO booltab VALUES (1, 'yeah', true); -INSERT INTO booltab VALUES (2, 'yes', true); -INSERT INTO booltab VALUES (3, 'true', true); -INSERT INTO booltab VALUES (4, 'false', false); -INSERT INTO booltab VALUES (5, 'not', false); +-- This file creates some tables to be used in the tests +CREATE TABLE testtab1 (id integer, t varchar(20)); +INSERT INTO testtab1 VALUES (1, 'foo'); +INSERT INTO testtab1 VALUES (2, 'bar'); +INSERT INTO testtab1 VALUES (3, 'foobar'); +CREATE TABLE byteatab (id integer, t bytea); +INSERT INTO byteatab VALUES (1, E'\\001\\002\\003\\004\\005\\006\\007\\010'::bytea); +INSERT INTO byteatab VALUES (2, 'bar'); +INSERT INTO byteatab VALUES (3, 'foobar'); +INSERT INTO byteatab VALUES (4, 'foo'); +INSERT INTO byteatab VALUES (5, 'barf'); +CREATE TABLE intervaltable(id integer, iv interval, d varchar(100)); +INSERT INTO intervaltable VALUES (1, '1 day', 'one day'); +INSERT INTO intervaltable VALUES (2, '10 seconds', 'ten secs'); +INSERT INTO intervaltable VALUES (3, '100 years', 'hundred years'); +CREATE TABLE booltab (id integer, t varchar(5), b boolean); +INSERT INTO booltab VALUES (1, 'yeah', true); +INSERT INTO booltab VALUES (2, 'yes', true); +INSERT INTO booltab VALUES (3, 'true', true); +INSERT INTO booltab VALUES (4, 'false', false); +INSERT INTO booltab VALUES (5, 'not', false); --- a/test/sql/sampletables.sql +++ b/test/sql/sampletables.sql @@ -1,25 +1,25 @@ --- This file creates some tables to be used in the tests - -CREATE TABLE testtab1 (id integer, t varchar(20)); -INSERT INTO testtab1 VALUES (1, 'foo'); -INSERT INTO testtab1 VALUES (2, 'bar'); -INSERT INTO testtab1 VALUES (3, 'foobar'); - -CREATE TABLE byteatab (id integer, t bytea); -INSERT INTO byteatab VALUES (1, E'\\001\\002\\003\\004\\005\\006\\007\\010'::bytea); -INSERT INTO byteatab VALUES (2, 'bar'); -INSERT INTO byteatab VALUES (3, 'foobar'); -INSERT INTO byteatab VALUES (4, 'foo'); -INSERT INTO byteatab VALUES (5, 'barf'); - -CREATE TABLE intervaltable(id integer, iv interval, d varchar(100)); -INSERT INTO intervaltable VALUES (1, '1 day', 'one day'); -INSERT INTO intervaltable VALUES (2, '10 seconds', 'ten secs'); -INSERT INTO intervaltable VALUES (3, '100 years', 'hundred years'); - -CREATE TABLE booltab (id integer, t varchar(5), b boolean); -INSERT INTO booltab VALUES (1, 'yeah', true); -INSERT INTO booltab VALUES (2, 'yes', true); -INSERT INTO booltab VALUES (3, 'true', true); -INSERT INTO booltab VALUES (4, 'false', false); -INSERT INTO booltab VALUES (5, 'not', false); +-- This file creates some tables to be used in the tests + +CREATE TABLE testtab1 (id integer, t varchar(20)); +INSERT INTO testtab1 VALUES (1, 'foo'); +INSERT INTO testtab1 VALUES (2, 'bar'); +INSERT INTO testtab1 VALUES (3, 'foobar'); + +CREATE TABLE byteatab (id integer, t bytea); +INSERT INTO byteatab VALUES (1, E'\\001\\002\\003\\004\\005\\006\\007\\010'::bytea); +INSERT INTO byteatab VALUES (2, 'bar'); +INSERT INTO byteatab VALUES (3, 'foobar'); +INSERT INTO byteatab VALUES (4, 'foo'); +INSERT INTO byteatab VALUES (5, 'barf'); + +CREATE TABLE intervaltable(id integer, iv interval, d varchar(100)); +INSERT INTO intervaltable VALUES (1, '1 day', 'one day'); +INSERT INTO intervaltable VALUES (2, '10 seconds', 'ten secs'); +INSERT INTO intervaltable VALUES (3, '100 years', 'hundred years'); + +CREATE TABLE booltab (id integer, t varchar(5), b boolean); +INSERT INTO booltab VALUES (1, 'yeah', true); +INSERT INTO booltab VALUES (2, 'yes', true); +INSERT INTO booltab VALUES (3, 'true', true); +INSERT INTO booltab VALUES (4, 'false', false); +INSERT INTO booltab VALUES (5, 'not', false); debian/NEWS0000644000000000000000000000066512061413155007672 0ustar psqlodbc (1:08.01.0200-1) unstable; urgency=low The names of the driver libraries and default data source names have changed in this release. The package now provides an ANSI and a Unicode version, named psqlodbca.so and psqlodbcw.so, respectively. Please review the documentation to see which one you need and adjust your data sources accordingly. -- Peter Eisentraut Thu, 16 Feb 2006 16:10:16 +0100 debian/svn-deblayout0000644000000000000000000000002712061413155011702 0ustar origDir=../../upstream debian/README.Debian0000644000000000000000000000674412061413155011240 0ustar PostgreSQL ODBC Driver on Debian ================================ This package contains the PostgreSQL ODBC driver. Applications wishing to make use of it need to go through an ODBC driver manager. On Debian, this normally means that they have a dependency on the package "libiodbc2" or "unixodbc". ANSI vs. Unicode ---------------- This package actually contains two drivers, one ANSI variant (psqlodbca) and one Unicode variant (psqlodbcw). The Unicode variant works with Unicode and ASCII clients, the ANSI variant should work with any client encoding provided that the database encoding matches. The specifics depend on the application and the driver manager; experimentation may be necessary in some cases. Registering the Driver ---------------------- To register the PostgreSQL ODBC drivers in /etc/odbcinst.ini, run the following command as root: # odbcinst -i -d -f /usr/share/psqlodbc/odbcinst.ini.template You can also edit /etc/odbcinst.ini by hand, but the above command is generally the safest and most convenient way if you don't have special requirements. Creating Data Sources --------------------- To be able to access a particular database via ODBC you need to register it as an ODBC data source. Data sources are registered globally in /etc/odbc.ini or for each user in ~/.odbc.ini. An example entry is included in this package. You can install it like this: $ cat /usr/share/doc/odbc-postgresql/examples/odbc.ini.template >> ~/.odbc.ini This entry will give you read-only access to the template1 database on the PostgreSQL server on localhost under the data source name (DSN) "PostgreSQL test". You should edit ~/.odbc.ini or /etc/odbc.ini as required, to add extra databases, change the read only status, and so on. The program ODBCConfig in the package unixodbc-bin can be used as a graphical editing frontend. Testing Connectivity -------------------- To test the connectivity, you can use the program isql from the package unixodbc: $ isql 'PostgreSQL test' username The first argument is the name of the data source, inserted above into .odbc.ini. If this command doesn't produce an error, you should be able to enter SQL queries and see the results. (Note that the example data source is read-only and to template1, so you shouldn't issue write commands.) Alternatively, the program DataManager from the package unixodbc-bin can be used to test the connectivity and browse the database. At this point, you should be able to use the ODBC access features of any application to connect to any of the listed data sources. For example, in the OpenOffice.org Base application's "Database Wizard", choose "Connect to an existing database", "ODBC", press Next, choose "Browse", then select your data source. Accessing Schemas ----------------- If you have schemas that are not in the default search path ($user, public) you have to set the search path in the connection settings of the odbc.ini file. Here's an example, where the search path is set to prod, public: [Production] Description = Production control Driver = PostgreSQL Trace = No TraceFile = /tmp/psqlodbc.log Database = companydb Servername = localhost UserName = userme Password = Port = ReadOnly = No RowVersioning = Yes ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = SET search_path TO prod, public debian/odbcinst.ini.template0000644000000000000000000000044312061413155013305 0ustar [PostgreSQL ANSI] Description = PostgreSQL ODBC driver (ANSI version) Driver = psqlodbca.so Setup = libodbcpsqlS.so Debug = 0 CommLog = 1 [PostgreSQL Unicode] Description = PostgreSQL ODBC driver (Unicode version) Driver = psqlodbcw.so Setup = libodbcpsqlS.so Debug = 0 CommLog = 1 debian/odbc.ini.template0000644000000000000000000000066112061413155012411 0ustar [PostgreSQL test] Description = PostgreSQL Driver = PostgreSQL ANSI Trace = No TraceFile = /tmp/psqlodbc.log Database = template1 Servername = localhost UserName = Password = Port = ReadOnly = Yes RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = debian/odbc-postgresql.postinst0000644000000000000000000000071512061413155014104 0ustar #!/bin/sh set -e case $1 in configure) if [ "$2" ] && dpkg --compare-versions "$2" lt "1:09.00.0310-2" && \ grep -q /usr/lib/odbc/psqlodbc..so /etc/odbcinst.ini ; then echo "Updating /etc/odbcinst.ini for multiarch support" odbcinst -u -d -n 'PostgreSQL ANSI' odbcinst -u -d -n 'PostgreSQL Unicode' fi if ! grep -q PostgreSQL /etc/odbcinst.ini ; then odbcinst -i -d -f /usr/share/psqlodbc/odbcinst.ini.template fi ;; esac #DEBHELPER# debian/tests/0000755000000000000000000000000012232127162010326 5ustar debian/tests/control0000644000000000000000000000010612232127113011722 0ustar Depends: @, postgresql, unixodbc Restrictions: needs-root Tests: isql debian/tests/isql0000755000000000000000000000332512232127161011226 0ustar #!/bin/sh set -eu if [ -z "${PGVIRTUAL:-}" ]; then # adt sets TMPDIR to a path that's not readable for postgres, breaking pg_virtualenv unset TMPDIR PGVIRTUAL=1 exec pg_virtualenv "$0" "$@" fi export ODBCINI=$(mktemp -t odbcini.XXXXXX) cleanup () { set +e rm -f $ODBCINI } trap cleanup 0 2 3 15 cat > $ODBCINI <&1 || : rm -f *.log echo echo "unixodbc Unicode test" echo "$QUERY" | iusql -b Unicode | grep "$RESULT" || EXIT=$? cat *.log 2>&1 || : rm -f *.log echo exit ${EXIT:-0} debian/tests/buildtime0000755000000000000000000000441312156031350012232 0ustar #!/bin/sh set -eu if [ -z "${PGVIRTUAL:-}" ]; then PGVIRTUAL=1 exec pg_virtualenv "$0" "$@" fi # alternate directory for odbc(inst).ini export ODBCSYSINI=$(mktemp -d -t odbcsysini.XXXXXX) cleanup () { set +e rm -rf $ODBCSYSINI } trap cleanup 0 2 3 15 odbcinst -i -d -f debian/odbcinst.ini.template sed -i \ -e "s!psqlodbca.so!$PWD/build/A/.libs/psqlodbca.so!" \ -e "s!psqlodbcw.so!$PWD/build/W/.libs/psqlodbcw.so!" \ $ODBCSYSINI/odbcinst.ini cat >> $ODBCSYSINI/odbc.ini <&1 || : rm -f *.log echo DEB_BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH) echo "unixodbc Unicode test" # ignore failure on mipsel, see #711954 echo "$QUERY" | iusql -b Unicode | grep "$RESULT" || [ $DEB_BUILD_ARCH = mips ] || EXIT=$? cat *.log 2>&1 || : rm -f *.log echo echo "Running test suite" cd test sed -i -e 's/^Port/#Port/' odbc.ini echo "#ADT#" >> odbc.ini echo "Port = ${PGPORT:-5432}" >> odbc.ini if ! make installcheck; then EXIT=1 echo "regression.diffs:" cat "regression.diffs" fi sed -i -e 's/^#Port/Port/' -e '/#ADT#/,$d' odbc.ini exit ${EXIT:-0}