1 2010-04-20 Kevin Rosenberg <kevin@rosenberg.net>
2 * Version 5.1.0 [DEPENDENCY UPGRADE: UFFI 2.x needed]
3 * clsql-uffi.asd: Depend on UFFI version >= 2.0
4 to support foreign encoding of strings.
6 2010-04-16 Kevin Rosenberg <kevin@rosenberg.net>
8 * db-postgresql.lisp, sql/fddl.lisp: Fix typos [Thanks to
10 * sql/metaclasses.lisp: Work around type-check-function being set
11 during defclass expansion in SBCL [Thanks to Walter C. Pelissero]
12 * uffi/clsql-uffi.lisp: In call to uffi:convert-from-foreign-string,
13 Set null-terminated-p to T when length not specified.
14 [Thanks to Walter C. Pelissero]
16 2010-03-21 Kevin Rosenberg <kevin@rosenberg.net>
18 * sql/fdml.lisp: Fix DO-QUERY to actually return the last value of
21 2010-03-02 Nathan Bird <nathan@acceleration.net>
22 * doc/: Added a README on how to build doc; now builds on Ubuntu.
23 * sql/oodml.lisp: READ-SQL-VALUE now has explicit method for
24 handling double-floats and the default method will no longer
25 attempt to convert values that have already been converted.
26 * sql/syntax.lisp: Introduce file-enable-sql-reader-syntax which
27 enables the syntax for the scope of the file without trying to
28 keep track of the current syntax state.
29 * sql/pool.lisp: Introduce
30 clsql-sys:*db-pool-max-free-connections* which is a heuristic
31 threshold for when to disconnect a connection rather than
32 returning it to the pool.
33 * sql/pool.lisp: Check connections for validity before returning
36 2010-03-01 Kevin Rosenberg <kevin@rosenberg.net>
37 * db-mysql/mysql-api.lisp: Remove spurious enumeration
39 2010-02-16 Kevin Rosenberg <kevin@rosenberg.net>
41 * db-mysql/mysql-api.lisp: Fix mysql_options UFFI parameter list
42 * doc/ref-connect.xml: Document the MySQL options parameter as
43 part of the connection-spec.
45 2010-02-15 Kevin Rosenberg <kevin@rosenberg.net>
46 * db-mysql/mysql-{api,sql}.lisp: Support sending options
47 to MySQL using mysql_options, which occurs between the API calls
48 of mysql_init and mysql_real_connect.
50 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
52 * multiple-files: Further internationalization. Change
53 UFFI:CONVERT-RAW-FIELD and UFFI:CONVERT-FROM-FOREIGN-STRINGS
54 invocations to use the foreign character set encoding of the
55 database object. Requires UFFI v.1.8.6
56 * Makefile.common: Fix OS_DARWIN64 setting
58 2010-02-11 Nathan Bird <nathan@acceleration.net>
59 * MSSQL: better support for fddl 'date type.
61 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
62 * Makefile.common, uffi/Makefile, db-mysql/Makefile:
63 Better support OS X Snow Leopard by building universal
64 (x86_64,i386) dylib bundles
66 2010-02-08 Kevin Rosenberg <kevin@rosenberg.net>
68 * sql/database.lisp: Fix missing slot-accessor
69 (Thanks to Stelian Ionescu)
70 * sql/generics.lisp: Add missing keyword to defgeneric
71 (Thanks to Stelian Ionescu)
73 2010-02-07 Kevin Rosenberg <kevin@rosenberg.net>
75 * sql/{base-classes,database}.lisp: Add encoding slot for
77 * db-mysql/mysql-sql.lisp: Use UFFI:FOREIGN-ENCODED-OCTET-COUNT.
78 Requires UFFI version 1.8.2 or above.
80 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
81 * Version 5.0.0: First release of CLSQL to formally and
82 consistently support non-ASCII strings with encoding of external
83 formats for SQL strings. UFFI version 1.8.1 is higher is required.
85 This change may introduce some differences in string handling for
86 people who are using non-ASCII encoded characters. Thus, because
87 of the risk of BACKWARD INCOMPATIBILITY, the major version number
88 was incremented with this release.
90 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
91 * tests/test-i18n.lisp: Bind UFFI:*DEFAULT-EXTERNAL-FORMAT*
92 for testing multibyte encodings.
93 * uffi/clsql-uffi.lisp: Changes for UFFI 1.7.4's new support
94 for encoding foreign strings with a specified external format.
96 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
97 * sql/metaclasses.lisp: If no declared slot type in
98 compute-lisp-type-from-specified-type, then use t as lisp type.
99 Issue noted when testing Clozure CL 1.4.
101 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
102 * tests/test-init.lisp: Turn off the benign console notices for
105 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
106 * clsql-test.asd, tests/{test-i18n,test-init}.lisp:
107 Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
108 not present in cl:*features*. This requires UFFI 1.7.2 or above.
110 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
111 * sql/utils.lisp: Reading #\no-break_space causes an
112 error for non-unicode SBCL. Conditionalize read of
113 #\no-break_space for non-unicode SBCL and 8-bit string
116 2010-02-03 Kevin Rosenberg <kevin@rosenberg.net>
117 * tests/test-init.lisp: Add *test-report-width* variable
118 and word-wrap skipped test reason field.
120 2010-01-29 Kevin Rosenberg <kevin@rosenberg.net>
122 * clsql-cffi.asd: New file that causes CLSQL to use
123 CFFI-UFFI-COMPAT library rather than UFFI. Perform 'asdf:load-op
124 on CLSQL-CFFI rather than CLSQL system to use CFFI-UFFI-COMPAT.
126 2010-01-29 Nathan Bird <nathan@acceleration.net>
127 * tests/*.lisp: A lot more tests and test setup tweaks.
128 * sql/expressions.lisp: output-sql on sql-relational-exp does
129 better arity checking now. (apply #'sql-and some-list) gives
132 29 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
133 * sql/oodml.lisp: Fix for UPDATE-RECORD-FROM-SLOTS for normalized
136 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
138 * Change "normalise" from British spelling for consistency with
139 other American spellings in CLSQL.
141 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
142 * db-mysql/Makefile: Add directory for Fedora 11/12 on 64-bit
143 platform (Thanks to Michael Pheasant) and remove a 32-bit directory
145 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
147 * sql/utils.lisp: Ensure Lispworks 6 lock is created in sharing mode
149 20 Jan 2009 Nathan Bird <nathan@acceleration.net>
151 * Rewrite tests to use datasets
153 07 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
154 * sql/utils.lisp: Changes to support Lispworks 6
156 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
158 * doc/ref-ooddl.lisp: Add needed CDATA escapes
159 * doc/clsql.pdf, doc/html.tar.gz: Build new manuals with
160 normalized view classes.
162 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
163 Large patch from Thijs Oppermann <thijso+clsql@gmail.com> to add
164 support for normalized view classes. When having view class that
165 inherit from others, CLSQL by default builds tab all the columns
166 from the parent in the child. This patch is meant to normali so
167 that a join is done on the primary keys of the concerned tables to
170 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
171 * sql/time.lisp: Patch from Oleg Tihonov to SYNTAX-PARSE-ISO-8601
172 to properly parse fractions of seconds.
174 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
175 * sql/time.lisp: Patch from Oleg Tihonov to roll function
176 to properly use USEC argument.
178 21 Nov 2009 Kevin Rosenberg <kevin@rosenberg.net>
180 * Makefiles: On 64-bit Linux systems, try to build both 32 and 64-bit
181 interface libraries. This requires the installation of multiarch build tools
182 as well as 32-bit support libraries (libc, libz and libmysqlclient).
184 04 Sep 2009 Kevin Rosenberg <kevin@rosenberg.net>
186 * sql/fdml.lisp: Rework do-query to use supplied database
187 parameter when passed a sql-object-query
188 (thanks to JTK <jetmonk@gmail.com>)
189 * sql/generic-postgresql.lisp: Allow optional connect
190 parameters for postgresql databases (thanks to Stephen Compall)
191 * doc/ref-{clsql,connect}.xml, sql/db-interfaces.lisp:
192 Fix transposed letters (thanks to Stephen Compall)
193 * db-mysql/Makefile: Add directory for MacPorts mysql5 port
194 (thanks to Stephen Compall)
195 * sql/database.lisp: Have database-type default be
196 *default-database-type* (thanks to Desmond O. Chang)
197 * sql/transactions.lisp: Improved handlining of nested
198 transactions (thanks to Eli Naeher)
199 * sql/time.lisp: Commit patch to fix parse-iso-8601-duration
200 (thanks to Stephen Compall)
201 * sql/database.lisp: Use :verbose nil for asdf:operate
202 invocation (Thanks to Mackram Raydan)
203 * sql/metaclasses.lisp: Rework initialize-instance for
204 view-class-direct-slot-definition (thanks to Stephen Compall)
206 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
207 * sql/db-interface.lisp: Fix spelling error (thanks to
209 * clsql-mysql.asd/db-mysql/mysql-loader.lisp: Commit
210 patch from Andreas Franke to honor windows drive letter
211 when loading clsql_mysql C library.
213 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
215 * db-mysql/mysql-{sql,api}.lisp,db-mysql/clsql_mysql.c:
216 Latest version of mysqlclient once again changed the C
217 structures from which the mysql backend reads data.
218 Rather than adding yet another structure definition which
219 is enabled by the client version as read by mysql-client-info.lisp,
220 the mysql backend has been re-written to ignore in the internal
221 C structures. Instead, C wrapper functions for slot access have
222 been added to clsql_mysql.c and are used by mysql-sql.lisp to
223 access the internals of C structures. This adds a bit of overhead,
224 but completely separates the lisp code from trying to keep up
225 with the continually changing internal C structure of mysql.
226 All tests in the test suite executed correctly with this change.
228 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
230 * sql/database.lisp: Fix syntax on process-lock (thanks to
232 * db-mysql/mysql-sql.lisp: Allow use of database parameter
233 in database-list function (thanks to Michael Pheasant)
234 * sql/oodml.lisp: Allow NULL values for floating-point fields
235 (thanks to Jan Rychter)
237 02 Jun 2009 Kevin Rosenberg <kevin@rosenberg.net>
239 * sql/database.lisp: Add process-lock for deleting database from
240 a pool (thanks to Ralf Mattes).
242 25 Feb 2008 Kevin Rosenberg <kevin@rosenberg.net>
244 * sql/expressions.lisp: Remove stray form (thanks to Samuel Ward)
246 12 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
247 * sql/expressions.lisp: Bind *in-subselect* when outputting
248 selections (patch from unknown source).
250 11 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
252 * sql/metaclasses.lisp: Unify base-table processing by extracting
253 the correct code from initialize-instance :around into the helper
254 function set-view-table-slot. Call that function also in
255 reinitialize-instance :around replacing erroneous code discovered
258 17 Nov 2007 Kevin Rosenberg <kevin@rosenberg.net>
259 * BUGS: Add note about benefit of using configure file to create
260 Makefiles (suggestion from Joe Corneli)
262 22 Oct 2007 Kevin Rosenberg <kevin@rosenberg.net>
264 * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
265 Andrew Golding suggestion for more informative :error-id slot.
267 17 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
269 * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
271 * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
273 14 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
274 * Version 4.0.0: Major version increase to warn of potential
275 backwards incompatibility.
276 * NEWS: Document potentional backward incompatible changes
277 * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
278 after connecting. This may break compatibility with some applications
279 who are using non-ANSI features with MySQL. This change is required to
280 properly support view-classes using a string as their :base-table
281 attribute. This allows users to specify the case of table names.
282 This is feature is even more essential for MySQL itself since MySQL
283 uses case-sensitive table names. Use connection-based database-create
284 and database-destroy rather than trying to invoke command-line mysql
285 utility. Remove automatic upcasing of strings from list-indices.
286 * db-postgresql/postgresql-sql.lisp: Use connection-based
287 database-create and database-destroy rather than trying to invoke
288 command-line utilities.
289 * db-postgresql-socket/postgresql-socket-sql.lisp: Use
290 database-execute-command rather than execute-command for
291 database-{create,destroy}. Connect to postgres database
292 rather than template1 for those database creation/deletion.
293 * sql/metaclasses.lisp: Store the string value of :base-table if a
294 string is provided. Perform sql-escape at time of view-table name
296 * tests/test-init.lisp: Use "ej_join" as a string, rather than a
297 symbol, since "ej_join" is specified as :base-table. Clear the
298 expression output-cache in case the code for generating sql output
300 * test/test-oodml.lisp: whitespace fix
301 * sql/ooddl.lisp: Use quoted string for primary key constraint if
302 table name is specified as a string.
303 * sql/oodml.lisp: Don't convert a string view-table name to database's
305 * sql/expressions.lisp: Properly handle table and attribute identifiers
306 when they are a string. Do not change case of symbols to match database
308 * sql/operations.lisp: Change multiword symbols to upper case.
309 * sql/fddl.lisp: Quote base-table if a string to preserve case
310 for drop-table and create-table.
311 * tests/test-syntax.lisp: Add tests of low-level string attribute
314 20 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
316 * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
317 (problem noted on clsql-devel by icardo Boccato Alves)
318 * sql/pool.lisp: Remove incorrect keyword
319 * sql/database.lisp: Rework WITH-DATABASE to not make the database the
320 default database (reported by Saurabh Nanda and Chaitanya Gupta)
321 * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
322 emphasis that make-default has a default value of nil.
323 * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
324 SQL Server. (patch from Nathan Bird)
325 * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
326 of trouble with def-view-class compilations (patch from Nathan Bird)
328 15 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
330 * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
331 not dynamically loaded on Windows
333 22 Jun 2007 Kevin Rosenberg <kevin@rosenberg.net>
335 * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
336 that library is dymically linked to clsql-mysql library. Thus, the mysql
337 library will be automatically loaded. This has only been tested on Linux,
340 29 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
341 * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
342 reported by Ricardo Boccato Alves
344 02 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
345 * sql/database.lisp: Add ability of WITH-DATABASE to return
346 multiple values (patch from Liam Healy)
348 25 Apr 2007 Kevin Rosenberg <kevin@rosenberg.net>
350 * doc/connect.xml: variable description fix by Liam Healy
351 * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
352 Apply patches from Marcus Pierce to reduce load-time warnings
353 * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
355 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
357 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
358 disable wide characters for crypt salt sequence on SBCL, based
359 on patch from Lars Nostdal.
361 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
363 * sql/pool.lisp: Test pooled connection when popped from
364 the pool to ensure the connection still works. Currently, implemented
367 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
368 * db-mysql/Makefile: Add potential mysql directories
370 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
371 * sql/metaclasses.lisp: Remove usused saved-initargs
372 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
373 push search libraries)
375 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
376 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
377 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
378 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
379 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
380 on non-Lispworks platforms, the nickname POSTGRESQL will still be
381 available. Applications directly using low-level POSTGRESQL package
382 are recommended to use the new PGSQL name.
383 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
384 Apply patch from Edi Weitz to reduce compiler warnings.
386 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
388 * sql/expressions.lisp: Commit patch from Edi Weitz to
389 use *default-database* for SQL-OUTPUT if no database is
390 explicitly passed to function.
391 * uffi/clsql-uffi-loader.lisp: Change load order to first try
392 plain name/type before attempting user-specified paths (patch
394 * uffi/ptrbits.c: New file to return number of bits in an pointer
395 * uffi/Makefile: use intbits to name .so file based on bit size.
396 Build both 32-bit and 64-bit libraries on 64-bit platform.
398 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
400 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
403 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
405 * db-postgresql/postgresql-sql.lisp: Remove
406 uffi:convert-foreign-to-native wrapper since using cstring for
409 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
411 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
412 PQresultErrorField foreign function.
414 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
416 * doc/intro.xml: Update supported platforms.
417 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
418 changes from Andew Golding to use a more-specific error code
419 from PostgreSQL than the generic fatal error code of the result set.
421 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
422 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
423 readtable modifications
425 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
426 * sql/syntax.lisp: Check that original reader syntax functions
427 stored before trying to restore them.
429 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
430 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
431 display sql reader syntax.
433 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
434 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
435 to decide on 64-bit platform and check size of most-positive-fixnum instead.
436 Needed to support clisp amd64.
438 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
440 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
441 compatibile. Add warning for a metaclass condition that should
443 * sql/time.lisp: Fixed symbol case inconsistency causing problem
444 in AllegroCL's modern lisp. First sign of bug noted by
445 Joel Reymond on clsql-devel.
446 * clsql.asd: Make time.lisp depend on utils.lisp
448 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
449 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
450 *library-file-dir* to CLSQL's library path.
452 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
453 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
454 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
455 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
456 * Makefile.common: Add OS detection
457 * uffi/make.sh, db-mysql/make.sh: Remove files
458 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
459 Refactor to remove need to make.sh shell scripts.
460 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
461 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
462 package rather than CL-USER. Add support for ansi-loop on clisp.
463 * sql/ansi-loop.lisp: New file to support iteration on clisp.
464 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
465 longer exist in the mysql client library.
466 * doc/ref-fdml.lisp: Correct default field-type.
467 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
468 Fixed bug with noted with MySQL 5.0.24 and boolean values.
470 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
472 * sql/oodml.lisp: Remove high debugging level declaration
474 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
476 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
477 is always 1. Fixes problem noted with PostgreSQL 8.1.
479 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
481 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
482 lazily cache if pg_roles tables exist. Selectively use SQL from
483 Joel's previous patch if pg_roles table exists. Should now work
484 with both postgresql 7.4 and 8.x.
486 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
488 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
489 local initialization file
490 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
492 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
493 that generates incorrect integer return type
494 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
495 it fails on versions of postgresql that lack the pg_role table
497 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
499 * sql/transactions.lisp: Important typo fix from Alexey Antipov
500 for database-start-transaction
502 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
504 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
505 to close connection when failing to connect to database.
506 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
507 to avoid dropping system views.
508 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
509 a nil value [patch sponsored by Flektor]
510 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
511 for netbsd compilation
513 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
514 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
515 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
517 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
518 * db-postgresql-socket/postgresql-socket-api.lisp:
519 Apply patch from Marko Kocic adding the socket creation
520 function needed for CLISP.
522 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
523 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
524 * db-oracle/metaclasses.lisp: Patch from James Bielman for
525 checking slot constraints.
526 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
527 saved openmcl images (based on patch from James Bielman)
529 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
530 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
532 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
534 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
535 duration parsing and unparsing to include year and month.
536 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
537 improving library search on Windows platform.
538 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
539 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
541 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
543 * clsql-postgresql-socket.asd,
544 * db-postgresql-socket/postgresql-socket-package.lisp:
545 Use the cl-md5 package on all platforms. Based on report
548 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
550 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
552 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
554 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
555 fix accessor for new versions of SBCL
556 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
557 to improving parsing of time.
558 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
560 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
561 as noted by Russ Tyndall.
563 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
565 * sql/time.lisp: Commit patch from Aleksandar Bakic
566 to properly handle destructive flag
567 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
568 from Steven Harris for socket files with SBCL.
569 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
570 new connections added to the pool do not become the *default-database*
571 * sql/connect.lisp: Optionally set *default-database* for pooled
572 connection when make-default is generalized true.
574 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
576 * sql/expressions.lisp: Ensure table names are properly escaped
577 before comparing -- fixes bug reported by Asbjørn Bjørnstad
580 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
581 * sql/generic-postgresql.lisp: improved decoding of table attribute
582 parameters [from Vladimir Sekissov]
583 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
584 it's subclass to prevent adding standard-db-object to supers if
585 somebody in the path has it already when metaclass inherited from
586 standard-db-class. [from Vladimir Sekissov]
588 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
590 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
591 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
592 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
593 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
594 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
595 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
596 Commit patch from Dominic Robinson providing support for
598 * doc/csql.lisp: Fix typo in slot name
600 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
602 * sql/time.lisp: Commit patch from Aleksandar Bakic for
603 correct handling of decode-time usec value
604 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
605 correct the name of the shared library file.
607 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
609 * sql/metaclasses.lisp: Avoid calling change-class on
610 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
613 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
615 * sql/expressions.lisp: Patch from James Biel to add subselects
617 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
618 * Version 3.4.4 [ Requires UFFI 1.5.7+]
619 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
620 to fix lifetime of foreign strings for Oracle calls
622 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
624 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
625 to improve performance
627 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
629 * clsql-uffi.asd: Patch from James Biel improving loading
630 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
631 to support 64-bit lisps
633 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
635 * sql/expressions.lisp: Escape numbers to SQL strings
638 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
639 * Version 3.4: Add MySQL 5 support
640 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
641 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
642 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
644 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
645 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
647 * BUGS: Added report for update-object-joins by Aleksandar Bakic
649 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
650 * Version 3.3.4 [UFFI >= 1.5.5 needed]
651 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
652 to add missing #\' character.
653 * clsql.asd: Add support for CLSQLINIT environmental variable,
654 based on patch from Yaroslav Kavenchcuk. New version of UFFI
657 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
659 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
660 update-objects-joins when using the :target-slot attribute
662 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
664 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
665 as noted by Harald Hanche-Olsen.
666 * tests/test-syntax.lisp: Add test for multiple field group-by
668 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
670 * sql/time.lisp: Commit patch from Alan Shields to
671 display escape string on wall-time display only when *print-escape*
674 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
675 * sql/metaclasses.lisp: Commit patch from Will to
676 properly set db-reader slot in effective-slot-definition
677 * sql/expressions.lisp: Commit patch from Alan Shields
678 adding make-load-form for sql-relational-exp
679 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
680 adding support for new NUMBER type
682 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
684 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
685 * doc/ref-ooddl.xml: Documentation of new type
686 * notes/add-type-hints.txt: New file from Alan Shields
687 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
689 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
690 as noted by Francis Leboutte. Similar fix applied to db-mysql and
692 * sql/expressions.lisp: Allow string table names for output as
693 contributed by Francis Leboutte.
694 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
697 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
699 * doc/into.xml: Change download from ftp to http protocol
701 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
703 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
706 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
708 * db-oracle/oracle-sql.lisp: Add check for zero increment as
709 suggested by Edi Weitz. Add missing database-sequence-last function
710 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
711 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
712 stmthp object when query cursor is freed with OCI.
714 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
715 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
716 display search path when error occurs loading foreign library.
718 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
720 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
721 with changes to support case-sensitive lisp implementations. Add
722 paragraph on using /etc/clsql-init.lisp site initialization file.
723 * clsql.asd: Load file /etc/clsql-init.lisp, if it
724 exists, after package is loaded to set site-specific configuration
726 2005-06-24 Edi Weitz <edi@agharta.de>
727 * sql/db-interface.lisp: Added new special variable
728 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
730 * sql/package.lisp: Export these.
731 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
733 * db-mysql/mysql-loader.lisp: Changed order of libs.
735 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
736 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
737 * clsql-mysql.asd: Renamed clsql/mysql interface library from
739 * clsql-uffi.asd: Renamed clsql/uffi interface library from
741 * uffi/clsql_uffi.c: Renamed from uffi.c
742 * db-mysql/clsql_mysql.c: Renamed from mysql.c
743 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
744 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
745 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
746 absolute pathnames when searching for foreign libraries.
747 foreign library loading.
749 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
751 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
752 to support UTF-8 on sbcl unicode.
754 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
756 * sql/time.lisp: Fix bug in roll that caused failure in test suite
758 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
760 * sql/oodml.lisp: Properly handle when db-writer is NIL
762 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
763 * sql/expressions.lisp: Avoid using simple-string declaration when
764 a non-simple string may be encountered. [issue noted by
765 will@cesmail.net] Add a simple-string declaration for a local
768 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
769 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
770 a symbol as well as function to serve as a function designator
771 [issue noted by will@cesmail.net]
773 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
775 * sql/time.lisp: Fix error in submitted patch which caused error
776 in timestrings with 19 or less characters.
778 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
780 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
781 to fix read-socket-sequence on non-sb-unicode sbcl.
783 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
785 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
786 for fractional seconds which is required by PostgreSQL
787 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
789 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
790 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
792 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
794 * sql/syntax: Commit patch from Alan Shields to supress reader
795 macros when *read-supress* is T.
797 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
799 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
800 from Janis Dzerins to support unicode on SBCL
801 * sql/syntax: Commit patch from Alan Shields to improve reporting
802 of invalid syntax statements.
804 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
806 * db-mysql/mysql-sql.lisp: Add port to connection specification
807 based on patch from Dave Watson
808 * doc/appendix.xml: Document MySQL port parameter to connection spec
810 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
812 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
814 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
815 * sql/oodml.lisp: Add missing database argument [Patch from
818 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
819 * sql/oodml.lisp: Improve database priority in
820 update-records-from-instance [Patch from Walter C. Pelissero]
822 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
824 * sql/package.lisp: Export database-reconnect from clsql-sys
826 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
827 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
828 [Patch from Walter Pelissero]
830 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
831 * db-postgresql/postgresql-loader.lisp: Add additional
832 directories to Fink on darwin [patch from Cyrus Harmon].
834 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
836 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
837 is invoked [suggested by Alan Shutko].
838 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
839 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
840 to def-view-class [fix suggested by Fred Gilham].
842 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
843 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
845 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
846 * doc/*.xml: Fix spelling of Vladimir
848 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
849 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
850 now that LispWorks is an independant company [noted by
853 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
854 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
855 Better support for 64 bit environments
857 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
859 * sql/metaclass.lisp: Make t the default value of :set
860 [noted by Cyrus Harmon]
862 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
864 * uffi/clsql-uffi.lisp: Add support for unsigned integers
865 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
866 unsigned integers. Apply patch from Yannick Gingras to
867 implement database-sequence-last.
869 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
870 * doc/ref-fdml.lisp: Fix variable tag name to varname
871 [noted by Eduardo Munoz]
872 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
874 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
876 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
878 * sql/metaclass.lisp: Remove unnecssary (and runtime error
879 causing) change-class invocation when running on CLISP.
880 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
881 to fix structure name.
882 * sql/database.lisp: More specific error message with trying
883 to use a database value of NIL.
884 * sql/expressions.lisp: Accept a string for the table name
885 in (sql-output sql-delete database) [suggested by Ed Symanzik].
887 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
889 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
890 ignore columns which have been dropped.
891 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
892 Use sb-md5 package on SBCL, recommended by Chris Capel
894 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
895 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
896 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
897 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
899 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
900 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
902 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
903 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
904 contributed by Aurelio Bignoli
906 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
907 * sql/oodml.lisp: Commit patch from Walter Pelis
908 to use an object's database for a select on its slot.
910 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
911 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
912 Aurelio Bignoli to fix negative 64-bit integers
914 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
915 * db-mysql/mysql.c: Fix parameters in bind_param call
917 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
918 * uffi/clsql-uffi.lisp: Add support for :blob result-type
919 * db-mysql/mysql-sql.lisp: Add support for :blob
922 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
923 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
924 missing quotes for types in code that is still in development
925 (thanks to Joerg Hoehle)
927 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
928 * Version 3.0.8 released
929 * db-sqlite/sqlite-*.lisp: Apply patch from
930 Aurelio Bignoli with improvements
932 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
933 * multiple: Apply patch from Joerg Hoehle with multiple
936 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
937 * Version 3.0.7 released
938 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
939 Add support for mediumint.
940 * sql/metaclass.lisp: Rework CLISP MOP handling
941 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
943 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
944 * sql/metaclass.lisp: Support CLISP's attribute name
945 for the type field in direct class slots
947 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
948 * Version 3.0.6 released
949 * BUGS: New file. Document suspected SIGPIPE
950 interaction between SBCL and libpq used in
952 * doc/ref-fdml.lisp: Document the :caching and :refresh
953 keywords of the SELECT function.
954 * doc/ref-ooddml.lisp: Document the new *default-caching*
956 * sql/package.lisp: Export *default-caching*
957 * sql/oodml.lisp: Use *default-caching* to
958 control default caching behavior.
960 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
961 * Version 3.0.5 release
962 * doc/appendix.xml: Add note about loading Oracle8 version
963 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
964 data from David Young.
966 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
967 * doc/Makefile, doc/catalog-darwin.xml: Apply
968 patch from Cyrus Harmon for building docs on Mac OS X
969 * sql/package.lisp: Add new (pre-release) clisp MOP package
971 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
972 * Version 3.0.4 Release
973 * multiple: Remove superfluous quotes in UFFI def-type
974 and def-foreign-type forms.
976 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
977 * Version 3.0.3 Release
978 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
979 from Tagore Smith to call force-output after sending authentication
980 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
981 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
982 to a database of that type so that functions that indicate capabilities of
983 database are available.
985 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
986 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
988 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
989 * Version 3.0.2 Release
990 * TODO: Add note about ODBC on Windows
991 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
993 * db-odbc/odbc-ff-interface.lisp: Change the return type
994 of SQLSetEnvAttr to :short
996 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
997 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
998 slot of the employee View Class definition [reported by Franz Deuzer].
1000 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1001 * Version 3.0.1 Release
1002 * tests/test-init.lisp: Add second join class to employee-address
1003 to test a class with two join slots.
1004 * sql/oodml.lisp: Fix find-all function for a class with multiple
1006 * TODO: Remove need to test/fix multiple join classes
1008 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1009 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
1010 from Jon Buffington for file locations on Darwin.
1012 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1013 * sql/db-interface.lisp: Improve messages when functions
1014 are passed a database object, but the method is not specialized
1015 for that database type.
1016 * sql/metaclasses.lisp: Fix inline declaration (reported by
1019 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1020 * TODO: Add bug report about SQL generation with a table
1021 containing two join slots.
1022 * sql/oodml.lisp: Add optional size to VARCHAR type
1024 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1025 * Version 3.0.0 Release
1026 * sql/expressions.lisp: Change declaration that
1027 caused error on openmcl
1028 * db-aodbc/aodbc-sql.lisp: Fix storage location
1029 of odbc connection. Specialize database-query since
1030 dbi's :types keyword is different than generic-odbc's
1031 :result-types keyword
1032 * sql/db-interface.lisp: Add warnings for methods
1033 not specialized by a db backends
1034 * tests/test-fddl.lisp: Fix case of symbols to support
1035 case-sensitive Allegro
1036 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
1037 * tests/test-init.lisp: Note that odbc driver for postgresql
1038 doesn't properly handle table ownership
1039 * LATEST-TEST-RESULTS: update with version 3.0.0
1041 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1042 * sql/expressions.lisp: conditionalise escaping of backslash in
1043 generated SQL strings on backend.
1044 * tests/test-fdml.lisp: test for escaping of backslash.
1045 * sql/oodml.lisp: minor tidying in FIND-ALL.
1047 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1048 * NEWS: Initial 3.0 announcement draft
1049 * README: Expand acknowledgements of incorporated projects
1050 * CONTRIBUTORS: Further document Marcus Pearce contributions
1052 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1053 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
1054 to print floats with the exponent markers removed.
1055 * tests/test-oodml.lisp: add tests for updating records with floats.
1057 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1058 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
1059 CommonSQL compatibility.
1060 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
1061 this column constraint syntax is not supported.
1062 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
1063 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
1066 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1067 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
1068 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
1069 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
1071 * doc/ref-oodml.xml: add examples for OODML.
1072 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
1074 * sql/metaclasses.lisp: update docstrings.
1075 * tests/test-init.lisp: change :db-constraints for emplid to
1076 (:not-null :unique) as a temporary test for multiple column constraints
1078 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
1079 return type of (SETF SLOT-VALUE-USING-CLASS).
1080 * TODO, doc/TODO: remove items done.
1083 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1084 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
1086 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
1088 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1089 * sql/expressions.lisp: reactivate caching of generated SQL strings.
1090 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
1091 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
1092 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
1093 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
1094 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
1095 sql/expressions.lisp.
1096 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
1097 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
1098 * sql/generics.lisp: add docstrings.
1100 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1102 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
1103 code in favor of fixing UFFI with James Bielman's patch
1105 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1107 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
1110 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1111 * README, INSTALL: update URLs. Minor updates to descriptions.
1112 * tests/README: remove stuff about editing contexts.
1114 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1115 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
1116 *default-string-length*
1118 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1119 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
1121 * tests/test-fddl.lisp: add tests for column and table constraints
1122 in CREATE-TABLE. Add test for OWNER keyword parameter to
1123 LIST-TABLES (assuming same underlying machinery in other FDDL
1125 * tests/test-init.lisp: restrict above test to postgresql and oracle.
1127 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1128 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
1131 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1132 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
1134 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1136 * doc/*.xml: documentation additionals and fixes so
1137 that docbook passes xmllint.
1139 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1141 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
1142 to change escaping of single quotes. Mild optimizations
1143 for escaped string output.
1144 * doc/ref-ooddl.lisp: documentation additions
1145 * doc/ref-oodml.lisp: Add purpose to functions
1146 * TODO: Add need to test single quote escaping
1148 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1149 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
1150 * sql/ooddl.lisp: Added SMALLINT type
1151 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
1152 * db-mysql/mysql-objects.lisp: Added SMALLINT type
1153 * sql/package.lisp: Export SMALLINT
1154 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
1157 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1158 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
1159 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
1160 View Class slot option.
1161 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
1162 slot option accepting a list of constraints [reported by Travis Cross].
1163 * doc/ref-fddl.xml: add some examples of specifying column and
1164 table constraints to the documentation for CREATE-TABLE.
1165 * TODO: add note about adding tests for table/column constraints. Add
1166 optimisation note about using cached attribute types in insert/update
1169 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1170 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
1171 features and so on the documentation for each backend.
1172 * doc/TODO: remove items done.
1173 * doc/ref-transaction.xml: add note in introduction about
1174 autocommit mode as a difference from CommonSQL.
1175 * doc/ref-syntax.xml: add notes about SQL syntax state functions
1176 being macros in CLSQL. Add note about SQL operators which are
1179 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1180 * Version 2.11.12 released
1181 * doc/ref-recording.xml: document SQL I/O recording.
1182 * doc/ref-prepared.xml: new file for documenting prepared statements.
1183 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
1185 * doc/ref-conditions.xml: complete documentation of condition system.
1186 * doc/global-index.xml: add symbols from condition system and remove
1187 those from LOB and prepared statement APIs.
1188 * doc/ref-fdml.xml: complete documentation of FDML.
1189 * doc/glossary.xml: add View Class.
1190 * doc/TODO: remove items done.
1191 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
1192 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
1193 additional slot accessors for condition classes.
1195 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1196 * doc/ref-ooddl.lisp: Add documentation
1197 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
1198 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
1199 * doc/oodml.lisp: Rename references to new name of
1200 *DEFAULT-STRING-LENGTH*
1202 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1203 * doc/ref-transaction.xml: document transaction handling.
1204 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
1205 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
1206 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
1207 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
1210 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1211 * doc/ref-fdml.xml: document the FDML.
1212 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
1213 * sql/ooddl.lisp: moved *default-varchar-length* to here from
1214 oodml.lisp and renamed to *default-string-length*
1216 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1217 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
1218 to allow specifying transactionless table creation
1219 * doc/ref-oodml.lisp: Add new keyword to signature of
1222 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1224 * sql/expressions.lisp: when removing duplicate table identifiers
1225 in the FROM clause of a query, check both table name and alias
1227 * sql/fdml.lisp: remove DESCRIBE-TABLE.
1228 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
1229 DATABASE-DESCRIBE-TABLE.
1230 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
1231 and LIST-TABLE-INDEXES.
1232 * sql/generic-postgresql.lisp: add reader conditional #+nil for
1233 DATABASE-DESCRIBE-TABLE and comment about its uses for
1234 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
1235 returning type info for all attributes.
1236 Fix DATABASE-SEQUENCE-LAST.
1237 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
1238 LIST-INDEXES with additional keyword parameter :ON.
1239 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
1240 with LIST-INDEXES (with :ON parameter).
1241 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
1242 * doc/ref-connect.xml: minor tidying.
1243 * doc/ref-fddl.xml: document the FDDL.
1244 * doc/TODO: removed items done. Moved note about transaction handling
1246 * TODO: move note about transaction handling to doc/TODO. Added
1247 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
1249 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1251 * sql/syntax.lisp: updated docstrings.
1252 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
1254 * sql/database.lisp: add docstrings for CREATE-DATABASE,
1255 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
1256 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
1257 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
1258 * doc/ref-connect.xml: document connection/initialisation.
1259 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
1260 * doc/TODO: remove items done.
1261 * Makefile: add db-oracle to to SUBDIRS.
1263 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1264 * sql/oodml.lisp: Add new serialization functions:
1265 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1266 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1267 from a table that has more than one primary index.
1268 * sql/conditions.lisp: Fix printing of closed-database error
1270 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1272 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1273 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1275 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1276 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
1277 of SQL-EXPRESSION from CLSQL-SYS.
1278 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
1279 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
1280 * doc/Makefile: added Mandrake linux.
1281 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
1282 * doc/appendix.xml: fixed little typo (adsf).
1283 * doc/glossary.xml: removed closed-database and note about
1284 sql-expression, added some entries.
1285 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
1287 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1289 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1290 * multiple: Add generalized-boolean type as requested by
1292 * TODO: Added need for test of generalized-boolean
1294 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1295 * Version 2.11.7 released
1296 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1297 for loading with clc-register-user-package. Remove personal
1298 directory from path lisp.
1299 * db-mysql/mysql-loader.lisp: Similar changes
1301 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1302 * Version 2.11.6 released
1303 * sql/oodml.lisp: Commit patch from Edi Weitz
1304 to fix symbol writing/reading
1305 * TODO: Add need for symbol slot test
1307 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1308 * sql/package.lisp: remove duplicate export of
1309 *CACHE-TABLE-QUERIES-DEFAULT*.
1310 * doc/ref-*.xml, doc/global-index.xml: new files documenting
1311 the CommonSQL compatible api.
1312 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
1313 reflect changes in return values of WITH-TRANSACTION.
1315 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1316 * tests/README: Fix filename [reported by Bill Clementson]
1317 * sql/transactions.lisp: Apply return value patch from
1318 Edi Weitz for WITH-TRANSACTION
1319 * tests/README: Remove ptester package requirement (as noted
1322 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1323 * Version 2.11.5 released
1324 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1325 Select connection-spec based on connection type. Bugs reported by
1327 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1328 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1329 name on Windows, add \bin\ directory to search path
1331 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1332 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
1334 * sql/operations.lisp: substr now generates SUBSTR for use on
1335 Oracle; added a new operator SUBSTRING for use elsewhere. minus
1336 now generates MINUS for use on Oracle. Nvl signals an error if
1337 not called with exactly 2 arguments. Add concat function for use
1338 instead of the || operator on MySQL and Oracle.
1339 * sql/syntax.lisp: changed internal symbol for the || operator to
1341 * sql/expressions.lisp: removed redundant and unused functions
1342 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1343 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
1344 * sql/generics.lisp: removed generic function for
1345 DATABASE-CONSTRAINT-DESCRIPTION (see above).
1346 * tests/test-syntax.lisp: modified/added tests according to changes
1347 in sql/operations.lisp.
1348 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
1350 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
1351 and SQL-USERENV to the shared exports list. Removed
1352 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
1353 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1354 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1355 RECORD-SQL-RESULT from shared exports list.
1357 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1358 * db-postgresql/postgresl-sql.lisp: Avoid computing
1359 result-types lisp when nil result-types. Return only
1360 one value when field-types nil.
1361 * db-mysql/mysql-sql.lisp: Simple queries now
1362 working with prepared statements.
1364 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1365 * Version 2.11.4: MySQL 4.1 now passes all tests
1366 * sql/package.lisp: Add API for prepared statments.
1367 * sql/fdml.lisp: Change implicit flatp processing
1368 for string map-query for greater CommonSQL conformance.
1369 Add high-high API for prepared statements.
1370 * tests/test-basic.lisp: Add test for map-query and
1372 * sql/transactions.lisp: Change name/semantics of
1373 autocommit to set-autocommit.
1374 * sql/generic-postgresql.lisp: Add support for
1375 prepared statements.
1376 * tests/test-internal.lisp: New file
1377 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1378 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1379 Controller invocation.
1380 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1381 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1382 function contains a subselect.
1384 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1386 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1387 type (setf slot-value-using-class)
1388 * TODO: add not that need a test case for the above fix
1389 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1391 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1392 introduced in Oracle8. Leave older code selectable by a reader macro
1393 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1394 uses OCILogon and does not the more complex session management.
1396 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1397 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1398 * test/test-init.lisp: Add universal-time slot to person.
1399 * test/test-fddl.lisp: Add tests of universal-time slot
1400 * test/test-ooddl.lisp: Test universal-time slot in an object
1401 * TODO: Remove need for universal-time test
1402 * debian/rules, debian/control: Add cl-sql-oracle binary package
1403 * doc/appendix.xml: Add Oracle backend information
1404 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1405 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1406 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1407 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1408 for map-query to reflect changed in arguments to be CommonSQL compatible.
1409 Updated old clsql conditions to new CommonSQL compatible conditions.
1411 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1412 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1413 type. Added *default-varchar-length* rather than previous hard-coded
1414 varchar length. Remove 'simple-string and 'simple-base-string since they
1415 are subtypes of 'string.
1416 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1417 local hard-coded value.
1418 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1419 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1420 CHAR to lisp type character.
1421 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1422 * sql/operations.lisp: Add userenv
1423 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1425 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1426 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1427 * test/test-init.lisp: Add large table with bigint slot
1429 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1430 * Version 2.11.1 released: Much simpler Oracle client library loading.
1431 Now uses ORACLE_HOME environmental variable as well as tests default
1432 path for Oracle Instant Client.
1434 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1435 * Version 2.11.0 released: Full Oracle support. All tests pass
1436 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1437 * tests/test-init.lisp: capitalize odbc backend name in banner
1438 * CONTRIBUTORS: Add note about Marcus' excellent work
1439 * sql/oodml.lisp: Removed old stub function
1440 * clsql.asd: Use module names in current package rather than keyword package
1441 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1442 in setting sequence position. Make autocommits more efficient.
1443 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
1444 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1445 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1446 and read-sql-value for NUMBER and CHAR.
1447 * sql/base-classes.lisp: Add autocommit slot
1448 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1449 * doc/intro.xml: Add Oracle
1451 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
1452 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
1453 CLSQL-SIMPLE-WARNING with SQL-WARNING.
1454 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
1456 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
1457 * clsql.asd: reworked module structure in package definition and
1458 file names to better reflect component functionality.
1459 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
1460 exports list. Removed duplicate and obsolete exports. Exported
1461 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
1462 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
1463 according to whether they are specified by CommonSQL or CLSQL
1465 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
1467 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
1468 here from basic-sql.lisp.
1469 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
1470 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
1471 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1473 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
1474 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
1476 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1477 * Version 2.10.22 released
1478 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
1479 has reversed class slots, change the default for ordered-class-slots so that slots
1480 are now in the same order an in the def-view-class.
1481 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
1482 * test/test-fddl.lisp: Add two tests for mixed case names
1483 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
1484 for computed fields, this will require some adjustment to the test suite which
1485 in many cases expects integers.
1486 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
1488 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1489 * Version 2.10.21 released
1490 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
1491 db-odbc, and db-aodbc.
1492 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
1493 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
1494 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
1495 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
1496 sql/generic-odbc.lisp
1497 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
1498 Move common code to sql/generic-postgresql.lisp
1499 * sql/classes.lisp: honor case of string tables when outputting queries
1500 * sql/objects.lisp: Add database type to default database-get-type-specifier method
1501 * sql/sql.lisp: Add database type to default database-abort-transaction method
1502 * db-mysql/mysql-objects.lisp: New file
1503 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
1504 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
1506 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
1507 default db case for FDML/SELECT/25
1509 22 May 2004 Kevin Rosenberg
1510 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
1511 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
1512 and string identifiers with non-default case
1513 * sql/table.lisp: Don't convert string table name to a symbol.
1514 * sql/classes.lisp: Honor case of string identifiers
1515 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
1517 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
1518 of owner phrases. Obtain server and client versions.
1519 * db-oracle/oracle-objects.lisp: Fix type specifiers
1520 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
1521 * tests/test-init.lisp: Properly get username from Oracle connection-spec
1523 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1524 * sql/generics.lisp: reworked docstrings. Remove generics for
1525 ADD-TO-RELATION and REMOVE-FROM-RELATION.
1526 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
1527 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1528 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
1529 for CommonSQL compatibility. Remove ADD-TO-RELATION and
1530 REMOVE-FROM-RELATION.
1531 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
1532 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1533 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
1534 * sql/conditions.lisp: add documentation for conditions. Add
1535 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
1537 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1538 * sql/basic-sql.lisp: reworked docstrings.
1539 * sql/transactions.lisp: reworked docstrings.
1540 * sql/sql.lisp: reworked docstrings.
1541 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
1542 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
1543 * sql/database.lisp: reworked docstrings.
1544 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
1545 and FDML extensions and database extensions.
1547 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1548 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
1549 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
1551 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
1552 Oracle versions with the PURGE option required for drop table. This needs
1553 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
1555 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1556 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
1557 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
1558 * sql/table.lisp: reworked docstrings.
1559 * sql/objects.lisp: moved *default-update-objects-max-len* here from
1561 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
1562 DROP-VIEW and DROP-INDEX and the use of the :transactions and
1563 :constraints keyword args to CREATE-TABLE.
1564 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
1565 CommonSQL compatible with respect to column constraints.
1567 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1568 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
1569 Requires UFFI 1.5.0 or higher
1571 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1573 * sql/conditions.lisp: Fix cerror
1575 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1576 * Version 2.10.18 released: New condition hierarchy to be compatible
1577 with CommonSQL -- not backward compatible with previous CLSQL.
1578 * sql/db-interface.lisp: Add more default methods
1579 * sql/objects.lisp: Add explicit table name to order-by parameters
1580 in find-all when only one table to avoid selecting a duplicate row.
1581 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
1582 as previous logic was adding two fields (foo asc) to SELECT query.
1583 Make :result-types :auto be the default for object selections.
1584 Properly handle caching key when using multiple order-by with asc/desc
1586 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
1588 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1589 * sql/recording.lisp: reworked docstrings.
1590 * sql/syntax.lisp: reworked docstrings.
1591 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
1592 SQL syntax state functions being macros.
1594 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1595 * sql/package.lisp: Export initialize-database-type and
1596 *initialize-database-types* from CLSQL package.
1597 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
1598 remove old CLSQL conditions.
1599 * sql/loop-extensions.lisp: Make errors of type sql-user-error
1600 * */*.lisp: Convert to from old to new conditions
1602 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1603 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
1604 To handle this difference, will need to add a new database-drop-table
1606 * db-oracle/oracle-sql.lisp: Move server-version and
1607 major-version-number to database object to allow multiple connections
1608 to Oracle servers of different versions.
1610 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1611 * TODO: moved notes about backends to doc/TODO.
1612 * doc/TODO: added notes about backends and select extensions.
1613 * sql/base-classes.lisp: remove obsolete schema slot in database
1616 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1617 * db-oracle/oracle-api: Add OCIServerVersion
1618 * db-oracle/oracle-sql: Query and store server version on connect
1619 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
1620 function to handle OCI's lack of bigint support
1621 * test/test-basic.lisp: Separate bigint testing
1622 * test/test-utils.lisp: Add oracle to specs and list of backends
1623 * doc/TODO: New file
1624 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
1625 run-time instantiation of variables in reader macros.
1626 * TODO: Remove item already complete. Add note about
1629 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1630 * sql/syntax.lisp: added condition to the reader macro to treat [*]
1631 as a column identifier (rather than an operation) for CommonSQL
1633 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
1634 keword args to SELECT, [*] as column identifier, new MAP-QUERY
1635 behaviour and the ANY and ALL operators in subqueries.
1636 * tests/test-init.lisp: add set-operation and subquery tests to
1637 appropriate skip lists.
1638 * sql/objects.lisp: remove redundant and non CommonSQL compatible
1639 ORDER-BY-DESCENDING keyword argument for SELECT.
1640 * sql/classes.lisp: remove redundant and non CommonSQL compatible
1641 ORDER-BY-DESCENDING keyword argument for SELECT.
1642 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
1643 with object queries.
1645 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1646 * sql/db-interface.lisp: Add new db-type-has-union?
1647 since Mysql 3.23 does not support unions.
1648 * sql/test-init.lisp: Don't try union tests on database
1649 backends which do not support it.
1650 * db-oracle/*.lisp: initial port to UFFI
1651 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
1652 implement REFRESH for SELECT.
1653 * tests/test-oodml.lisp: Add tests for deferred retrieval,
1654 caching, refresh, and update-object-joins
1655 * tests/test-init.lisp: Add deferred-employee-address class
1657 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1658 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
1659 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
1660 ALL and EXISTS generate function expressions so they output the
1662 * sql/classes.lisp: SELECT now generates appropriate SQL when
1663 passed the SET-OPERATION and ALL keyword arguments.
1664 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
1665 accepts ordering constraints as pairs of the form (column direction)
1666 where direction may be :ASC or :DESC.
1667 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
1668 Correct tests for ANY, SOME, ALL and EXISTS.
1669 * tests/test-fdml.lisp: added test for COALESCE.
1670 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
1671 using funcall unless QUERY-EXPRESSION returns one column and its
1672 FLATP slot is not nil in which case apply is used.
1673 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
1675 * TODO: remove items done.
1676 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
1677 DATABASE-LIST-ATTRIBUTES.
1678 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
1679 results in DATABASE-LIST-ATTRIBUTES.
1681 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1682 * sql/classes.lisp: SELECT now accepts table identifiers as strings
1683 for CommonSQL compliance. Add support for qualified sql identifiers
1684 with aliased table names.
1685 * tests/test-fdml.lisp: added tests for table identifiers as strings
1686 in SELECT and for aliased definitions.
1687 * tests/test-syntax.lisp: added tests for alias definitions.
1689 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1690 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
1691 field-names set to nil.
1692 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
1693 with null attribute values.
1694 * sql/operations.lisp: modify SQL concatenation operator to accept
1695 unescaped || symbol.
1696 * sql/syntax.lisp: modify sql reader macro function to accept
1697 unescaped sql concatenation operator.
1698 * tests/test-fdml.lisp: unescape sql concatenation operator.
1699 * tests/test-syntax.lisp: unescape sql concatenation operator.
1700 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
1701 Note to add test for universal-time. Note about difference from
1702 CommonSQL in transaction handling.
1704 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1705 * tests/test-init.lisp: Add deferred-employee-address
1707 * tests/test-oodml.lisp: Add deferred retrieval testgs
1709 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1711 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
1712 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
1713 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
1714 * *: Fix minor style warnings
1715 * clsql-classic: Remove system and subdirectory
1716 * clsql-base: Remove system and subdirectory and
1717 fold into clsql system
1718 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
1719 as supported platform.
1721 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1722 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
1723 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
1724 Allegro 7.0beta AMD64
1725 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
1726 of ODBC longs since this type can vary on 64-bit platforms depending
1727 upon the compilation options of unixODBC.
1728 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
1729 structures found by testing with AllegroCL 7.0b AMD64.
1730 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
1731 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
1732 Initial caching support for SELECT
1733 * tests/test-oodml.lisp: Avoid using cache when testing select.
1734 * sql/kmr-mop.lisp: Explicitly check slot order and
1735 store as a cl:*feature*
1736 * sql/recording.lisp: Remove additional types to
1737 increase CommonSQL conformance.
1738 * tests/test-init.lisp: Change a :column attribute
1739 to test symbols as value
1740 * sql/relations.lisp: Remove functions since they don't support
1741 many to many relationships.
1742 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
1743 of add-to-relations function and replace with explicit field settings.
1744 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
1746 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1748 * LATEST-TEST-RESULTS: results with current version
1749 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
1750 since cmu19 has opposite order of class slots.
1751 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
1752 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
1754 * tests/test-init.lisp: Check test-database-underlying-type for
1757 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1758 * sql/operations.lisp: complete remaining operations for the sql
1759 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
1760 UNION, INTERSECT, BETWEEN.
1761 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
1762 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
1763 * tests/test-syntax.lisp: add tests for new operations.
1764 * tests/test-fdml.lisp: add tests for queries based on new operations.
1765 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
1766 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
1767 * TODO: removed entries done.
1769 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1770 * tests/benchmarks.lisp: Add immediate vs. deferred
1773 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1774 * Version 2.10.13: Now works on openmcl 0.14.2
1775 * sql/objects.lisp: Add :retrieval :immediate for
1777 * tests/test-init.lisp: Add non-index fields for testing
1778 join class employee-addresss
1779 * test/test-oodml.lisp: Add tests for retrieval immediate
1780 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
1781 values which are now listifed by openmcl 14.2.
1782 * sql/objects.lisp: more framework for supporing immediate retrieval
1784 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1785 * docs/intro.xml: Upload location of a README file
1786 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
1787 changing the type-specifier. Use a lisp type of (OR NULL FOO)
1788 for a specified-type of FOO unless :db-constraints :not-null.
1789 No need to specialize finalize-inheritance for openmcl.
1790 * tests/test-*.lisp: Rename fields so that joins occur on
1791 fields with different names. This ensures that join code is
1792 selecting the proper name.
1793 * test/test-init.lisp: Add :base-table for employee-address
1794 view class for testing.
1795 * sql/objects.lisp: Use view-table rather than name of table
1796 in a number of places to fix errors noted with using :base-table.
1798 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1799 * sql/objects.lisp: replace *update-records-on-make-instance* with
1800 *db-auto-sync* which also controls both automatic creation of
1801 new records on creation of new instance and updating of record
1802 fields on setting of instance slots (as suggested by Edi Weitz).
1803 * tests/test-init.lisp: replace *update-records-on-make-instance*
1804 with *db-auto-sync*.
1805 * sql/package.lisp: replace *update-records-on-make-instance*
1806 with *db-auto-sync*.
1807 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
1808 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
1809 and *default-database* in FIND-ALL.
1810 * sql/package.lisp: import time functions from CLSQL-BASE.
1811 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1812 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1813 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1814 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
1817 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1818 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
1819 now return a sql-object-query type rather than directly performing a query.
1820 This improves CommonSQL conformance.
1821 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
1822 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
1823 depend on sql-object-query-type.
1824 * sql/loop-extensions.lisp: Move from base package
1825 * classic/package.lisp: remove references to map-query and do-query
1827 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1828 * TODO: New section on optimizations, especially optimizing JOINs.
1829 * sql/objects.lisp: Have :target-slot return of list of lists rather
1830 than a list of cons pairs to be conformant with CommonSQL.
1831 Make :target-slot much more efficient by using a SQL inner join
1832 statement and just requiring one SQL query. Add :retrieval :deferrred
1833 to target-slot joins. Add placeholder for update-objects-join.
1834 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
1835 and process them for query output-sql.
1837 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1839 * base/basic-sql.lisp: Avoid multiple evaluation
1840 of query-expression in DO-QUERY
1841 * sql/objects.lisp: Make SELECT a normal function.
1842 SELECT now accepts type-modified database identifiers, such as
1843 [foo :string] which means that the values in column foo are returned
1844 as Lisp strings. Add new *update-records-on-make-instance* special
1845 variable controlling automatic creation of new instances. Add missing
1846 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
1847 * sql/packages.lisp: Export *update-records-on-make-instance*
1848 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
1850 * test/test-fdml.lisp: Add tests for type-modified
1851 database identifiers.
1852 * test/test-init.lisp: Stop using add-relation since implementing
1853 many-to-many joins. Use *update-records-on-make-instance*
1854 to automatically store records on instance creation. Add many-to-many
1855 employee-address view-class.
1857 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1859 * base/loop.lisp: Add object iteration. Use :result-type
1860 :auto for result-set. Remove
1861 duplicate (and non-correct) code for non-list variables by
1862 simply making an atom variable into a list.
1863 * sql/package.lisp: Remove unnecessary clsql-sys package
1864 and replace it with clsql.
1865 * sql/metaclasses.lisp: Properly store specified-type from
1866 direct-slot-definition and then store translated type in
1867 effective-slot-definition
1868 * sql/classes.lisp: Don't output type in sql-output
1869 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
1870 [foo :integer] as fields in SELECT.
1871 * sql/query.lisp: Set default for :result-types to :auto in
1873 * sql/objects.lisp: Use specified-type when invocating
1874 database-get-type-specifier. def-view-class macro now returns
1876 * base/basic-sql.lisp: Make :AUTO the default value for
1877 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
1878 * sql/objects.lisp: Add bigint type
1879 * test/tests-basic.lisp: Add tests for :result-types for
1880 MAP-QUERY and DO-QUERY
1881 * test/test-fdml.lisp: Add test for result-types in LOOP
1882 and also using single symbol rather than a list for variables.
1883 Add test that default :result-types is auto for FDML QUERY.
1884 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
1885 of SQL-IDENT-ATTRIBUTE.
1886 * test/test-oodml.lisp: Enable OO loop iteration test,
1887 modify it so it doesn't depend on boolean where.
1889 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1891 * sql/objects.lisp: added derived type specifier for universal time.
1892 * sql/package.lisp: added #:universal-time to clsql-sys exports.
1893 * tests/test-oodml.lisp: added test for translation of boolean slots
1894 in SELECT with object queries.
1896 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1897 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
1898 for odbc/postgresql backend.
1899 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
1900 it can handle NIL values from the ODBC driver
1901 * tests/benchmarks.lisp: New file with initial
1903 * sql/relations.lisp: fix to add subclassing support,
1904 minor optimizations [Edi Weitz]
1906 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1908 * base/conditions.lisp: Add *backend-warning-behavior*
1910 * db-postgresql-socket/postgresql-socket-sql.lisp:
1911 Honor value of *backend-warning-behavior*
1912 * tests/test-fdml.lisp: Remove test of raw boolean value
1913 since different backends handle this differently. Add
1914 test for :column attribute.
1915 * tests/test-oodml.lisp: Add tests for boolean slot value
1916 and for :void-value attribute
1917 * tests/test-init.lisp: Use *backend-warning-behavior*
1918 to suppress warnings from postgresql about implicitly
1919 creating primary key in tables. Add new address table.
1921 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1923 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
1924 result-types is :auto
1925 * sql/objects.lisp: Properly handled writing/reading Boolean
1926 values from SQL database when retrieving objects.
1927 * test/test-fdml.lisp: Add another test for boolean results
1928 * test/utils.lisp: Fix incorrect declaration
1930 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1932 * sql/generics.lisp: add generic function for SELECT.
1933 * sql/objects.lisp: make SELECT a method specialisation.
1934 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
1935 referred to are View Classes.
1936 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
1937 query-expression arg evaluates to a list, then we have an object
1939 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
1941 * TODO: remove items done and add a todo for SELECT.
1942 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
1944 * sql/sql.lisp: add :field-names arg to QUERY.
1945 * tests/test-fdml.lisp: minor rework to use :field-names arg to
1948 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1949 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
1950 or more View Classes.
1951 * sql/objects.lisp: make the :flatp argument to SELECT work with
1953 * sql/objects.lisp: make SELECT accept a :result-types argument
1954 (defaults to :auto) which is passed on to QUERY.
1955 * sql/objects.lisp: SELECT returns field-names as a second value.
1956 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
1957 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
1958 to SELECT and take only first value as appropriate.
1959 * tests/test-fdml.lisp: add two new tests for query result coercion
1960 and the field-names returned as a second value from SELECT.
1961 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
1963 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1964 * Version 2.10.6-pre1
1965 * sql/metaclasses.lisp: Add void-value slot
1966 * doc/csql.xml: Update def-view-class documentation
1967 * test/test-init.lisp: Change old :db-type to :db-kind.
1968 Remove old :nulls-ok attributes.
1969 * sql/objects.lisp: Add new universal-time and bigint
1970 types. Optimize reading of integers using parse-integer
1971 rather than read-from-string.
1972 * */*.lisp: Merge clsql-base-sys and clsql-base packages
1973 into clsql-base package
1974 * classic/sql.lisp: Move large object support into base, leaving
1975 classic without any functionality that is provided in the clsql
1977 * classic/package.lisp: Rename clsql-classic-sys package to
1978 its former nickname of clsql-classic
1980 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1981 * Version 2.10.5: SQLite backend now passes all result-types tests
1982 * clsql-sqlite.asd: Depend on clsql-uffi system
1983 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
1984 for efficiency and code reuse.
1985 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
1986 for better cross-implementation compatibility.
1988 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1990 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
1992 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
1993 bug on SBCL in result-field-names function as reported by Marcus Pearce
1994 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
1995 manifest in SBCL testing
1997 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1999 * sql/database.lisp: Conform more to CommonSQL output
2000 for STATUS command [Marcus Pearce]
2001 * sql/sqlite-sql.lisp: Rework to use result-types
2002 * sql/sqlite-api-clisp.lisp: Add compatibility layer
2003 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
2004 be cleaned up of most clisp reader conditionals
2005 * sql/test-init.lisp: Now run field type tests on sqlite
2008 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2010 * base/basic-sql.lisp: Set default value of :result-types
2011 to :auto for more CommonSQL conformance.
2012 * test/test-fdml.lisp: Add tests for numeric value of fields
2015 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2016 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
2017 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
2018 Return field names as second value for QUERY. This can be overridden
2019 for efficiency with the new keyword :FIELD-NAMES set to NIL
2020 in the QUERY invocation.
2021 * test/test-fdml.lisp: Add tests for new field-name feature
2022 * sql/metaclass.lisp: Remove old Lispworks cruft
2023 and replace it with invocation of new code in kmr-mop.lisp
2024 which actually works with Lispworks 4.2
2025 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
2027 * base/db-interface.lisp: Document the multiple values
2028 returned by DATABASE-ATTRIBUTE-TYPE so matches the
2029 undocumented CommonSQL behavior.
2030 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
2031 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
2032 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
2033 Implement CACHE-TABLE-QUERIES.
2034 * db-odbc/odbc-sql.lisp: Fix attribute-type function
2035 * test/test-fddl.lisp: Add tests for attribute type
2036 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
2038 * base/classes.lisp: Add attribute-cache slot to database clas
2039 * base/initialize.lisp: initialize-database-type now automatically
2040 loads database-type backend as needed.
2041 * base/test-init.lisp: Utilize new initialize-database-type functionality.
2042 * TODO: remove items done
2044 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2046 * sql/objects.lisp: remove create/drop-sequence-from-class.
2047 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
2048 * sql/objects.lisp: improved CommonSQL compatibility for
2049 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
2050 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
2051 * sql/generics.lisp: move generics from objects.lisp to here.
2053 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2054 * Version 2.9.6-pre1
2055 * db-mysql/mysql-client-info.lisp: Add client version 4.1
2057 * sql/sql.lisp: Make *default-database* the default for
2060 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2062 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
2064 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
2065 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
2066 on a metaclass specialized from standard-db-class.
2069 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2070 * Version 2.9.4: Multiple changes to support Allegro's "modern"
2071 lisp which uses a lowercase reader and has case-sensitive symbols
2072 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
2073 exposed by case-sensitive mlisp.
2075 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2076 * Version 2.9.3: All tests now pass on all platforms!
2077 * LATEST-TEST-RESULTS: New file with summary of test results
2078 * sql/generics.lisp: New file for generic function definitions.
2079 * test/test-init.lisp: Display names of skipped tests.
2080 Use unwind-protect to ensure disconnect
2081 * sql/objects.lisp: Change database-type to database-underlying-type
2082 so that actual database engine is properly identified
2083 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
2084 return an ISO timestring for compatibility with other drivers.
2085 Workaround bug in MyODBC for LIST-TABLE-INDEXES
2086 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
2087 returns floating-point values for floor and truncate operations
2088 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
2089 * tests/test-basic.lisp: Port to regression tester
2090 * test/test-init.lisp: Output to *report-stream*
2091 * docs/appendix.xml: Document ODBC and SQLite backends.
2092 * sql/classes.lisp: Make output-sql require a database parameter.
2093 This allows SQL generation to have the proper case to support
2094 the differences in case handling between CommonSQL API,
2095 Postgresql, MySQL, Oracle.
2097 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2098 * Version 2.9.2: Improvments in database capability introspection
2099 and querying. Support transactions in MySQL where available.
2100 All tests now pass on MySQL and SQLite in addition to postgresql
2101 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
2102 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
2103 DATABASE-LIST-SEQUENCES.
2104 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
2105 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
2106 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
2107 * tests/*.lisp: Check database capabilities and remove tests which
2108 the database backend does not support
2109 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
2110 controls whether InnoDB tables will be created when supported on
2111 the underlying MySQL server.
2113 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2114 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
2115 supported by all database backends (except AODBC since
2116 AODBC doesn't support index querying)
2117 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
2118 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
2119 to support index queries
2120 * db-aodbc/aodbc-sql.lisp: Filter driver manager
2121 "information_schema" tables from LIST-TABLES
2122 * tests/test-basic.lisp: Remove table after testing
2123 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
2124 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
2125 which gets the underlying type of database -- required
2126 when dealing with ODBC databases and want to query
2127 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
2128 as first database-backend specific feature. Is T on
2129 :mysql, NIL on other backends. Change DROP-TABLE to
2132 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2133 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
2135 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2137 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
2138 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
2140 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2141 * Version 2.8.0: New API function: LIST-DATABASES
2142 * base/utils.lisp: Fix command-output on CMUCL/SBCL
2143 * db-*/*-sql.lisp: Add new database-list function
2144 * base/database.lisp: Add new LIST-DATABASES command
2146 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2148 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
2149 * db-sqlite/sqlite-api-uffi.lisp: Print error string
2152 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2154 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
2157 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2159 * base/objects.lisp, base/classes.lisp: Patch
2160 for db-kind from Eduardo Munoz
2162 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2164 * base/basic-sql.lisp: Fix FLATP in QUERY
2166 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2167 * Version 2.7.3: Implement RECONNECT
2169 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2170 * Version 2.7.2: Fix ODBC on Lispworks Windows
2172 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2173 * Version 2.7.1: Fix for new ODBC backend.
2174 clsql-odbc now works on SBCL, CMUCL, OpenMCL
2175 in addition to AllegroCL and Lispworks.
2177 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2178 * Version 2.7.0: New backend: ODBC. Tests as
2179 well as AODBC backend on Allegro,Lispworks.
2180 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
2181 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
2182 to explicitly set ODBC2 support. Add BIGINT support.
2183 Add result-types support. Added SQLTables.
2184 Fix array type in fetch-all-rows. Make width
2185 changable by database or query.
2186 * base/utils.lisp: Add process functions
2187 * base/package.lisp: Export utils to CLSQL-BASE-SYS
2188 * db-aodbc: Implement sequence functions,
2189 database-list-tables, database-list-attributes
2190 * tests/utils.lisp: Add support for ODBC backend,
2191 rework READ-SPECS to use +all-db-types+
2192 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
2195 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2196 * Version 2.6.13. Requires UFFI version 1.4.9
2197 * db-odbc/*.lisp: Further porting.
2198 Pre-alpha code! But, basic query is now working.
2200 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2202 * base/transactions.lisp: Add quote for macro
2203 expansion of WITH-TRANSACTIONS [Time Howe]
2204 * db-sqlite/sqlite-sql.lisp: Support memory database
2205 in database-probe [Ng Pheng Siong]
2206 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
2207 The DBI layer is not finished.
2209 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2211 * sql/objects.lisp: add :root-class functionality for
2212 list-classes and add duration type support [Marcus Pearce]
2213 * db-odbc: Add mid-level [DBI] layer
2215 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2217 * db-aodbc: Add methods for generic functions, some are
2218 not yet implemented.
2219 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
2222 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2224 * base/package.lisp: Add missing symbols [Marcus Pearce]
2226 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2228 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
2229 * utils/time.lisp: Multiple fixes [Marcus Pearce]
2230 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
2232 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2234 * sql/*.lisp: Remove schema versioning cruft
2236 * Makefile: Add classic subdirectory
2238 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2240 * sql/sql.lisp: Fix TRUNCATE command, bug reported
2242 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
2243 specific and easy for an application to directly support.
2244 Idea from Marcus Pearce.
2245 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
2246 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
2247 Keep low-level interface for future optimization
2248 supporting LIST-ATTRIBUTE-TYPES command.
2249 * Makefile: Add to db-sqlite and test directories.
2250 Include them in top-level Makefile
2252 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2254 * sql/relations.lisp: Add missing file
2255 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
2256 * test/test-time.lips: New file [Marcus Pearce]
2258 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2260 * test/test-init.lisp: Properly handle object
2261 creation. Close database after use.
2262 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2263 function so can have methods specialized on
2264 table being a string or an sql-table object.
2265 * base/pool.lisp: Really fix CMUCL locking
2267 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2269 * test/test-init.lisp: Signal correctly
2270 if any errors occurred in any test suite
2271 * base/loop-extensions.lisp: Fix error
2272 introduced for Lispworks
2273 * base/pool.lisp: Fix locking for CMUCL
2274 * base/objects.lisp: Remove schema-version cruft
2276 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2277 * Version 2.6.2: New CLSQL API functions:
2278 DESCRIBE-TABLE AND TRUNCATE-DATABASE
2279 Currently, this are only supported on :postgresql
2280 and :postgresql-socket
2281 * base/database.lisp: automatically load ASDF system
2282 in CONNECT if not already loaded
2283 * base/tests.lisp: disconnect database after testing
2284 * base/*.lisp: Remove CLOSED-DATABASE type in favor
2285 of storing open/closed status in slot of database
2286 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2287 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2288 DATABASE-DESCRIBE-TABLE
2289 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2290 * base/conditions: Remove duplicate condition
2291 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2292 * base/recording.lisp: Add new :QUERY type for recording
2294 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2295 * Version 2.6.1: documentation fixes, merged
2296 classic-tests into tests
2298 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2299 * Version 2.6.0 released: New API functions
2300 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2301 * doc/ref_clsql.xml: Document new functions
2302 * base/database.lisp: New API functions
2303 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2304 * base/utils.lisp: Fix use of position-char.
2305 Add COMMAND-OUTPUT used by backends for running
2306 external programs. Fix parsing of SQL*NET-compatible
2308 * base/loop-extension.lisp: Simplify package use
2309 for Lispworks and Allegro
2310 * db-*/*-sql.lisp: Added DATABASE-CREATE,
2311 DATABASE-DESTORY, PROBE-DATABASE methods
2312 * tests/test-init.lisp, clasic-tests/tests.lisp:
2313 Use destroy-database and create-database to ensure
2314 testing with empty database
2315 * tests/test-connection.lisp: Add tests for
2316 parsing of string connection-specs
2317 * examples/run-tests.sh: New file for running
2318 test suite on all installed CL implementations
2319 * examples/clsql-tutorial.lisp: moved from
2321 * examples/dot.clsql-tests.config: New file
2322 giving an example test configuration
2323 * test/README: Add notes about rtest/ptester
2324 downloads and link to sample test configuration file.
2326 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2327 * Version 2.5.1 released:
2328 * tests/*.lisp: Rework so tests are run
2329 on multiple backends automatically based
2330 on the contents of ~/.clsql-tests.config.
2331 Reuse helper functions from classic-tests.
2332 * base/database.lisp: Support connection-spec
2333 as string for CONNECT
2334 * classic-tests/tests.lisp: Automatically
2335 load database backends as needed.
2337 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2338 * Version 2.5.0 released:
2339 All tests for CLSQL and CLSQL-CLASSIC pass
2341 * base/loop-extension.lisp: Add Lispworks
2342 loop-extension. Improve type specifying on
2345 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2346 * Version 2.4.2 released:
2347 loop extension now supported on Allegro, all
2348 CLSQL-TESTS pass on Allegro.
2349 * sql/metaclasses.lisp: Some optimization
2350 of compute-slots, be selective when
2351 ordered-class-slots needs to be called
2352 instead of class-slots
2353 * TODO: add URL with documentation on
2354 extending Lispworks LOOP form
2356 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2357 * Version 2.4.1 released: CLSQL-TESt suite passes
2358 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2359 Allegro and Lispworks pass all tests except for
2360 FDML/LOOP/1 since the loop extension have not yet
2361 been ported to those implementions.
2362 * sql/metaclasses.lisp: Added new slot to standard-db-class
2363 to hold user-specified type. OpenMCL adjustments to compensate
2364 for its type-predicate function. Since AllegroCL, Lispworks,
2365 and OpenMCL have different slot orders, added compute-slots
2366 and ordered-class-slots functions so their slot order matches
2369 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2370 * Version 2.4.0 released: All tests for clsql-classic now finish
2371 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2372 mysql, postgresql, postgresql-sockets, and sqlite backends.
2373 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2374 * classic-tests/tests.lisp: Fix package name of
2375 number-to-sql-string.
2376 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2377 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2378 now passes tests on all support UFFI platforms.
2379 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2381 * multiple: Finish renaming of :types keyword to :result-types for
2382 greater CommonSQL compatibility, including documentation
2383 * sql/basic-cmds.lisp: Remove obsolete file
2385 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2386 * Version 2.3.3 released
2387 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2388 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2389 * Fix for schema table [Marcus Pearce]
2390 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2391 * Fixes to test suite [Marcus Pearce]
2393 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2394 * db-*/*-sql.lisp: Ensure that expr in
2395 database-query-result-set is a string
2396 * Documentation integration
2398 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2399 * With for Marcus Pearce's excellent work, I've merged
2400 his clsql-usql port into clsql. The original clsql
2401 interface is available in the clsql-classic package.
2403 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2404 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2405 adding further support for providing backend for UncommonSQL
2407 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2408 * Integrate patch from Aurelio Bignoli for SQLite backend
2410 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2411 * Converted documentation to XML format
2412 * Made package installable with asdf-install
2414 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2415 * Add for-each-row macro
2417 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2418 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2420 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2421 * Add support for SBCL, OpenMCL, and SCL
2422 * Add *load-truename* to search path for clsql's
2425 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2426 * Rework use of file types in .asd files
2428 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2429 * Add .asd definition files for ASDF users
2431 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2432 * Restructure directories for Common Lisp Controller v3 compatibility
2434 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2435 * Also change case of logical host in loader files
2436 * Rework handling of logical pathnames
2438 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2439 * Change case of logical host
2441 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2442 * clsql-base.system: Added base package that can be used without
2443 high-level SQL commands. Used for adding support for UncommonSQL.
2444 * *.system: Reworked logical pathnames to be more consistent with
2445 Common Lisp Controller.
2446 * debian/*: Completed initial Debian support
2448 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2450 * sql/transactions.cl:
2451 Added transaction support. Functions/macros added:
2452 with-transaction, commit-transaction, rollback-transaction,
2453 add-transaction-commit-hook, add-transaction-rollback-hook
2455 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2458 * sql/functional.cl:
2459 Added pool support in connect/disconnect and with-database.
2460 Removed with-db-from-pool as with-database can now works with the connections pool
2462 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2467 Completed connection pool.
2468 Added with-db-from-pool macro.
2470 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2472 Added initial support for connection pool
2473 * sql/transactions.cl
2474 Took transaction code from UncommonSQL and integrated
2475 into CLSQL code. See file for disclaimer about why this
2478 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2479 * interfaces/postgresql/postgresql-sql.cl:
2480 Fix keyword typo in database-read-large-object
2481 * interfaces/mysql/mysql-loader.cl
2482 Fix loading on Win32
2483 * test-suite/tester-clsql.cl
2484 Fix type coercion of double-float
2486 Added debian docbook catalog, made it the default
2488 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2489 * interface/postgresql/postgresql-api.cl:
2490 * interface/postgresql/postgresql-sql.cl:
2492 * sql/db-interface.cl:
2493 Added large objects support for postgresql.
2495 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2496 * src/postgresql-socket/postgresql-socket-api.cl:
2497 Fixed find-foreign-function call, eliminated crypt warning
2499 Multiple improvements
2501 Moved functionality from low-level interfaces to this file
2502 via generic functions
2503 * test-suite/tester.cl:
2504 Added test with acl-compat-tester, moved others to old-tests
2507 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2509 Reinstated commented out sections
2510 * interfaces/postgresql/postgresql-loader.cl:
2511 * interfaces/mysql/mysql-loader.cl:
2512 Updated find-forieign-library support.
2513 * interfaces/postgresql-socket/postgresql-socket-package.cl:
2514 Fixed require form for Lispworks (Thanks Marc Battyani!)
2515 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2516 Fixed eval of def-function for crypt library.
2518 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2519 * Added interface to support USQL high-level rouines
2521 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2522 * Separated db-interface and conditions from sql/sql.cl
2523 * Improved foreign library loading testing
2524 * interfaces/postgresql/postgresql-api.cl
2525 Added PQisBusy function
2526 * interfaces/clsql-uffi/clsql-uffi.cl
2527 Fixed sign error for 64-bit processing
2529 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2530 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2531 Fixes to read-double-from-socket. Added 64-bit integer support.
2532 * test-suite/xptest-clsql.cl
2533 Added testint for 64-bit integers
2534 * Additons to installation docs
2536 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2537 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2538 Implemented direct socket reading for field type :double
2539 * Added usage information for :types to documentation
2540 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
2542 * interfaces/clsql-uffi: Created new directory. Split common
2543 interface routines that use UFFI into this package. Required
2544 especially to support direct reading of 64-bit integers into
2545 bignums and bypassing temporary strings.
2546 * test-clsql.cl: Updated to test postgresql-socket's
2547 read-double-from-socket function.
2548 * test-suite/xptest-clsql.cl
2549 Started work on test suite
2551 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2552 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
2553 mysql-fetch-field-direct Got :auto types working
2554 * interfaces/postgresql/postgresql-api.cl
2555 * interfaces/postgresql-socket/postgresql-socket-api.cl
2556 Added pgsql-field-types enum. Got :auto types working.
2558 Renamed :field-types to :types.
2560 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2561 * Added field-types parameter to query, database-query,
2562 database-query-result-set, map-query. Haven't added code
2563 to utilize field types, yet.
2564 * Changed postgresql-socket result set from cons to a structure
2565 * Updated test-clsql.cl to use automated testing with a config
2567 * Changed return types of field accessors from cstring to
2568 (* :unsigned-char). This prepares for being able to use specified
2569 type conversions when taking field data into lisp.
2570 * Added field-type processing for most interfaces. Not done yet.
2572 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2573 * doc/ref.sgml: Updated MAP-QUERY example to use
2574 *read-default-float-format* (John Foderaro)
2575 * Extensive work to foreign library loaders and .system files to
2576 check for successful loading of foreign libraries.
2577 * Modified test-clsql.cl to allow more modularity and
2578 automated testing in future release.
2579 * mysql/mysql-sql.lisp: Added field types
2581 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
2582 * mysql/mysql-sql.lisp:
2583 - Added support for Allegro CL and Lispworks using UFFI layer
2584 - Changed database-connect to use mysql-real-connect. This way,
2585 can avoid using double (unwind-protect)
2586 - Changed database-connect to have MySQL library allocate space
2587 for MYSQL structure. This will make the code more robust in
2588 the event that MySQL library changes the size of the mysql-mysql