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