1 17 Nov 2007 Kevin Rosenberg <kevin@rosenberg.net>
2 * BUGS: Add note about benefit of using configure file to create
3 Makefiles (suggestion from Joe Corneli)
5 22 Oct 2007 Kevin Rosenberg <kevin@rosenberg.net>
7 * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
8 Andrew Golding suggestion for more informative :error-id slot.
10 17 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
12 * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
14 * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
16 14 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
17 * Version 4.0.0: Major version increase to warn of potential
18 backwards incompatibility.
19 * NEWS: Document potentional backward incompatible changes
20 * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
21 after connecting. This may break compatibility with some applications
22 who are using non-ANSI features with MySQL. This change is required to
23 properly support view-classes using a string as their :base-table
24 attribute. This allows users to specify the case of table names.
25 This is feature is even more essential for MySQL itself since MySQL
26 uses case-sensitive table names. Use connection-based database-create
27 and database-destroy rather than trying to invoke command-line mysql
28 utility. Remove automatic upcasing of strings from list-indices.
29 * db-postgresql/postgresql-sql.lisp: Use connection-based
30 database-create and database-destroy rather than trying to invoke
31 command-line utilities.
32 * db-postgresql-socket/postgresql-socket-sql.lisp: Use
33 database-execute-command rather than execute-command for
34 database-{create,destroy}. Connect to postgres database
35 rather than template1 for those database creation/deletion.
36 * sql/metaclasses.lisp: Store the string value of :base-table if a
37 string is provided. Perform sql-escape at time of view-table name
39 * tests/test-init.lisp: Use "ej_join" as a string, rather than a
40 symbol, since "ej_join" is specified as :base-table. Clear the
41 expression output-cache in case the code for generating sql output
43 * test/test-oodml.lisp: whitespace fix
44 * sql/ooddl.lisp: Use quoted string for primary key constraint if
45 table name is specified as a string.
46 * sql/oodml.lisp: Don't convert a string view-table name to database's
48 * sql/expressions.lisp: Properly handle table and attribute identifiers
49 when they are a string. Do not change case of symbols to match database
51 * sql/operations.lisp: Change multiword symbols to upper case.
52 * sql/fddl.lisp: Quote base-table if a string to preserve case
53 for drop-table and create-table.
54 * tests/test-syntax.lisp: Add tests of low-level string attribute
57 20 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
59 * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
60 (problem noted on clsql-devel by icardo Boccato Alves)
61 * sql/pool.lisp: Remove incorrect keyword
62 * sql/database.lisp: Rework WITH-DATABASE to not make the database the
63 default database (reported by Saurabh Nanda and Chaitanya Gupta)
64 * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
65 emphasis that make-default has a default value of nil.
66 * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
67 SQL Server. (patch from Nathan Bird)
68 * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
69 of trouble with def-view-class compilations (patch from Nathan Bird)
71 15 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
73 * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
74 not dynamically loaded on Windows
76 22 Jun 2007 Kevin Rosenberg <kevin@rosenberg.net>
78 * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
79 that library is dymically linked to clsql-mysql library. Thus, the mysql
80 library will be automatically loaded. This has only been tested on Linux,
83 29 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
84 * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
85 reported by Ricardo Boccato Alves
87 02 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
88 * sql/database.lisp: Add ability of WITH-DATABASE to return
89 multiple values (patch from Liam Healy)
91 25 Apr 2007 Kevin Rosenberg <kevin@rosenberg.net>
93 * doc/connect.xml: variable description fix by Liam Healy
94 * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
95 Apply patches from Marcus Pierce to reduce load-time warnings
96 * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
98 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
100 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
101 disable wide characters for crypt salt sequence on SBCL, based
102 on patch from Lars Nostdal.
104 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
106 * sql/pool.lisp: Test pooled connection when popped from
107 the pool to ensure the connection still works. Currently, implemented
110 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
111 * db-mysql/Makefile: Add potential mysql directories
113 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
114 * sql/metaclasses.lisp: Remove usused saved-initargs
115 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
116 push search libraries)
118 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
119 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
120 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
121 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
122 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
123 on non-Lispworks platforms, the nickname POSTGRESQL will still be
124 available. Applications directly using low-level POSTGRESQL package
125 are recommended to use the new PGSQL name.
126 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
127 Apply patch from Edi Weitz to reduce compiler warnings.
129 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
131 * sql/expressions.lisp: Commit patch from Edi Weitz to
132 use *default-database* for SQL-OUTPUT if no database is
133 explicitly passed to function.
134 * uffi/clsql-uffi-loader.lisp: Change load order to first try
135 plain name/type before attempting user-specified paths (patch
137 * uffi/ptrbits.c: New file to return number of bits in an pointer
138 * uffi/Makefile: use intbits to name .so file based on bit size.
139 Build both 32-bit and 64-bit libraries on 64-bit platform.
141 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
143 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
146 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
148 * db-postgresql/postgresql-sql.lisp: Remove
149 uffi:convert-foreign-to-native wrapper since using cstring for
152 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
154 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
155 PQresultErrorField foreign function.
157 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
159 * doc/intro.xml: Update supported platforms.
160 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
161 changes from Andew Golding to use a more-specific error code
162 from PostgreSQL than the generic fatal error code of the result set.
164 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
165 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
166 readtable modifications
168 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
169 * sql/syntax.lisp: Check that original reader syntax functions
170 stored before trying to restore them.
172 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
173 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
174 display sql reader syntax.
176 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
177 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
178 to decide on 64-bit platform and check size of most-positive-fixnum instead.
179 Needed to support clisp amd64.
181 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
183 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
184 compatibile. Add warning for a metaclass condition that should
186 * sql/time.lisp: Fixed symbol case inconsistency causing problem
187 in AllegroCL's modern lisp. First sign of bug noted by
188 Joel Reymond on clsql-devel.
189 * clsql.asd: Make time.lisp depend on utils.lisp
191 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
192 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
193 *library-file-dir* to CLSQL's library path.
195 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
196 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
197 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
198 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
199 * Makefile.common: Add OS detection
200 * uffi/make.sh, db-mysql/make.sh: Remove files
201 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
202 Refactor to remove need to make.sh shell scripts.
203 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
204 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
205 package rather than CL-USER. Add support for ansi-loop on clisp.
206 * sql/ansi-loop.lisp: New file to support iteration on clisp.
207 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
208 longer exist in the mysql client library.
209 * doc/ref-fdml.lisp: Correct default field-type.
210 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
211 Fixed bug with noted with MySQL 5.0.24 and boolean values.
213 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
215 * sql/oodml.lisp: Remove high debugging level declaration
217 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
219 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
220 is always 1. Fixes problem noted with PostgreSQL 8.1.
222 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
224 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
225 lazily cache if pg_roles tables exist. Selectively use SQL from
226 Joel's previous patch if pg_roles table exists. Should now work
227 with both postgresql 7.4 and 8.x.
229 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
231 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
232 local initialization file
233 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
235 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
236 that generates incorrect integer return type
237 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
238 it fails on versions of postgresql that lack the pg_role table
240 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
242 * sql/transactions.lisp: Important typo fix from Alexey Antipov
243 for database-start-transaction
245 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
247 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
248 to close connection when failing to connect to database.
249 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
250 to avoid dropping system views.
251 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
252 a nil value [patch sponsored by Flektor]
253 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
254 for netbsd compilation
256 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
257 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
258 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
260 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
261 * db-postgresql-socket/postgresql-socket-api.lisp:
262 Apply patch from Marko Kocic adding the socket creation
263 function needed for CLISP.
265 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
266 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
267 * db-oracle/metaclasses.lisp: Patch from James Bielman for
268 checking slot constraints.
269 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
270 saved openmcl images (based on patch from James Bielman)
272 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
273 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
275 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
277 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
278 duration parsing and unparsing to include year and month.
279 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
280 improving library search on Windows platform.
281 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
282 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
284 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
286 * clsql-postgresql-socket.asd,
287 * db-postgresql-socket/postgresql-socket-package.lisp:
288 Use the cl-md5 package on all platforms. Based on report
291 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
293 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
295 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
297 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
298 fix accessor for new versions of SBCL
299 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
300 to improving parsing of time.
301 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
303 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
304 as noted by Russ Tyndall.
306 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
308 * sql/time.lisp: Commit patch from Aleksandar Bakic
309 to properly handle destructive flag
310 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
311 from Steven Harris for socket files with SBCL.
312 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
313 new connections added to the pool do not become the *default-database*
314 * sql/connect.lisp: Optionally set *default-database* for pooled
315 connection when make-default is generalized true.
317 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
319 * sql/expressions.lisp: Ensure table names are properly escaped
320 before comparing -- fixes bug reported by Asbjørn Bjørnstad
323 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
324 * sql/generic-postgresql.lisp: improved decoding of table attribute
325 parameters [from Vladimir Sekissov]
326 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
327 it's subclass to prevent adding standard-db-object to supers if
328 somebody in the path has it already when metaclass inherited from
329 standard-db-class. [from Vladimir Sekissov]
331 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
333 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
334 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
335 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
336 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
337 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
338 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
339 Commit patch from Dominic Robinson providing support for
341 * doc/csql.lisp: Fix typo in slot name
343 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
345 * sql/time.lisp: Commit patch from Aleksandar Bakic for
346 correct handling of decode-time usec value
347 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
348 correct the name of the shared library file.
350 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
352 * sql/metaclasses.lisp: Avoid calling change-class on
353 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
356 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
358 * sql/expressions.lisp: Patch from James Biel to add subselects
360 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
361 * Version 3.4.4 [ Requires UFFI 1.5.7+]
362 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
363 to fix lifetime of foreign strings for Oracle calls
365 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
367 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
368 to improve performance
370 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
372 * clsql-uffi.asd: Patch from James Biel improving loading
373 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
374 to support 64-bit lisps
376 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
378 * sql/expressions.lisp: Escape numbers to SQL strings
381 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
382 * Version 3.4: Add MySQL 5 support
383 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
384 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
385 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
387 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
388 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
390 * BUGS: Added report for update-object-joins by Aleksandar Bakic
392 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
393 * Version 3.3.4 [UFFI >= 1.5.5 needed]
394 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
395 to add missing #\' character.
396 * clsql.asd: Add support for CLSQLINIT environmental variable,
397 based on patch from Yaroslav Kavenchcuk. New version of UFFI
400 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
402 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
403 update-objects-joins when using the :target-slot attribute
405 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
407 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
408 as noted by Harald Hanche-Olsen.
409 * tests/test-syntax.lisp: Add test for multiple field group-by
411 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
413 * sql/time.lisp: Commit patch from Alan Shields to
414 display escape string on wall-time display only when *print-escape*
417 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
418 * sql/metaclasses.lisp: Commit patch from Will to
419 properly set db-reader slot in effective-slot-definition
420 * sql/expressions.lisp: Commit patch from Alan Shields
421 adding make-load-form for sql-relational-exp
422 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
423 adding support for new NUMBER type
425 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
427 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
428 * doc/ref-ooddl.xml: Documentation of new type
429 * notes/add-type-hints.txt: New file from Alan Shields
430 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
432 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
433 as noted by Francis Leboutte. Similar fix applied to db-mysql and
435 * sql/expressions.lisp: Allow string table names for output as
436 contributed by Francis Leboutte.
437 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
440 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
442 * doc/into.xml: Change download from ftp to http protocol
444 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
446 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
449 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
451 * db-oracle/oracle-sql.lisp: Add check for zero increment as
452 suggested by Edi Weitz. Add missing database-sequence-last function
453 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
454 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
455 stmthp object when query cursor is freed with OCI.
457 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
458 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
459 display search path when error occurs loading foreign library.
461 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
463 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
464 with changes to support case-sensitive lisp implementations. Add
465 paragraph on using /etc/clsql-init.lisp site initialization file.
466 * clsql.asd: Load file /etc/clsql-init.lisp, if it
467 exists, after package is loaded to set site-specific configuration
469 2005-06-24 Edi Weitz <edi@agharta.de>
470 * sql/db-interface.lisp: Added new special variable
471 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
473 * sql/package.lisp: Export these.
474 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
476 * db-mysql/mysql-loader.lisp: Changed order of libs.
478 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
479 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
480 * clsql-mysql.asd: Renamed clsql/mysql interface library from
482 * clsql-uffi.asd: Renamed clsql/uffi interface library from
484 * uffi/clsql_uffi.c: Renamed from uffi.c
485 * db-mysql/clsql_mysql.c: Renamed from mysql.c
486 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
487 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
488 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
489 absolute pathnames when searching for foreign libraries.
490 foreign library loading.
492 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
494 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
495 to support UTF-8 on sbcl unicode.
497 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
499 * sql/time.lisp: Fix bug in roll that caused failure in test suite
501 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
503 * sql/oodml.lisp: Properly handle when db-writer is NIL
505 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
506 * sql/expressions.lisp: Avoid using simple-string declaration when
507 a non-simple string may be encountered. [issue noted by
508 will@cesmail.net] Add a simple-string declaration for a local
511 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
512 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
513 a symbol as well as function to serve as a function designator
514 [issue noted by will@cesmail.net]
516 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
518 * sql/time.lisp: Fix error in submitted patch which caused error
519 in timestrings with 19 or less characters.
521 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
523 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
524 to fix read-socket-sequence on non-sb-unicode sbcl.
526 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
528 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
529 for fractional seconds which is required by PostgreSQL
530 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
532 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
533 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
535 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
537 * sql/syntax: Commit patch from Alan Shields to supress reader
538 macros when *read-supress* is T.
540 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
542 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
543 from Janis Dzerins to support unicode on SBCL
544 * sql/syntax: Commit patch from Alan Shields to improve reporting
545 of invalid syntax statements.
547 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
549 * db-mysql/mysql-sql.lisp: Add port to connection specification
550 based on patch from Dave Watson
551 * doc/appendix.xml: Document MySQL port parameter to connection spec
553 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
555 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
557 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
558 * sql/oodml.lisp: Add missing database argument [Patch from
561 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
562 * sql/oodml.lisp: Improve database priority in
563 update-records-from-instance [Patch from Walter C. Pelissero]
565 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
567 * sql/package.lisp: Export database-reconnect from clsql-sys
569 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
570 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
571 [Patch from Walter Pelissero]
573 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
574 * db-postgresql/postgresql-loader.lisp: Add additional
575 directories to Fink on darwin [patch from Cyrus Harmon].
577 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
579 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
580 is invoked [suggested by Alan Shutko].
581 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
582 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
583 to def-view-class [fix suggested by Fred Gilham].
585 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
586 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
588 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
589 * doc/*.xml: Fix spelling of Vladimir
591 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
592 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
593 now that LispWorks is an independant company [noted by
596 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
597 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
598 Better support for 64 bit environments
600 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
602 * sql/metaclass.lisp: Make t the default value of :set
603 [noted by Cyrus Harmon]
605 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
607 * uffi/clsql-uffi.lisp: Add support for unsigned integers
608 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
609 unsigned integers. Apply patch from Yannick Gingras to
610 implement database-sequence-last.
612 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
613 * doc/ref-fdml.lisp: Fix variable tag name to varname
614 [noted by Eduardo Munoz]
615 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
617 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
619 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
621 * sql/metaclass.lisp: Remove unnecssary (and runtime error
622 causing) change-class invocation when running on CLISP.
623 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
624 to fix structure name.
625 * sql/database.lisp: More specific error message with trying
626 to use a database value of NIL.
627 * sql/expressions.lisp: Accept a string for the table name
628 in (sql-output sql-delete database) [suggested by Ed Symanzik].
630 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
632 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
633 ignore columns which have been dropped.
634 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
635 Use sb-md5 package on SBCL, recommended by Chris Capel
637 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
638 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
639 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
640 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
642 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
643 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
645 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
646 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
647 contributed by Aurelio Bignoli
649 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
650 * sql/oodml.lisp: Commit patch from Walter Pelis
651 to use an object's database for a select on its slot.
653 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
654 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
655 Aurelio Bignoli to fix negative 64-bit integers
657 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
658 * db-mysql/mysql.c: Fix parameters in bind_param call
660 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
661 * uffi/clsql-uffi.lisp: Add support for :blob result-type
662 * db-mysql/mysql-sql.lisp: Add support for :blob
665 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
666 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
667 missing quotes for types in code that is still in development
668 (thanks to Joerg Hoehle)
670 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
671 * Version 3.0.8 released
672 * db-sqlite/sqlite-*.lisp: Apply patch from
673 Aurelio Bignoli with improvements
675 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
676 * multiple: Apply patch from Joerg Hoehle with multiple
679 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
680 * Version 3.0.7 released
681 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
682 Add support for mediumint.
683 * sql/metaclass.lisp: Rework CLISP MOP handling
684 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
686 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
687 * sql/metaclass.lisp: Support CLISP's attribute name
688 for the type field in direct class slots
690 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
691 * Version 3.0.6 released
692 * BUGS: New file. Document suspected SIGPIPE
693 interaction between SBCL and libpq used in
695 * doc/ref-fdml.lisp: Document the :caching and :refresh
696 keywords of the SELECT function.
697 * doc/ref-ooddml.lisp: Document the new *default-caching*
699 * sql/package.lisp: Export *default-caching*
700 * sql/oodml.lisp: Use *default-caching* to
701 control default caching behavior.
703 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
704 * Version 3.0.5 release
705 * doc/appendix.xml: Add note about loading Oracle8 version
706 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
707 data from David Young.
709 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
710 * doc/Makefile, doc/catalog-darwin.xml: Apply
711 patch from Cyrus Harmon for building docs on Mac OS X
712 * sql/package.lisp: Add new (pre-release) clisp MOP package
714 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
715 * Version 3.0.4 Release
716 * multiple: Remove superfluous quotes in UFFI def-type
717 and def-foreign-type forms.
719 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
720 * Version 3.0.3 Release
721 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
722 from Tagore Smith to call force-output after sending authentication
723 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
724 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
725 to a database of that type so that functions that indicate capabilities of
726 database are available.
728 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
729 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
731 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
732 * Version 3.0.2 Release
733 * TODO: Add note about ODBC on Windows
734 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
736 * db-odbc/odbc-ff-interface.lisp: Change the return type
737 of SQLSetEnvAttr to :short
739 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
740 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
741 slot of the employee View Class definition [reported by Franz Deuzer].
743 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
744 * Version 3.0.1 Release
745 * tests/test-init.lisp: Add second join class to employee-address
746 to test a class with two join slots.
747 * sql/oodml.lisp: Fix find-all function for a class with multiple
749 * TODO: Remove need to test/fix multiple join classes
751 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
752 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
753 from Jon Buffington for file locations on Darwin.
755 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
756 * sql/db-interface.lisp: Improve messages when functions
757 are passed a database object, but the method is not specialized
758 for that database type.
759 * sql/metaclasses.lisp: Fix inline declaration (reported by
762 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
763 * TODO: Add bug report about SQL generation with a table
764 containing two join slots.
765 * sql/oodml.lisp: Add optional size to VARCHAR type
767 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
768 * Version 3.0.0 Release
769 * sql/expressions.lisp: Change declaration that
770 caused error on openmcl
771 * db-aodbc/aodbc-sql.lisp: Fix storage location
772 of odbc connection. Specialize database-query since
773 dbi's :types keyword is different than generic-odbc's
774 :result-types keyword
775 * sql/db-interface.lisp: Add warnings for methods
776 not specialized by a db backends
777 * tests/test-fddl.lisp: Fix case of symbols to support
778 case-sensitive Allegro
779 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
780 * tests/test-init.lisp: Note that odbc driver for postgresql
781 doesn't properly handle table ownership
782 * LATEST-TEST-RESULTS: update with version 3.0.0
784 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
785 * sql/expressions.lisp: conditionalise escaping of backslash in
786 generated SQL strings on backend.
787 * tests/test-fdml.lisp: test for escaping of backslash.
788 * sql/oodml.lisp: minor tidying in FIND-ALL.
790 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
791 * NEWS: Initial 3.0 announcement draft
792 * README: Expand acknowledgements of incorporated projects
793 * CONTRIBUTORS: Further document Marcus Pearce contributions
795 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
796 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
797 to print floats with the exponent markers removed.
798 * tests/test-oodml.lisp: add tests for updating records with floats.
800 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
801 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
802 CommonSQL compatibility.
803 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
804 this column constraint syntax is not supported.
805 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
806 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
809 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
810 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
811 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
812 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
814 * doc/ref-oodml.xml: add examples for OODML.
815 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
817 * sql/metaclasses.lisp: update docstrings.
818 * tests/test-init.lisp: change :db-constraints for emplid to
819 (:not-null :unique) as a temporary test for multiple column constraints
821 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
822 return type of (SETF SLOT-VALUE-USING-CLASS).
823 * TODO, doc/TODO: remove items done.
826 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
827 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
829 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
831 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
832 * sql/expressions.lisp: reactivate caching of generated SQL strings.
833 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
834 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
835 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
836 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
837 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
838 sql/expressions.lisp.
839 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
840 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
841 * sql/generics.lisp: add docstrings.
843 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
845 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
846 code in favor of fixing UFFI with James Bielman's patch
848 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
850 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
853 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
854 * README, INSTALL: update URLs. Minor updates to descriptions.
855 * tests/README: remove stuff about editing contexts.
857 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
858 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
859 *default-string-length*
861 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
862 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
864 * tests/test-fddl.lisp: add tests for column and table constraints
865 in CREATE-TABLE. Add test for OWNER keyword parameter to
866 LIST-TABLES (assuming same underlying machinery in other FDDL
868 * tests/test-init.lisp: restrict above test to postgresql and oracle.
870 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
871 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
874 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
875 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
877 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
879 * doc/*.xml: documentation additionals and fixes so
880 that docbook passes xmllint.
882 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
884 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
885 to change escaping of single quotes. Mild optimizations
886 for escaped string output.
887 * doc/ref-ooddl.lisp: documentation additions
888 * doc/ref-oodml.lisp: Add purpose to functions
889 * TODO: Add need to test single quote escaping
891 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
892 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
893 * sql/ooddl.lisp: Added SMALLINT type
894 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
895 * db-mysql/mysql-objects.lisp: Added SMALLINT type
896 * sql/package.lisp: Export SMALLINT
897 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
900 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
901 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
902 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
903 View Class slot option.
904 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
905 slot option accepting a list of constraints [reported by Travis Cross].
906 * doc/ref-fddl.xml: add some examples of specifying column and
907 table constraints to the documentation for CREATE-TABLE.
908 * TODO: add note about adding tests for table/column constraints. Add
909 optimisation note about using cached attribute types in insert/update
912 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
913 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
914 features and so on the documentation for each backend.
915 * doc/TODO: remove items done.
916 * doc/ref-transaction.xml: add note in introduction about
917 autocommit mode as a difference from CommonSQL.
918 * doc/ref-syntax.xml: add notes about SQL syntax state functions
919 being macros in CLSQL. Add note about SQL operators which are
922 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
923 * Version 2.11.12 released
924 * doc/ref-recording.xml: document SQL I/O recording.
925 * doc/ref-prepared.xml: new file for documenting prepared statements.
926 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
928 * doc/ref-conditions.xml: complete documentation of condition system.
929 * doc/global-index.xml: add symbols from condition system and remove
930 those from LOB and prepared statement APIs.
931 * doc/ref-fdml.xml: complete documentation of FDML.
932 * doc/glossary.xml: add View Class.
933 * doc/TODO: remove items done.
934 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
935 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
936 additional slot accessors for condition classes.
938 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
939 * doc/ref-ooddl.lisp: Add documentation
940 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
941 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
942 * doc/oodml.lisp: Rename references to new name of
943 *DEFAULT-STRING-LENGTH*
945 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
946 * doc/ref-transaction.xml: document transaction handling.
947 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
948 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
949 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
950 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
953 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
954 * doc/ref-fdml.xml: document the FDML.
955 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
956 * sql/ooddl.lisp: moved *default-varchar-length* to here from
957 oodml.lisp and renamed to *default-string-length*
959 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
960 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
961 to allow specifying transactionless table creation
962 * doc/ref-oodml.lisp: Add new keyword to signature of
965 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
967 * sql/expressions.lisp: when removing duplicate table identifiers
968 in the FROM clause of a query, check both table name and alias
970 * sql/fdml.lisp: remove DESCRIBE-TABLE.
971 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
972 DATABASE-DESCRIBE-TABLE.
973 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
974 and LIST-TABLE-INDEXES.
975 * sql/generic-postgresql.lisp: add reader conditional #+nil for
976 DATABASE-DESCRIBE-TABLE and comment about its uses for
977 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
978 returning type info for all attributes.
979 Fix DATABASE-SEQUENCE-LAST.
980 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
981 LIST-INDEXES with additional keyword parameter :ON.
982 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
983 with LIST-INDEXES (with :ON parameter).
984 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
985 * doc/ref-connect.xml: minor tidying.
986 * doc/ref-fddl.xml: document the FDDL.
987 * doc/TODO: removed items done. Moved note about transaction handling
989 * TODO: move note about transaction handling to doc/TODO. Added
990 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
992 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
994 * sql/syntax.lisp: updated docstrings.
995 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
997 * sql/database.lisp: add docstrings for CREATE-DATABASE,
998 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
999 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
1000 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
1001 * doc/ref-connect.xml: document connection/initialisation.
1002 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
1003 * doc/TODO: remove items done.
1004 * Makefile: add db-oracle to to SUBDIRS.
1006 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1007 * sql/oodml.lisp: Add new serialization functions:
1008 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1009 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1010 from a table that has more than one primary index.
1011 * sql/conditions.lisp: Fix printing of closed-database error
1013 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1015 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1016 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1018 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1019 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
1020 of SQL-EXPRESSION from CLSQL-SYS.
1021 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
1022 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
1023 * doc/Makefile: added Mandrake linux.
1024 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
1025 * doc/appendix.xml: fixed little typo (adsf).
1026 * doc/glossary.xml: removed closed-database and note about
1027 sql-expression, added some entries.
1028 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
1030 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1032 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1033 * multiple: Add generalized-boolean type as requested by
1035 * TODO: Added need for test of generalized-boolean
1037 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1038 * Version 2.11.7 released
1039 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1040 for loading with clc-register-user-package. Remove personal
1041 directory from path lisp.
1042 * db-mysql/mysql-loader.lisp: Similar changes
1044 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1045 * Version 2.11.6 released
1046 * sql/oodml.lisp: Commit patch from Edi Weitz
1047 to fix symbol writing/reading
1048 * TODO: Add need for symbol slot test
1050 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1051 * sql/package.lisp: remove duplicate export of
1052 *CACHE-TABLE-QUERIES-DEFAULT*.
1053 * doc/ref-*.xml, doc/global-index.xml: new files documenting
1054 the CommonSQL compatible api.
1055 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
1056 reflect changes in return values of WITH-TRANSACTION.
1058 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1059 * tests/README: Fix filename [reported by Bill Clementson]
1060 * sql/transactions.lisp: Apply return value patch from
1061 Edi Weitz for WITH-TRANSACTION
1062 * tests/README: Remove ptester package requirement (as noted
1065 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1066 * Version 2.11.5 released
1067 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1068 Select connection-spec based on connection type. Bugs reported by
1070 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1071 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1072 name on Windows, add \bin\ directory to search path
1074 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1075 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
1077 * sql/operations.lisp: substr now generates SUBSTR for use on
1078 Oracle; added a new operator SUBSTRING for use elsewhere. minus
1079 now generates MINUS for use on Oracle. Nvl signals an error if
1080 not called with exactly 2 arguments. Add concat function for use
1081 instead of the || operator on MySQL and Oracle.
1082 * sql/syntax.lisp: changed internal symbol for the || operator to
1084 * sql/expressions.lisp: removed redundant and unused functions
1085 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1086 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
1087 * sql/generics.lisp: removed generic function for
1088 DATABASE-CONSTRAINT-DESCRIPTION (see above).
1089 * tests/test-syntax.lisp: modified/added tests according to changes
1090 in sql/operations.lisp.
1091 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
1093 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
1094 and SQL-USERENV to the shared exports list. Removed
1095 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
1096 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1097 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1098 RECORD-SQL-RESULT from shared exports list.
1100 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1101 * db-postgresql/postgresl-sql.lisp: Avoid computing
1102 result-types lisp when nil result-types. Return only
1103 one value when field-types nil.
1104 * db-mysql/mysql-sql.lisp: Simple queries now
1105 working with prepared statements.
1107 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1108 * Version 2.11.4: MySQL 4.1 now passes all tests
1109 * sql/package.lisp: Add API for prepared statments.
1110 * sql/fdml.lisp: Change implicit flatp processing
1111 for string map-query for greater CommonSQL conformance.
1112 Add high-high API for prepared statements.
1113 * tests/test-basic.lisp: Add test for map-query and
1115 * sql/transactions.lisp: Change name/semantics of
1116 autocommit to set-autocommit.
1117 * sql/generic-postgresql.lisp: Add support for
1118 prepared statements.
1119 * tests/test-internal.lisp: New file
1120 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1121 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1122 Controller invocation.
1123 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1124 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1125 function contains a subselect.
1127 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1129 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1130 type (setf slot-value-using-class)
1131 * TODO: add not that need a test case for the above fix
1132 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1134 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1135 introduced in Oracle8. Leave older code selectable by a reader macro
1136 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1137 uses OCILogon and does not the more complex session management.
1139 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1140 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1141 * test/test-init.lisp: Add universal-time slot to person.
1142 * test/test-fddl.lisp: Add tests of universal-time slot
1143 * test/test-ooddl.lisp: Test universal-time slot in an object
1144 * TODO: Remove need for universal-time test
1145 * debian/rules, debian/control: Add cl-sql-oracle binary package
1146 * doc/appendix.xml: Add Oracle backend information
1147 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1148 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1149 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1150 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1151 for map-query to reflect changed in arguments to be CommonSQL compatible.
1152 Updated old clsql conditions to new CommonSQL compatible conditions.
1154 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1155 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1156 type. Added *default-varchar-length* rather than previous hard-coded
1157 varchar length. Remove 'simple-string and 'simple-base-string since they
1158 are subtypes of 'string.
1159 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1160 local hard-coded value.
1161 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1162 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1163 CHAR to lisp type character.
1164 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1165 * sql/operations.lisp: Add userenv
1166 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1168 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1169 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1170 * test/test-init.lisp: Add large table with bigint slot
1172 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1173 * Version 2.11.1 released: Much simpler Oracle client library loading.
1174 Now uses ORACLE_HOME environmental variable as well as tests default
1175 path for Oracle Instant Client.
1177 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1178 * Version 2.11.0 released: Full Oracle support. All tests pass
1179 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1180 * tests/test-init.lisp: capitalize odbc backend name in banner
1181 * CONTRIBUTORS: Add note about Marcus' excellent work
1182 * sql/oodml.lisp: Removed old stub function
1183 * clsql.asd: Use module names in current package rather than keyword package
1184 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1185 in setting sequence position. Make autocommits more efficient.
1186 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
1187 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1188 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1189 and read-sql-value for NUMBER and CHAR.
1190 * sql/base-classes.lisp: Add autocommit slot
1191 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1192 * doc/intro.xml: Add Oracle
1194 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
1195 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
1196 CLSQL-SIMPLE-WARNING with SQL-WARNING.
1197 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
1199 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
1200 * clsql.asd: reworked module structure in package definition and
1201 file names to better reflect component functionality.
1202 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
1203 exports list. Removed duplicate and obsolete exports. Exported
1204 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
1205 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
1206 according to whether they are specified by CommonSQL or CLSQL
1208 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
1210 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
1211 here from basic-sql.lisp.
1212 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
1213 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
1214 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1216 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
1217 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
1219 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1220 * Version 2.10.22 released
1221 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
1222 has reversed class slots, change the default for ordered-class-slots so that slots
1223 are now in the same order an in the def-view-class.
1224 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
1225 * test/test-fddl.lisp: Add two tests for mixed case names
1226 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
1227 for computed fields, this will require some adjustment to the test suite which
1228 in many cases expects integers.
1229 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
1231 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1232 * Version 2.10.21 released
1233 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
1234 db-odbc, and db-aodbc.
1235 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
1236 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
1237 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
1238 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
1239 sql/generic-odbc.lisp
1240 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
1241 Move common code to sql/generic-postgresql.lisp
1242 * sql/classes.lisp: honor case of string tables when outputting queries
1243 * sql/objects.lisp: Add database type to default database-get-type-specifier method
1244 * sql/sql.lisp: Add database type to default database-abort-transaction method
1245 * db-mysql/mysql-objects.lisp: New file
1246 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
1247 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
1249 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
1250 default db case for FDML/SELECT/25
1252 22 May 2004 Kevin Rosenberg
1253 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
1254 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
1255 and string identifiers with non-default case
1256 * sql/table.lisp: Don't convert string table name to a symbol.
1257 * sql/classes.lisp: Honor case of string identifiers
1258 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
1260 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
1261 of owner phrases. Obtain server and client versions.
1262 * db-oracle/oracle-objects.lisp: Fix type specifiers
1263 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
1264 * tests/test-init.lisp: Properly get username from Oracle connection-spec
1266 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1267 * sql/generics.lisp: reworked docstrings. Remove generics for
1268 ADD-TO-RELATION and REMOVE-FROM-RELATION.
1269 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
1270 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1271 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
1272 for CommonSQL compatibility. Remove ADD-TO-RELATION and
1273 REMOVE-FROM-RELATION.
1274 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
1275 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1276 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
1277 * sql/conditions.lisp: add documentation for conditions. Add
1278 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
1280 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1281 * sql/basic-sql.lisp: reworked docstrings.
1282 * sql/transactions.lisp: reworked docstrings.
1283 * sql/sql.lisp: reworked docstrings.
1284 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
1285 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
1286 * sql/database.lisp: reworked docstrings.
1287 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
1288 and FDML extensions and database extensions.
1290 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1291 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
1292 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
1294 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
1295 Oracle versions with the PURGE option required for drop table. This needs
1296 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
1298 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1299 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
1300 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
1301 * sql/table.lisp: reworked docstrings.
1302 * sql/objects.lisp: moved *default-update-objects-max-len* here from
1304 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
1305 DROP-VIEW and DROP-INDEX and the use of the :transactions and
1306 :constraints keyword args to CREATE-TABLE.
1307 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
1308 CommonSQL compatible with respect to column constraints.
1310 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1311 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
1312 Requires UFFI 1.5.0 or higher
1314 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1316 * sql/conditions.lisp: Fix cerror
1318 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1319 * Version 2.10.18 released: New condition hierarchy to be compatible
1320 with CommonSQL -- not backward compatible with previous CLSQL.
1321 * sql/db-interface.lisp: Add more default methods
1322 * sql/objects.lisp: Add explicit table name to order-by parameters
1323 in find-all when only one table to avoid selecting a duplicate row.
1324 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
1325 as previous logic was adding two fields (foo asc) to SELECT query.
1326 Make :result-types :auto be the default for object selections.
1327 Properly handle caching key when using multiple order-by with asc/desc
1329 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
1331 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1332 * sql/recording.lisp: reworked docstrings.
1333 * sql/syntax.lisp: reworked docstrings.
1334 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
1335 SQL syntax state functions being macros.
1337 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1338 * sql/package.lisp: Export initialize-database-type and
1339 *initialize-database-types* from CLSQL package.
1340 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
1341 remove old CLSQL conditions.
1342 * sql/loop-extensions.lisp: Make errors of type sql-user-error
1343 * */*.lisp: Convert to from old to new conditions
1345 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1346 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
1347 To handle this difference, will need to add a new database-drop-table
1349 * db-oracle/oracle-sql.lisp: Move server-version and
1350 major-version-number to database object to allow multiple connections
1351 to Oracle servers of different versions.
1353 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1354 * TODO: moved notes about backends to doc/TODO.
1355 * doc/TODO: added notes about backends and select extensions.
1356 * sql/base-classes.lisp: remove obsolete schema slot in database
1359 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1360 * db-oracle/oracle-api: Add OCIServerVersion
1361 * db-oracle/oracle-sql: Query and store server version on connect
1362 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
1363 function to handle OCI's lack of bigint support
1364 * test/test-basic.lisp: Separate bigint testing
1365 * test/test-utils.lisp: Add oracle to specs and list of backends
1366 * doc/TODO: New file
1367 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
1368 run-time instantiation of variables in reader macros.
1369 * TODO: Remove item already complete. Add note about
1372 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1373 * sql/syntax.lisp: added condition to the reader macro to treat [*]
1374 as a column identifier (rather than an operation) for CommonSQL
1376 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
1377 keword args to SELECT, [*] as column identifier, new MAP-QUERY
1378 behaviour and the ANY and ALL operators in subqueries.
1379 * tests/test-init.lisp: add set-operation and subquery tests to
1380 appropriate skip lists.
1381 * sql/objects.lisp: remove redundant and non CommonSQL compatible
1382 ORDER-BY-DESCENDING keyword argument for SELECT.
1383 * sql/classes.lisp: remove redundant and non CommonSQL compatible
1384 ORDER-BY-DESCENDING keyword argument for SELECT.
1385 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
1386 with object queries.
1388 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1389 * sql/db-interface.lisp: Add new db-type-has-union?
1390 since Mysql 3.23 does not support unions.
1391 * sql/test-init.lisp: Don't try union tests on database
1392 backends which do not support it.
1393 * db-oracle/*.lisp: initial port to UFFI
1394 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
1395 implement REFRESH for SELECT.
1396 * tests/test-oodml.lisp: Add tests for deferred retrieval,
1397 caching, refresh, and update-object-joins
1398 * tests/test-init.lisp: Add deferred-employee-address class
1400 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1401 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
1402 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
1403 ALL and EXISTS generate function expressions so they output the
1405 * sql/classes.lisp: SELECT now generates appropriate SQL when
1406 passed the SET-OPERATION and ALL keyword arguments.
1407 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
1408 accepts ordering constraints as pairs of the form (column direction)
1409 where direction may be :ASC or :DESC.
1410 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
1411 Correct tests for ANY, SOME, ALL and EXISTS.
1412 * tests/test-fdml.lisp: added test for COALESCE.
1413 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
1414 using funcall unless QUERY-EXPRESSION returns one column and its
1415 FLATP slot is not nil in which case apply is used.
1416 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
1418 * TODO: remove items done.
1419 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
1420 DATABASE-LIST-ATTRIBUTES.
1421 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
1422 results in DATABASE-LIST-ATTRIBUTES.
1424 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1425 * sql/classes.lisp: SELECT now accepts table identifiers as strings
1426 for CommonSQL compliance. Add support for qualified sql identifiers
1427 with aliased table names.
1428 * tests/test-fdml.lisp: added tests for table identifiers as strings
1429 in SELECT and for aliased definitions.
1430 * tests/test-syntax.lisp: added tests for alias definitions.
1432 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1433 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
1434 field-names set to nil.
1435 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
1436 with null attribute values.
1437 * sql/operations.lisp: modify SQL concatenation operator to accept
1438 unescaped || symbol.
1439 * sql/syntax.lisp: modify sql reader macro function to accept
1440 unescaped sql concatenation operator.
1441 * tests/test-fdml.lisp: unescape sql concatenation operator.
1442 * tests/test-syntax.lisp: unescape sql concatenation operator.
1443 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
1444 Note to add test for universal-time. Note about difference from
1445 CommonSQL in transaction handling.
1447 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1448 * tests/test-init.lisp: Add deferred-employee-address
1450 * tests/test-oodml.lisp: Add deferred retrieval testgs
1452 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1454 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
1455 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
1456 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
1457 * *: Fix minor style warnings
1458 * clsql-classic: Remove system and subdirectory
1459 * clsql-base: Remove system and subdirectory and
1460 fold into clsql system
1461 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
1462 as supported platform.
1464 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1465 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
1466 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
1467 Allegro 7.0beta AMD64
1468 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
1469 of ODBC longs since this type can vary on 64-bit platforms depending
1470 upon the compilation options of unixODBC.
1471 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
1472 structures found by testing with AllegroCL 7.0b AMD64.
1473 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
1474 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
1475 Initial caching support for SELECT
1476 * tests/test-oodml.lisp: Avoid using cache when testing select.
1477 * sql/kmr-mop.lisp: Explicitly check slot order and
1478 store as a cl:*feature*
1479 * sql/recording.lisp: Remove additional types to
1480 increase CommonSQL conformance.
1481 * tests/test-init.lisp: Change a :column attribute
1482 to test symbols as value
1483 * sql/relations.lisp: Remove functions since they don't support
1484 many to many relationships.
1485 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
1486 of add-to-relations function and replace with explicit field settings.
1487 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
1489 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1491 * LATEST-TEST-RESULTS: results with current version
1492 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
1493 since cmu19 has opposite order of class slots.
1494 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
1495 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
1497 * tests/test-init.lisp: Check test-database-underlying-type for
1500 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1501 * sql/operations.lisp: complete remaining operations for the sql
1502 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
1503 UNION, INTERSECT, BETWEEN.
1504 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
1505 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
1506 * tests/test-syntax.lisp: add tests for new operations.
1507 * tests/test-fdml.lisp: add tests for queries based on new operations.
1508 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
1509 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
1510 * TODO: removed entries done.
1512 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1513 * tests/benchmarks.lisp: Add immediate vs. deferred
1516 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1517 * Version 2.10.13: Now works on openmcl 0.14.2
1518 * sql/objects.lisp: Add :retrieval :immediate for
1520 * tests/test-init.lisp: Add non-index fields for testing
1521 join class employee-addresss
1522 * test/test-oodml.lisp: Add tests for retrieval immediate
1523 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
1524 values which are now listifed by openmcl 14.2.
1525 * sql/objects.lisp: more framework for supporing immediate retrieval
1527 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1528 * docs/intro.xml: Upload location of a README file
1529 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
1530 changing the type-specifier. Use a lisp type of (OR NULL FOO)
1531 for a specified-type of FOO unless :db-constraints :not-null.
1532 No need to specialize finalize-inheritance for openmcl.
1533 * tests/test-*.lisp: Rename fields so that joins occur on
1534 fields with different names. This ensures that join code is
1535 selecting the proper name.
1536 * test/test-init.lisp: Add :base-table for employee-address
1537 view class for testing.
1538 * sql/objects.lisp: Use view-table rather than name of table
1539 in a number of places to fix errors noted with using :base-table.
1541 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1542 * sql/objects.lisp: replace *update-records-on-make-instance* with
1543 *db-auto-sync* which also controls both automatic creation of
1544 new records on creation of new instance and updating of record
1545 fields on setting of instance slots (as suggested by Edi Weitz).
1546 * tests/test-init.lisp: replace *update-records-on-make-instance*
1547 with *db-auto-sync*.
1548 * sql/package.lisp: replace *update-records-on-make-instance*
1549 with *db-auto-sync*.
1550 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
1551 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
1552 and *default-database* in FIND-ALL.
1553 * sql/package.lisp: import time functions from CLSQL-BASE.
1554 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1555 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1556 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1557 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
1560 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1561 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
1562 now return a sql-object-query type rather than directly performing a query.
1563 This improves CommonSQL conformance.
1564 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
1565 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
1566 depend on sql-object-query-type.
1567 * sql/loop-extensions.lisp: Move from base package
1568 * classic/package.lisp: remove references to map-query and do-query
1570 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1571 * TODO: New section on optimizations, especially optimizing JOINs.
1572 * sql/objects.lisp: Have :target-slot return of list of lists rather
1573 than a list of cons pairs to be conformant with CommonSQL.
1574 Make :target-slot much more efficient by using a SQL inner join
1575 statement and just requiring one SQL query. Add :retrieval :deferrred
1576 to target-slot joins. Add placeholder for update-objects-join.
1577 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
1578 and process them for query output-sql.
1580 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1582 * base/basic-sql.lisp: Avoid multiple evaluation
1583 of query-expression in DO-QUERY
1584 * sql/objects.lisp: Make SELECT a normal function.
1585 SELECT now accepts type-modified database identifiers, such as
1586 [foo :string] which means that the values in column foo are returned
1587 as Lisp strings. Add new *update-records-on-make-instance* special
1588 variable controlling automatic creation of new instances. Add missing
1589 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
1590 * sql/packages.lisp: Export *update-records-on-make-instance*
1591 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
1593 * test/test-fdml.lisp: Add tests for type-modified
1594 database identifiers.
1595 * test/test-init.lisp: Stop using add-relation since implementing
1596 many-to-many joins. Use *update-records-on-make-instance*
1597 to automatically store records on instance creation. Add many-to-many
1598 employee-address view-class.
1600 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1602 * base/loop.lisp: Add object iteration. Use :result-type
1603 :auto for result-set. Remove
1604 duplicate (and non-correct) code for non-list variables by
1605 simply making an atom variable into a list.
1606 * sql/package.lisp: Remove unnecessary clsql-sys package
1607 and replace it with clsql.
1608 * sql/metaclasses.lisp: Properly store specified-type from
1609 direct-slot-definition and then store translated type in
1610 effective-slot-definition
1611 * sql/classes.lisp: Don't output type in sql-output
1612 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
1613 [foo :integer] as fields in SELECT.
1614 * sql/query.lisp: Set default for :result-types to :auto in
1616 * sql/objects.lisp: Use specified-type when invocating
1617 database-get-type-specifier. def-view-class macro now returns
1619 * base/basic-sql.lisp: Make :AUTO the default value for
1620 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
1621 * sql/objects.lisp: Add bigint type
1622 * test/tests-basic.lisp: Add tests for :result-types for
1623 MAP-QUERY and DO-QUERY
1624 * test/test-fdml.lisp: Add test for result-types in LOOP
1625 and also using single symbol rather than a list for variables.
1626 Add test that default :result-types is auto for FDML QUERY.
1627 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
1628 of SQL-IDENT-ATTRIBUTE.
1629 * test/test-oodml.lisp: Enable OO loop iteration test,
1630 modify it so it doesn't depend on boolean where.
1632 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1634 * sql/objects.lisp: added derived type specifier for universal time.
1635 * sql/package.lisp: added #:universal-time to clsql-sys exports.
1636 * tests/test-oodml.lisp: added test for translation of boolean slots
1637 in SELECT with object queries.
1639 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1640 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
1641 for odbc/postgresql backend.
1642 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
1643 it can handle NIL values from the ODBC driver
1644 * tests/benchmarks.lisp: New file with initial
1646 * sql/relations.lisp: fix to add subclassing support,
1647 minor optimizations [Edi Weitz]
1649 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1651 * base/conditions.lisp: Add *backend-warning-behavior*
1653 * db-postgresql-socket/postgresql-socket-sql.lisp:
1654 Honor value of *backend-warning-behavior*
1655 * tests/test-fdml.lisp: Remove test of raw boolean value
1656 since different backends handle this differently. Add
1657 test for :column attribute.
1658 * tests/test-oodml.lisp: Add tests for boolean slot value
1659 and for :void-value attribute
1660 * tests/test-init.lisp: Use *backend-warning-behavior*
1661 to suppress warnings from postgresql about implicitly
1662 creating primary key in tables. Add new address table.
1664 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1666 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
1667 result-types is :auto
1668 * sql/objects.lisp: Properly handled writing/reading Boolean
1669 values from SQL database when retrieving objects.
1670 * test/test-fdml.lisp: Add another test for boolean results
1671 * test/utils.lisp: Fix incorrect declaration
1673 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1675 * sql/generics.lisp: add generic function for SELECT.
1676 * sql/objects.lisp: make SELECT a method specialisation.
1677 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
1678 referred to are View Classes.
1679 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
1680 query-expression arg evaluates to a list, then we have an object
1682 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
1684 * TODO: remove items done and add a todo for SELECT.
1685 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
1687 * sql/sql.lisp: add :field-names arg to QUERY.
1688 * tests/test-fdml.lisp: minor rework to use :field-names arg to
1691 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1692 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
1693 or more View Classes.
1694 * sql/objects.lisp: make the :flatp argument to SELECT work with
1696 * sql/objects.lisp: make SELECT accept a :result-types argument
1697 (defaults to :auto) which is passed on to QUERY.
1698 * sql/objects.lisp: SELECT returns field-names as a second value.
1699 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
1700 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
1701 to SELECT and take only first value as appropriate.
1702 * tests/test-fdml.lisp: add two new tests for query result coercion
1703 and the field-names returned as a second value from SELECT.
1704 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
1706 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1707 * Version 2.10.6-pre1
1708 * sql/metaclasses.lisp: Add void-value slot
1709 * doc/csql.xml: Update def-view-class documentation
1710 * test/test-init.lisp: Change old :db-type to :db-kind.
1711 Remove old :nulls-ok attributes.
1712 * sql/objects.lisp: Add new universal-time and bigint
1713 types. Optimize reading of integers using parse-integer
1714 rather than read-from-string.
1715 * */*.lisp: Merge clsql-base-sys and clsql-base packages
1716 into clsql-base package
1717 * classic/sql.lisp: Move large object support into base, leaving
1718 classic without any functionality that is provided in the clsql
1720 * classic/package.lisp: Rename clsql-classic-sys package to
1721 its former nickname of clsql-classic
1723 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1724 * Version 2.10.5: SQLite backend now passes all result-types tests
1725 * clsql-sqlite.asd: Depend on clsql-uffi system
1726 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
1727 for efficiency and code reuse.
1728 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
1729 for better cross-implementation compatibility.
1731 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1733 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
1735 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
1736 bug on SBCL in result-field-names function as reported by Marcus Pearce
1737 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
1738 manifest in SBCL testing
1740 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1742 * sql/database.lisp: Conform more to CommonSQL output
1743 for STATUS command [Marcus Pearce]
1744 * sql/sqlite-sql.lisp: Rework to use result-types
1745 * sql/sqlite-api-clisp.lisp: Add compatibility layer
1746 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
1747 be cleaned up of most clisp reader conditionals
1748 * sql/test-init.lisp: Now run field type tests on sqlite
1751 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1753 * base/basic-sql.lisp: Set default value of :result-types
1754 to :auto for more CommonSQL conformance.
1755 * test/test-fdml.lisp: Add tests for numeric value of fields
1758 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1759 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
1760 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
1761 Return field names as second value for QUERY. This can be overridden
1762 for efficiency with the new keyword :FIELD-NAMES set to NIL
1763 in the QUERY invocation.
1764 * test/test-fdml.lisp: Add tests for new field-name feature
1765 * sql/metaclass.lisp: Remove old Lispworks cruft
1766 and replace it with invocation of new code in kmr-mop.lisp
1767 which actually works with Lispworks 4.2
1768 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
1770 * base/db-interface.lisp: Document the multiple values
1771 returned by DATABASE-ATTRIBUTE-TYPE so matches the
1772 undocumented CommonSQL behavior.
1773 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
1774 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
1775 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
1776 Implement CACHE-TABLE-QUERIES.
1777 * db-odbc/odbc-sql.lisp: Fix attribute-type function
1778 * test/test-fddl.lisp: Add tests for attribute type
1779 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
1781 * base/classes.lisp: Add attribute-cache slot to database clas
1782 * base/initialize.lisp: initialize-database-type now automatically
1783 loads database-type backend as needed.
1784 * base/test-init.lisp: Utilize new initialize-database-type functionality.
1785 * TODO: remove items done
1787 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1789 * sql/objects.lisp: remove create/drop-sequence-from-class.
1790 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
1791 * sql/objects.lisp: improved CommonSQL compatibility for
1792 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
1793 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
1794 * sql/generics.lisp: move generics from objects.lisp to here.
1796 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1797 * Version 2.9.6-pre1
1798 * db-mysql/mysql-client-info.lisp: Add client version 4.1
1800 * sql/sql.lisp: Make *default-database* the default for
1803 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1805 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
1807 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
1808 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
1809 on a metaclass specialized from standard-db-class.
1812 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1813 * Version 2.9.4: Multiple changes to support Allegro's "modern"
1814 lisp which uses a lowercase reader and has case-sensitive symbols
1815 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
1816 exposed by case-sensitive mlisp.
1818 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1819 * Version 2.9.3: All tests now pass on all platforms!
1820 * LATEST-TEST-RESULTS: New file with summary of test results
1821 * sql/generics.lisp: New file for generic function definitions.
1822 * test/test-init.lisp: Display names of skipped tests.
1823 Use unwind-protect to ensure disconnect
1824 * sql/objects.lisp: Change database-type to database-underlying-type
1825 so that actual database engine is properly identified
1826 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
1827 return an ISO timestring for compatibility with other drivers.
1828 Workaround bug in MyODBC for LIST-TABLE-INDEXES
1829 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
1830 returns floating-point values for floor and truncate operations
1831 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
1832 * tests/test-basic.lisp: Port to regression tester
1833 * test/test-init.lisp: Output to *report-stream*
1834 * docs/appendix.xml: Document ODBC and SQLite backends.
1835 * sql/classes.lisp: Make output-sql require a database parameter.
1836 This allows SQL generation to have the proper case to support
1837 the differences in case handling between CommonSQL API,
1838 Postgresql, MySQL, Oracle.
1840 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1841 * Version 2.9.2: Improvments in database capability introspection
1842 and querying. Support transactions in MySQL where available.
1843 All tests now pass on MySQL and SQLite in addition to postgresql
1844 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
1845 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
1846 DATABASE-LIST-SEQUENCES.
1847 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
1848 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
1849 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
1850 * tests/*.lisp: Check database capabilities and remove tests which
1851 the database backend does not support
1852 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
1853 controls whether InnoDB tables will be created when supported on
1854 the underlying MySQL server.
1856 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1857 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
1858 supported by all database backends (except AODBC since
1859 AODBC doesn't support index querying)
1860 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
1861 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
1862 to support index queries
1863 * db-aodbc/aodbc-sql.lisp: Filter driver manager
1864 "information_schema" tables from LIST-TABLES
1865 * tests/test-basic.lisp: Remove table after testing
1866 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
1867 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
1868 which gets the underlying type of database -- required
1869 when dealing with ODBC databases and want to query
1870 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
1871 as first database-backend specific feature. Is T on
1872 :mysql, NIL on other backends. Change DROP-TABLE to
1875 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1876 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
1878 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1880 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
1881 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
1883 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1884 * Version 2.8.0: New API function: LIST-DATABASES
1885 * base/utils.lisp: Fix command-output on CMUCL/SBCL
1886 * db-*/*-sql.lisp: Add new database-list function
1887 * base/database.lisp: Add new LIST-DATABASES command
1889 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1891 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
1892 * db-sqlite/sqlite-api-uffi.lisp: Print error string
1895 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1897 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
1900 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1902 * base/objects.lisp, base/classes.lisp: Patch
1903 for db-kind from Eduardo Munoz
1905 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1907 * base/basic-sql.lisp: Fix FLATP in QUERY
1909 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1910 * Version 2.7.3: Implement RECONNECT
1912 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1913 * Version 2.7.2: Fix ODBC on Lispworks Windows
1915 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1916 * Version 2.7.1: Fix for new ODBC backend.
1917 clsql-odbc now works on SBCL, CMUCL, OpenMCL
1918 in addition to AllegroCL and Lispworks.
1920 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1921 * Version 2.7.0: New backend: ODBC. Tests as
1922 well as AODBC backend on Allegro,Lispworks.
1923 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
1924 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
1925 to explicitly set ODBC2 support. Add BIGINT support.
1926 Add result-types support. Added SQLTables.
1927 Fix array type in fetch-all-rows. Make width
1928 changable by database or query.
1929 * base/utils.lisp: Add process functions
1930 * base/package.lisp: Export utils to CLSQL-BASE-SYS
1931 * db-aodbc: Implement sequence functions,
1932 database-list-tables, database-list-attributes
1933 * tests/utils.lisp: Add support for ODBC backend,
1934 rework READ-SPECS to use +all-db-types+
1935 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
1938 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1939 * Version 2.6.13. Requires UFFI version 1.4.9
1940 * db-odbc/*.lisp: Further porting.
1941 Pre-alpha code! But, basic query is now working.
1943 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1945 * base/transactions.lisp: Add quote for macro
1946 expansion of WITH-TRANSACTIONS [Time Howe]
1947 * db-sqlite/sqlite-sql.lisp: Support memory database
1948 in database-probe [Ng Pheng Siong]
1949 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
1950 The DBI layer is not finished.
1952 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1954 * sql/objects.lisp: add :root-class functionality for
1955 list-classes and add duration type support [Marcus Pearce]
1956 * db-odbc: Add mid-level [DBI] layer
1958 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1960 * db-aodbc: Add methods for generic functions, some are
1961 not yet implemented.
1962 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1965 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1967 * base/package.lisp: Add missing symbols [Marcus Pearce]
1969 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1971 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1972 * utils/time.lisp: Multiple fixes [Marcus Pearce]
1973 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1975 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1977 * sql/*.lisp: Remove schema versioning cruft
1979 * Makefile: Add classic subdirectory
1981 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1983 * sql/sql.lisp: Fix TRUNCATE command, bug reported
1985 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1986 specific and easy for an application to directly support.
1987 Idea from Marcus Pearce.
1988 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
1989 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1990 Keep low-level interface for future optimization
1991 supporting LIST-ATTRIBUTE-TYPES command.
1992 * Makefile: Add to db-sqlite and test directories.
1993 Include them in top-level Makefile
1995 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1997 * sql/relations.lisp: Add missing file
1998 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1999 * test/test-time.lips: New file [Marcus Pearce]
2001 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2003 * test/test-init.lisp: Properly handle object
2004 creation. Close database after use.
2005 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2006 function so can have methods specialized on
2007 table being a string or an sql-table object.
2008 * base/pool.lisp: Really fix CMUCL locking
2010 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2012 * test/test-init.lisp: Signal correctly
2013 if any errors occurred in any test suite
2014 * base/loop-extensions.lisp: Fix error
2015 introduced for Lispworks
2016 * base/pool.lisp: Fix locking for CMUCL
2017 * base/objects.lisp: Remove schema-version cruft
2019 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2020 * Version 2.6.2: New CLSQL API functions:
2021 DESCRIBE-TABLE AND TRUNCATE-DATABASE
2022 Currently, this are only supported on :postgresql
2023 and :postgresql-socket
2024 * base/database.lisp: automatically load ASDF system
2025 in CONNECT if not already loaded
2026 * base/tests.lisp: disconnect database after testing
2027 * base/*.lisp: Remove CLOSED-DATABASE type in favor
2028 of storing open/closed status in slot of database
2029 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2030 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2031 DATABASE-DESCRIBE-TABLE
2032 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2033 * base/conditions: Remove duplicate condition
2034 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2035 * base/recording.lisp: Add new :QUERY type for recording
2037 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2038 * Version 2.6.1: documentation fixes, merged
2039 classic-tests into tests
2041 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2042 * Version 2.6.0 released: New API functions
2043 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2044 * doc/ref_clsql.xml: Document new functions
2045 * base/database.lisp: New API functions
2046 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2047 * base/utils.lisp: Fix use of position-char.
2048 Add COMMAND-OUTPUT used by backends for running
2049 external programs. Fix parsing of SQL*NET-compatible
2051 * base/loop-extension.lisp: Simplify package use
2052 for Lispworks and Allegro
2053 * db-*/*-sql.lisp: Added DATABASE-CREATE,
2054 DATABASE-DESTORY, PROBE-DATABASE methods
2055 * tests/test-init.lisp, clasic-tests/tests.lisp:
2056 Use destroy-database and create-database to ensure
2057 testing with empty database
2058 * tests/test-connection.lisp: Add tests for
2059 parsing of string connection-specs
2060 * examples/run-tests.sh: New file for running
2061 test suite on all installed CL implementations
2062 * examples/clsql-tutorial.lisp: moved from
2064 * examples/dot.clsql-tests.config: New file
2065 giving an example test configuration
2066 * test/README: Add notes about rtest/ptester
2067 downloads and link to sample test configuration file.
2069 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2070 * Version 2.5.1 released:
2071 * tests/*.lisp: Rework so tests are run
2072 on multiple backends automatically based
2073 on the contents of ~/.clsql-tests.config.
2074 Reuse helper functions from classic-tests.
2075 * base/database.lisp: Support connection-spec
2076 as string for CONNECT
2077 * classic-tests/tests.lisp: Automatically
2078 load database backends as needed.
2080 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2081 * Version 2.5.0 released:
2082 All tests for CLSQL and CLSQL-CLASSIC pass
2084 * base/loop-extension.lisp: Add Lispworks
2085 loop-extension. Improve type specifying on
2088 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2089 * Version 2.4.2 released:
2090 loop extension now supported on Allegro, all
2091 CLSQL-TESTS pass on Allegro.
2092 * sql/metaclasses.lisp: Some optimization
2093 of compute-slots, be selective when
2094 ordered-class-slots needs to be called
2095 instead of class-slots
2096 * TODO: add URL with documentation on
2097 extending Lispworks LOOP form
2099 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2100 * Version 2.4.1 released: CLSQL-TESt suite passes
2101 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2102 Allegro and Lispworks pass all tests except for
2103 FDML/LOOP/1 since the loop extension have not yet
2104 been ported to those implementions.
2105 * sql/metaclasses.lisp: Added new slot to standard-db-class
2106 to hold user-specified type. OpenMCL adjustments to compensate
2107 for its type-predicate function. Since AllegroCL, Lispworks,
2108 and OpenMCL have different slot orders, added compute-slots
2109 and ordered-class-slots functions so their slot order matches
2112 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2113 * Version 2.4.0 released: All tests for clsql-classic now finish
2114 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2115 mysql, postgresql, postgresql-sockets, and sqlite backends.
2116 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2117 * classic-tests/tests.lisp: Fix package name of
2118 number-to-sql-string.
2119 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2120 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2121 now passes tests on all support UFFI platforms.
2122 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2124 * multiple: Finish renaming of :types keyword to :result-types for
2125 greater CommonSQL compatibility, including documentation
2126 * sql/basic-cmds.lisp: Remove obsolete file
2128 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2129 * Version 2.3.3 released
2130 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2131 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2132 * Fix for schema table [Marcus Pearce]
2133 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2134 * Fixes to test suite [Marcus Pearce]
2136 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2137 * db-*/*-sql.lisp: Ensure that expr in
2138 database-query-result-set is a string
2139 * Documentation integration
2141 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2142 * With for Marcus Pearce's excellent work, I've merged
2143 his clsql-usql port into clsql. The original clsql
2144 interface is available in the clsql-classic package.
2146 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2147 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2148 adding further support for providing backend for UncommonSQL
2150 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2151 * Integrate patch from Aurelio Bignoli for SQLite backend
2153 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2154 * Converted documentation to XML format
2155 * Made package installable with asdf-install
2157 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2158 * Add for-each-row macro
2160 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2161 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2163 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2164 * Add support for SBCL, OpenMCL, and SCL
2165 * Add *load-truename* to search path for clsql's
2168 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2169 * Rework use of file types in .asd files
2171 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2172 * Add .asd definition files for ASDF users
2174 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2175 * Restructure directories for Common Lisp Controller v3 compatibility
2177 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2178 * Also change case of logical host in loader files
2179 * Rework handling of logical pathnames
2181 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2182 * Change case of logical host
2184 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2185 * clsql-base.system: Added base package that can be used without
2186 high-level SQL commands. Used for adding support for UncommonSQL.
2187 * *.system: Reworked logical pathnames to be more consistent with
2188 Common Lisp Controller.
2189 * debian/*: Completed initial Debian support
2191 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2193 * sql/transactions.cl:
2194 Added transaction support. Functions/macros added:
2195 with-transaction, commit-transaction, rollback-transaction,
2196 add-transaction-commit-hook, add-transaction-rollback-hook
2198 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2201 * sql/functional.cl:
2202 Added pool support in connect/disconnect and with-database.
2203 Removed with-db-from-pool as with-database can now works with the connections pool
2205 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2210 Completed connection pool.
2211 Added with-db-from-pool macro.
2213 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2215 Added initial support for connection pool
2216 * sql/transactions.cl
2217 Took transaction code from UncommonSQL and integrated
2218 into CLSQL code. See file for disclaimer about why this
2221 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2222 * interfaces/postgresql/postgresql-sql.cl:
2223 Fix keyword typo in database-read-large-object
2224 * interfaces/mysql/mysql-loader.cl
2225 Fix loading on Win32
2226 * test-suite/tester-clsql.cl
2227 Fix type coercion of double-float
2229 Added debian docbook catalog, made it the default
2231 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2232 * interface/postgresql/postgresql-api.cl:
2233 * interface/postgresql/postgresql-sql.cl:
2235 * sql/db-interface.cl:
2236 Added large objects support for postgresql.
2238 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2239 * src/postgresql-socket/postgresql-socket-api.cl:
2240 Fixed find-foreign-function call, eliminated crypt warning
2242 Multiple improvements
2244 Moved functionality from low-level interfaces to this file
2245 via generic functions
2246 * test-suite/tester.cl:
2247 Added test with acl-compat-tester, moved others to old-tests
2250 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2252 Reinstated commented out sections
2253 * interfaces/postgresql/postgresql-loader.cl:
2254 * interfaces/mysql/mysql-loader.cl:
2255 Updated find-forieign-library support.
2256 * interfaces/postgresql-socket/postgresql-socket-package.cl:
2257 Fixed require form for Lispworks (Thanks Marc Battyani!)
2258 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2259 Fixed eval of def-function for crypt library.
2261 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2262 * Added interface to support USQL high-level rouines
2264 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2265 * Separated db-interface and conditions from sql/sql.cl
2266 * Improved foreign library loading testing
2267 * interfaces/postgresql/postgresql-api.cl
2268 Added PQisBusy function
2269 * interfaces/clsql-uffi/clsql-uffi.cl
2270 Fixed sign error for 64-bit processing
2272 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2273 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2274 Fixes to read-double-from-socket. Added 64-bit integer support.
2275 * test-suite/xptest-clsql.cl
2276 Added testint for 64-bit integers
2277 * Additons to installation docs
2279 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2280 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2281 Implemented direct socket reading for field type :double
2282 * Added usage information for :types to documentation
2283 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
2285 * interfaces/clsql-uffi: Created new directory. Split common
2286 interface routines that use UFFI into this package. Required
2287 especially to support direct reading of 64-bit integers into
2288 bignums and bypassing temporary strings.
2289 * test-clsql.cl: Updated to test postgresql-socket's
2290 read-double-from-socket function.
2291 * test-suite/xptest-clsql.cl
2292 Started work on test suite
2294 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2295 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
2296 mysql-fetch-field-direct Got :auto types working
2297 * interfaces/postgresql/postgresql-api.cl
2298 * interfaces/postgresql-socket/postgresql-socket-api.cl
2299 Added pgsql-field-types enum. Got :auto types working.
2301 Renamed :field-types to :types.
2303 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2304 * Added field-types parameter to query, database-query,
2305 database-query-result-set, map-query. Haven't added code
2306 to utilize field types, yet.
2307 * Changed postgresql-socket result set from cons to a structure
2308 * Updated test-clsql.cl to use automated testing with a config
2310 * Changed return types of field accessors from cstring to
2311 (* :unsigned-char). This prepares for being able to use specified
2312 type conversions when taking field data into lisp.
2313 * Added field-type processing for most interfaces. Not done yet.
2315 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2316 * doc/ref.sgml: Updated MAP-QUERY example to use
2317 *read-default-float-format* (John Foderaro)
2318 * Extensive work to foreign library loaders and .system files to
2319 check for successful loading of foreign libraries.
2320 * Modified test-clsql.cl to allow more modularity and
2321 automated testing in future release.
2322 * mysql/mysql-sql.lisp: Added field types
2324 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
2325 * mysql/mysql-sql.lisp:
2326 - Added support for Allegro CL and Lispworks using UFFI layer
2327 - Changed database-connect to use mysql-real-connect. This way,
2328 can avoid using double (unwind-protect)
2329 - Changed database-connect to have MySQL library allocate space
2330 for MYSQL structure. This will make the code more robust in
2331 the event that MySQL library changes the size of the mysql-mysql