2004-10-01  Dave Lambert  <d.j.lambert@sms.ed.ac.uk>

	Released 2.3.2.

2004-10-01  Dave Lambert  <d.j.lambert@sms.ed.ac.uk>

	* README: Update to reflect new version.

	* configure.ac: Check for strptime declaration.  Added
	descriptions to the templates for HAVE_MYSQL and
	HAVE_POSTGRESQL.
	* simplesql-mysql.h: Removed preprocessor gubbins for time.h.
	* simplesql-postgresql.c: Ditto.  Don't define _XOPEN_SOURCE.
	* guile-simplesql.h: Define _GNU_SOURCE to get strptime
	declaration, and declare it anyway if HAVE_DECL_STRPTIME is undefined.
	
	Support Guile 1.7.
	* guile-simplesql.h: For Guile 1.6, define SCM_VECTOR_SET and
	scm_i_mem2number as they are in Guile 1.7.
	* guile-simplesql.c (simplesql_escape): Use SCM_STRING_LENGTH,
	not SCM_LENGTH.
	(_simplesql_filltime): Use SCM_VECTOR_SET, not SCM_VELTS.
	* simplesql-mysql.c (sqmysql_convert_integer,
	sqmysql_convert_floatingpoint): Use scm_i_mem2number, not
	scm_istring2number.
	* simplesql-postgresql.c (sqpgsql_query,
	sqpgsql_pgsql_sql2scm): Ditto.
	Thanks to Kim Wroblewski for the nudge.

	* simplesql-postgresql.c (sqpgsql_open): Fix case where
	neither port nor socket is explicitly set.

	* guile-simplesql.c (sq_make_db_smob_scm): Store the
	database's name immediately after the SMOB.
	(sq_db_smob_print): Print database name if database connection
	is not open.  Print datatype name as '#<simplesql-database
	<smob-hex-address> "database name">'.
	
2004-09-30  Dave Lambert  <d.j.lambert@sms.ed.ac.uk>

	* simplesql-postgresql.c (sqpgsql_convert_query_result):
	Removed unused variables date_style, date_style_res, and
	field_typid.
	
	* simplesql-mysql.c (sqmysql_convert_floatingpoint,
	sqmysql_convert_integer): Renamed from sqmysql_convert_inexact
	and sqmysql_convert_exact.

	* simplesql-mysql.c: Include stdio.h
	(sqmysql_convert_time): Return a SCM value.

	This bunch add support for keyword arguments and a `port'
	argument to simplesql-open.
	* simplesql.scm: Import (ice-9 optargs).
	(simplesql-open): New function to handle keyword arg list and
	port argument.
	* guile-simplesql.c (simplesql_open): Now takes exactly 6
	arguments, including new `port' argument.  Renamed Scheme
	synonym to "%simplesql-open".
	* guile-simplesql.h(sql_open_func): Add port and socket
	parameters.
	* simplesql-postgresql.c (sqpgsql_open): Handle port argument.
	* simplesql-mysql.c (sqmysql_open): Ditto.
	* NEWS, guile-simplesql.texi (Introduction): Document above.
	Thanks to Ken Restivo and Chris Waterson for the idea.
	
2004-09-29  Dave Lambert  <d.j.lambert@sms.ed.ac.uk>

	* simplesql-mysql.c (sqmysql_mysql_sql2scm): Properly check
	for NULLness.  Thanks to Chris Waterson.
	(sqmysql_mysql_sql2scm): Pass only the particular field,
	rather than the whole row.

	Throughout, replaced references to "Squile" with
	SimpleSQL (except historical references in documentation).
	
	* Makefile.am, configure.ac: Reflect new names.  Changed
	HAVE_PGSQL to HAVE_POSTGRESQL.

	* guile-simplesql.c, guile-simplesql.h: Renamed from squile.c
	and squile.h
	* simplesql-mysql.c, simplesql-mysql.h: Renamed from
	sqmysql.c and sqmysql.h.
	* simplesql-postgresql.c, simplesql-postgresql.h: Renamed from
	sqpgsql.c and sqpgsql.h.
	
2004-09-27  Dave Lambert  <d.j.lambert@sms.ed.ac.uk>

	* configure.ac: Don't report an error if strptime cannot be
	found.
	
	Throughout: Updated my contact email address.
	* AUTHORS: Added myself :)

	* Makefile.am (EXTRA_libguile_database_simplesql_la_SOURCES):
	Removed.
	* configure.ac: Emit error if guile-config or guile-snarf
	cannot be found.  (Thanks to Ben Cornett)

	* configure.ac: Properly quote the actions for macro calls.

2002-05-30  Dave Lambert  <dlambert@acm.org>

	Released 2.3.1.
	
2002-05-28  Dave Lambert  <dlambert@acm.org>

	* sqmysql.c (sqmysql_mysql_sql2scm, sqmysql_convert_timestamp):
	Only compile time/data translations if HAVE_STRPTIME is defined.
	* sqpgsql.c (sqpgsql_pgsql_sql2scm): Ditto.
	(Thanks to Jeremy Shute for the report.)
	
2002-05-05  Dave Lambert  <dlambert@acm.org>

	Released 2.3.
	
2002-05-04  Dave Lambert  <dlambert@acm.org>

	* squile.c (sq_db_smob_print): Change output format.

	* squile.c (s_simplesql_open): In the call to open the database,
	use SCM_STRING_CHARS instead of copying the SCM strings to C ones.

	* THANKS: New file.

	* squile.c (sq_make_db_smob_scm): More informative description of
	memory use in scm_must_malloc call.
	(s_simplesql_open): Use SCM_SYMBOL_CHARS in the API lookup, rather
	than copying to a C string.

	* simplesql.scm: Export simplesql-database?.  Define simplesql-db?
	as alias for simplesql-database?.
	* squile.c (simplesql_database_p): Renamed from simplesql_db_p.

	* squile.c (sq_latin1_string, sq_binary_vector): Use
	scm_mem2string instead of scm_makfromstr.

	* README: Update version information and software requirements.

	* configure.ac: Check that at least one database backend is found.
	(Thanks to Ian Hinder for the idea.)
	
	* squile.c (simplesql_extension_init): Include squile.x only if
	SCM_MAGIC_SNARFER is undefined.  Include using "squile.x", not
	<squile.x>.

	* squile.h: Include time.h and sys/time.h according to the
	autoconf macros.  (Thanks to Ian Hinder for the report.)
	* configure.ac: Fold the error message after strptime check into
	the AC_CHECK_FUNCS macro.  Check for sys/time.h.  
	
	* Makefile.am (libguile_database_simplesql_la_LIBADD) 
	(libguile_database_simplesql_la_DEPENDENCIES): Use LTLIBOBJS, not LIBLOBJS.
	* configure.ac:	Replaced LIBOBJS assignments with AC_LIBOBJ macro calls.
	(LTLIBOBJS): Set this rather than LIBLOBJS.

	* configure.ac: Renamed from configure.in.
	Added AH_TEMPLATE's for HAVE_MYSQL and HAVE_PGSQL.
	* acconfig.h: Removed.

2001-10-26  Dave Lambert  <dlambert@acm.org>

	* sqpgsql.c (sqpgsql_pgsql_sql2scm): Handle `name' field type.

2001-08-30  Dave Lambert  <dlambert@acm.org>

	* squile.c: Replaced gh_* with scm_* equivalents, except "gh_scm2newstr".
	* sqpgsql.c: Ditto.  Include libguile.h instead of guile/gh.h.
	* sqmysql.c: Likewise.

2001-08-27  Dave Lambert  <dlambert@acm.org>

	* squile.c (s_simplesql_query): Replaced function name strings
	with FUNC_NAME.
	(sq_string_join): Made proc argument const.
	(s_simplesql_escape): Pass scm_must_malloc FUNC_NAME.

	* squile.c (simplesql_open, simplesql_close, simplesql_query,
	simplesql_db_p, simplesql_escape): Renamed from sql_open,
	sql_close, sql_query, sql_db_pm, and sql_escape respectively.
	* simplesql.scm: Export sql-open, sql-close, sql-query, sql-db?,
	and sql-escape.  Define them in terms of their simplesql-*
	counterparts.

2001-08-26  Dave Lambert  <dlambert@acm.org>

	* sqpgsql.c: Define _XOPEN_SOURCE to get strptime declaration.
	(sqpgsql_pgsql_sql2scm): Convert field_type to a SCM string when
	reporting error.

	* doc/Postgresql: Removed.
	* doc/database-api: Removed.
	* doc/scheme-api: Removed.

	* Makefile.am: Change library name to
	libguile_database_simplesql.  Install library in libdir.  Use
	GUILE_COMPILE and GUILE_LINK variables.
	* configure.in: Check for guile-config.  Set and AC_SUBST
	GUILE_COMPILE and GUILE_LINK variables.
	* simplesql.scm: Use load-extension to link library.
	* squile.c : Throughout, use SCM_STRING_* instead of
	SCM_RO*.
	(sq_db_smob_free): Change return type to size_t.
	(simplesql_extension_init): New.
	(scm_init_database_guilesimplesqlcore_module,
	scm_init_squile_module): Replaced by simplesql_extension_init.
	(s_sql_open): Convert api to a string before copying.
	
	* squile.c: Removed legacy from struct sq_db_smob.
	(sq_db_smob_print, sq_make_db_smob_scm, s_sql_query,
	scm_init_squile_module): Removed SQUILE_LEGACY code.
	(set_current_sql_api_x, sql_create, current_sql_api):
	Removed.
	* squile.h: Prototypes removed for set_current_sql_api_x,
	sql_create, and current_sql_api.
	
	* squile.scm: Removed.
	* Makefile.am (guilesimplesqldata_DATA): Removed squile.scm.
	* configure.in: Removed legacy option.
	
	* configure.in: Version bumped to 2.3.

2001-08-24  Dave Lambert  <dlambert@acm.org>

	* Makefile.am (DOT_X_FILES): Make these dependent on config.h.

2001-08-14  Dave Lambert  <dlambert@acm.org>

	* configure.in: Bumped revision to 2.2.

	* README: Updated.

	* Makefile.am (CLEANFILES): New variable.

2001-08-11  Dave Lambert  <dlambert@acm.org>

	* squile.c, squile.h (_simplesql_filltime): New function.
	Include time headers.
	* sqpgsql.c (sqpgsql_convert_time): Use _simplesql_filltime.
	* sqmysql.c (sqmysql_convert_time): Ditto.
	
	* configure.in: Require autoconf 2.50 as a minimum.  Updated error
	message for new name.

2001-06-27  Dave Lambert  <dlambert@acm.org>

	* squile.c (sq_scm2sq_db_smob): Remove type check on database
	smob.  Remove the argument number and and function name
	arguments.  Callers changed.
	(SIMPLESQL_SMOB_P): New macro.
	(sql_close, sql_query): Added type check on database smob.

	* squile.c (set_current_sql_api_x): Pass the correct name to
	SCM_DEFINE.

	* squile.c: Updated copyright commentry.

2001-06-25  Dave Lambert  <dlambert@acm.org>

	* sqpgsql.c (sqpgsql_query): Pass "~S" to scm_misc_error, rather
	than the old style "~s".

	* configure.in (GUILE_SNARF): New variable and test for Guile's
	snarfing tool.
	* Makefile.am (DOT_X_FILES): New variable, and associated rule for
	snarfing.
	* squile.c: Use guile-snarf to provide function definitions. All C
	functions exported to SCM now use SCM_DEFINE.  Moved
	scm_init_squile_module to end of file so snarfing will work.

2001-06-21  Dave Lambert  <dlambert@acm.org>

	* configure.in: Bumped version to 2.1.2.

	* guile-simplesql.texi: Added section on creating backends. 

2001-06-18  Dave Lambert  <dlambert@acm.org>

	* NEWS: Retrospectively updated for 2.1.1.  Changes for 2.1.2 to
	date included.

2001-06-11  Dave Lambert  <dlambert@acm.org>

	* guile-simplesql.texi: Added section on date and time.  Minor
	fixes.

2001-04-16  Dave Lambert  <dlambert@acm.org>

	* guile-simplesql.texi: New file (thanks to Dale P. Smith).
	* Makefile.am (info_TEXINFOS): New variable.

2001-04-05  Dave Lambert  <dlambert@acm.org>

	* INSTALL: Removed, as it's now autogenerated.

2001-04-03  Dave Lambert  <dlambert@acm.org>

	* Makefile.am (EXTRA_DIST, noinst_HEADERS): New variables.

	* simplesql.scm: New file.

	* configure.in: Change package name to guile-simplesql.

2001-03-22  Dave Lambert  <dlambert@acm.org>

 	* squile.scm: New file.
	* squile.c (scm_init_database_guilesimplesqlcore_module): Rename
	from scm_init_database_squile_module.  Register new module name.
	* configure.in: Changed to support Makefile.am.
	* aclocal.m4, config.h.in: Removed - automatically generated.
	* Makefile.in: Remowed - now generated from Makefile.am.
	* Makefile.am: New file.
	* autogen.sh: New file.
	* acconfig.h: New file.

	* NEWS: New file.

2001-03-08  Dave Lambert  <dlambert@acm.org>

	* squile.c (sql_query): Don't tell Guile about q being freed,
	because it gets allocated by malloc.

2001-03-05  Dave Lambert  <dlambert@acm.org>

	* sqpgsql.c (sqpgsql_query): Ensure query string is nul-terminated.

1999-11-23  Jorgen `forcer' Schaefer  <forcer@mindless.com>

	* sqmysql.c (sqmysql_mysql_sql2scm): Initialize tm.tm_isdst to -1 too
	(thanks to Stephen R. Kifer)

1999-11-15  Jorgen Schaefer  <forcer@mindless.com>

	* AUTHORS: created
	* sqpgsql.c, sqpgsql.h: Added. (Thanks to
	Stephen R. Kifer <srkifer@mboxes.com>

1999-10-23  Jorgen Schaefer <forcer@mindless.com>

	* sqmysql.c (sqmysql_mysql_sql2scm): added FIELD_TYPE_VAR_STRING
	to the case construct (thanks to Horacio J. Pena).

1999-10-02  Jorgen Schaefer <forcer@mindless.com>

	* squile.c (sql-escape): actually implemented this one. 
	forgot it last time *cough*

