summaryrefslogtreecommitdiffabout
path: root/src/pgsql.c
AgeCommit message (Collapse)AuthorFiles
2018-08-22Change library loading algorithm.Sergey Poznyakoff1
If the environment variable LD_LIBRARY_PATH is set, the loadable modules are first looked up in the directories listed in that variable, and then in the extension installation directory. Two attempts are made for each directory: first the library name with the -v-VERSION suffix is tried, then the library name without that suffix. * src: Rename to gamma * Makefile.am (SUBDIRS): Update. * configure.ac: Update. * scripts/bootstrap (srcdir, makefile): Update. * gamma/loader.sci: New file. * gamma/Makefile.am: Build loader.scm * src/sql.sci: Remove. * gamma/sql.scm: New file. * modules/sql (scm): Update. * src/syslog.sci: Remove. * gamma/syslog.scm: New file. * modules/syslog (scm): Update. * src/expat.sci: Remove. * gamma/expat.scm: New file. * modules/expat (scm): Update.
2018-08-21Switch to Guile 2.2Sergey Poznyakoff1
Drop support for older Guile versions.
2010-03-22Bugfix.Sergey Poznyakoff1
* src/mysql.c (s_mysql_query): Represent NULL columns as #f * src/pgsql.c (result_to_list): Likewise.
2010-03-15Use scm_from_locale_string instead of scm_makfrom0str.Sergey Poznyakoff1
2010-03-15Fix exception generation in (gamma sql)Sergey Poznyakoff1
* src/gsql_conn.c (gsql_error): Rename to gamma_sql_error. Change Scheme name to sql-error. All callers updated. * src/guile-sql.h: Likewise. * src/mysql.c (s_mysql_connect, s_mysql_query): Use scm_error to generate error exceptions. * src/pgsql.c (s_pgsql_connect, s_pgsql_query): Likewise. * src/sql.sci (sql-catch-failure) (sql-ignore-failure): Update. * doc/sql.texi: Update.
2010-03-09Bugfixes.Sergey Poznyakoff1
* modules/sql: add $(SQLLIBS) to libraries. * src/pgsql.c (s_pgsql_connect): Correctly handle NULL port value.
2010-03-06Bugfixes.Sergey Poznyakoff1
* src/mysql.c, src/pgsql.c: Use scm_from_ulong. * src/pgsql.c (s_pgsql_connect): Call gamma_parmlist_parse (ouch!) * src/gsql_conn.c, src/gsql_lib.c: Remove unused variables * src/guile-sql.h (gsql_conn_init) (sql_register_iface): New protos.
2010-03-06Remove uses of scm_i_ functions.Sergey Poznyakoff1
* src/gsql_lib.c (scm_makenum): Remove. * src/guile-sql.h (scm_makenum): Remove. * src/mysql.c, src/pgsql.c: Use scm_to_ulong instead of scm_makenum.
2010-03-06Update copyright statements.Sergey Poznyakoff1
Remove gettext files, which resurrected mystically after transition to Git.
2010-03-06Provide new connection/disconnection interfaces.Sergey Poznyakoff1
* src/Makefile.am: Rename the library to libgamma-sql. * src/gsql_conn.c (sql_connect_print): Avoid coredumps on NULL values. (sql-connect): Rename to sql-connection-open and rewrite. Connection parameters are given by a single argument, which is a list of conses. Each cons is a pair (kw . value), and sets a single parameter. (sql-query): Do not use internal Guile functions. (sql-connect-close): Rename to sql-close-connection. * gsql_lib.c (gamma_parmlist_parse): New function. (gamma_cvt_string, gamma_cvt_int): New functions. * guile-sql.h (sql_iface)<connect>: Change signature. (gamma_parmdcl): New struct. (GAMMA_PARMLIST_IGNORE_UNKNOWN) (GAMMA_PARMLIST_WARN_UNKNOWN): New constants. (gamma_parmlist_parse): New proto. (gamma_cvt_string, gamma_cvt_int): New protos. * examples/whoisd.scm: Update. * src/mysql.c (s_mysql_connect): Rewrite for the new calling convention. * src/pgsql.c (s_pgsql_connect): Likewise. * src/sql.sci: Update library name. (sql-connect, sql-connect-close): New public functions.
2007-12-26* NEWS: Update.Sergey Poznyakoff1
* configure.ac: Version number 1.1 * COPYING: GPLv3. * Makefile.am: GPLv3. * examples/whoisd.scm: GPLv3. * m4/guile.m4: Require Guile v. 1.8 or later. * scripts/Makefile.am: GPLv3. * scripts/guile-doc-snarf.awk: GPLv3. * src/.cvsignore (gettext.inc, gettext.scm): Remove. * src/Makefile.am: Remove libguile-gettext. * src/app.h: GPLv3. * src/gsql_conn.c, src/gsql_lib.c, src/guile-sql.h, src/mysql.c, src/pgsql.c: GPLv3; Guile v.>=1.8. * src/gettext.sci, src/gettext.h, src/gettext.c: Remove. * src/gettext.scm: New file.
2005-06-26Throw gsql-error, instead of misc-error, on failureSergey Poznyakoff1
2005-06-26Changed FSF postal mail addressSergey Poznyakoff1
2004-10-09(s_pgsql_connect): Synched with the declaration of sql_iface.connect.Sergey Poznyakoff1
2002-05-24Added GNU copyleft headers.Sergey Poznyakoff1
2001-12-06Initial revisionSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.