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