1 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
3 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
4 disable wide characters for crypt salt sequence on SBCL, based
5 on patch from Lars Nostdal.
7 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
9 * sql/pool.lisp: Test pooled connection when popped from
10 the pool to ensure the connection still works. Currently, implemented
13 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
14 * db-mysql/Makefile: Add potential mysql directories
16 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
17 * sql/metaclasses.lisp: Remove usused saved-initargs
18 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
19 push search libraries)
21 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
22 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
23 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
24 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
25 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
26 on non-Lispworks platforms, the nickname POSTGRESQL will still be
27 available. Applications directly using low-level POSTGRESQL package
28 are recommended to use the new PGSQL name.
29 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
30 Apply patch from Edi Weitz to reduce compiler warnings.
32 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
34 * sql/expressions.lisp: Commit patch from Edi Weitz to
35 use *default-database* for SQL-OUTPUT if no database is
36 explicitly passed to function.
37 * uffi/clsql-uffi-loader.lisp: Change load order to first try
38 plain name/type before attempting user-specified paths (patch
40 * uffi/ptrbits.c: New file to return number of bits in an pointer
41 * uffi/Makefile: use intbits to name .so file based on bit size.
42 Build both 32-bit and 64-bit libraries on 64-bit platform.
44 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
46 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
49 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
51 * db-postgresql/postgresql-sql.lisp: Remove
52 uffi:convert-foreign-to-native wrapper since using cstring for
55 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
57 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
58 PQresultErrorField foreign function.
60 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
62 * doc/intro.xml: Update supported platforms.
63 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
64 changes from Andew Golding to use a more-specific error code
65 from PostgreSQL than the generic fatal error code of the result set.
67 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
68 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
69 readtable modifications
71 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
72 * sql/syntax.lisp: Check that original reader syntax functions
73 stored before trying to restore them.
75 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
76 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
77 display sql reader syntax.
79 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
80 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
81 to decide on 64-bit platform and check size of most-positive-fixnum instead.
82 Needed to support clisp amd64.
84 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
86 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
87 compatibile. Add warning for a metaclass condition that should
89 * sql/time.lisp: Fixed symbol case inconsistency causing problem
90 in AllegroCL's modern lisp. First sign of bug noted by
91 Joel Reymond on clsql-devel.
92 * clsql.asd: Make time.lisp depend on utils.lisp
94 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
95 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
96 *library-file-dir* to CLSQL's library path.
98 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
99 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
100 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
101 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
102 * Makefile.common: Add OS detection
103 * uffi/make.sh, db-mysql/make.sh: Remove files
104 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
105 Refactor to remove need to make.sh shell scripts.
106 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
107 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
108 package rather than CL-USER. Add support for ansi-loop on clisp.
109 * sql/ansi-loop.lisp: New file to support iteration on clisp.
110 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
111 longer exist in the mysql client library.
112 * doc/ref-fdml.lisp: Correct default field-type.
113 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
114 Fixed bug with noted with MySQL 5.0.24 and boolean values.
116 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
118 * sql/oodml.lisp: Remove high debugging level declaration
120 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
122 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
123 is always 1. Fixes problem noted with PostgreSQL 8.1.
125 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
127 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
128 lazily cache if pg_roles tables exist. Selectively use SQL from
129 Joel's previous patch if pg_roles table exists. Should now work
130 with both postgresql 7.4 and 8.x.
132 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
134 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
135 local initialization file
136 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
138 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
139 that generates incorrect integer return type
140 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
141 it fails on versions of postgresql that lack the pg_role table
143 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
145 * sql/transactions.lisp: Important typo fix from Alexey Antipov
146 for database-start-transaction
148 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
150 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
151 to close connection when failing to connect to database.
152 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
153 to avoid dropping system views.
154 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
155 a nil value [patch sponsored by Flektor]
156 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
157 for netbsd compilation
159 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
160 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
161 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
163 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
164 * db-postgresql-socket/postgresql-socket-api.lisp:
165 Apply patch from Marko Kocic adding the socket creation
166 function needed for CLISP.
168 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
169 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
170 * db-oracle/metaclasses.lisp: Patch from James Bielman for
171 checking slot constraints.
172 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
173 saved openmcl images (based on patch from James Bielman)
175 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
176 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
178 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
180 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
181 duration parsing and unparsing to include year and month.
182 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
183 improving library search on Windows platform.
184 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
185 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
187 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
189 * clsql-postgresql-socket.asd,
190 * db-postgresql-socket/postgresql-socket-package.lisp:
191 Use the cl-md5 package on all platforms. Based on report
194 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
196 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
198 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
200 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
201 fix accessor for new versions of SBCL
202 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
203 to improving parsing of time.
204 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
206 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
207 as noted by Russ Tyndall.
209 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
211 * sql/time.lisp: Commit patch from Aleksandar Bakic
212 to properly handle destructive flag
213 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
214 from Steven Harris for socket files with SBCL.
215 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
216 new connections added to the pool do not become the *default-database*
217 * sql/connect.lisp: Optionally set *default-database* for pooled
218 connection when make-default is generalized true.
220 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
222 * sql/expressions.lisp: Ensure table names are properly escaped
223 before comparing -- fixes bug reported by Asbjørn Bjørnstad
226 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
227 * sql/generic-postgresql.lisp: improved decoding of table attribute
228 parameters [from Vladimir Sekissov]
229 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
230 it's subclass to prevent adding standard-db-object to supers if
231 somebody in the path has it already when metaclass inherited from
232 standard-db-class. [from Vladimir Sekissov]
234 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
236 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
237 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
238 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
239 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
240 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
241 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
242 Commit patch from Dominic Robinson providing support for
244 * doc/csql.lisp: Fix typo in slot name
246 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
248 * sql/time.lisp: Commit patch from Aleksandar Bakic for
249 correct handling of decode-time usec value
250 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
251 correct the name of the shared library file.
253 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
255 * sql/metaclasses.lisp: Avoid calling change-class on
256 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
259 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
261 * sql/expressions.lisp: Patch from James Biel to add subselects
263 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
264 * Version 3.4.4 [ Requires UFFI 1.5.7+]
265 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
266 to fix lifetime of foreign strings for Oracle calls
268 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
270 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
271 to improve performance
273 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
275 * clsql-uffi.asd: Patch from James Biel improving loading
276 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
277 to support 64-bit lisps
279 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
281 * sql/expressions.lisp: Escape numbers to SQL strings
284 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
285 * Version 3.4: Add MySQL 5 support
286 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
287 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
288 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
290 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
291 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
293 * BUGS: Added report for update-object-joins by Aleksandar Bakic
295 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
296 * Version 3.3.4 [UFFI >= 1.5.5 needed]
297 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
298 to add missing #\' character.
299 * clsql.asd: Add support for CLSQLINIT environmental variable,
300 based on patch from Yaroslav Kavenchcuk. New version of UFFI
303 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
305 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
306 update-objects-joins when using the :target-slot attribute
308 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
310 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
311 as noted by Harald Hanche-Olsen.
312 * tests/test-syntax.lisp: Add test for multiple field group-by
314 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
316 * sql/time.lisp: Commit patch from Alan Shields to
317 display escape string on wall-time display only when *print-escape*
320 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
321 * sql/metaclasses.lisp: Commit patch from Will to
322 properly set db-reader slot in effective-slot-definition
323 * sql/expressions.lisp: Commit patch from Alan Shields
324 adding make-load-form for sql-relational-exp
325 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
326 adding support for new NUMBER type
328 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
330 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
331 * doc/ref-ooddl.xml: Documentation of new type
332 * notes/add-type-hints.txt: New file from Alan Shields
333 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
335 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
336 as noted by Francis Leboutte. Similar fix applied to db-mysql and
338 * sql/expressions.lisp: Allow string table names for output as
339 contributed by Francis Leboutte.
340 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
343 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
345 * doc/into.xml: Change download from ftp to http protocol
347 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
349 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
352 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
354 * db-oracle/oracle-sql.lisp: Add check for zero increment as
355 suggested by Edi Weitz. Add missing database-sequence-last function
356 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
357 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
358 stmthp object when query cursor is freed with OCI.
360 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
361 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
362 display search path when error occurs loading foreign library.
364 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
366 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
367 with changes to support case-sensitive lisp implementations. Add
368 paragraph on using /etc/clsql-init.lisp site initialization file.
369 * clsql.asd: Load file /etc/clsql-init.lisp, if it
370 exists, after package is loaded to set site-specific configuration
372 2005-06-24 Edi Weitz <edi@agharta.de>
373 * sql/db-interface.lisp: Added new special variable
374 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
376 * sql/package.lisp: Export these.
377 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
379 * db-mysql/mysql-loader.lisp: Changed order of libs.
381 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
382 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
383 * clsql-mysql.asd: Renamed clsql/mysql interface library from
385 * clsql-uffi.asd: Renamed clsql/uffi interface library from
387 * uffi/clsql_uffi.c: Renamed from uffi.c
388 * db-mysql/clsql_mysql.c: Renamed from mysql.c
389 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
390 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
391 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
392 absolute pathnames when searching for foreign libraries.
393 foreign library loading.
395 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
397 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
398 to support UTF-8 on sbcl unicode.
400 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
402 * sql/time.lisp: Fix bug in roll that caused failure in test suite
404 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
406 * sql/oodml.lisp: Properly handle when db-writer is NIL
408 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
409 * sql/expressions.lisp: Avoid using simple-string declaration when
410 a non-simple string may be encountered. [issue noted by
411 will@cesmail.net] Add a simple-string declaration for a local
414 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
415 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
416 a symbol as well as function to serve as a function designator
417 [issue noted by will@cesmail.net]
419 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
421 * sql/time.lisp: Fix error in submitted patch which caused error
422 in timestrings with 19 or less characters.
424 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
426 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
427 to fix read-socket-sequence on non-sb-unicode sbcl.
429 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
431 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
432 for fractional seconds which is required by PostgreSQL
433 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
435 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
436 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
438 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
440 * sql/syntax: Commit patch from Alan Shields to supress reader
441 macros when *read-supress* is T.
443 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
445 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
446 from Janis Dzerins to support unicode on SBCL
447 * sql/syntax: Commit patch from Alan Shields to improve reporting
448 of invalid syntax statements.
450 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
452 * db-mysql/mysql-sql.lisp: Add port to connection specification
453 based on patch from Dave Watson
454 * doc/appendix.xml: Document MySQL port parameter to connection spec
456 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
458 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
460 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
461 * sql/oodml.lisp: Add missing database argument [Patch from
464 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
465 * sql/oodml.lisp: Improve database priority in
466 update-records-from-instance [Patch from Walter C. Pelissero]
468 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
470 * sql/package.lisp: Export database-reconnect from clsql-sys
472 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
473 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
474 [Patch from Walter Pelissero]
476 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
477 * db-postgresql/postgresql-loader.lisp: Add additional
478 directories to Fink on darwin [patch from Cyrus Harmon].
480 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
482 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
483 is invoked [suggested by Alan Shutko].
484 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
485 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
486 to def-view-class [fix suggested by Fred Gilham].
488 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
489 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
491 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
492 * doc/*.xml: Fix spelling of Vladimir
494 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
495 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
496 now that LispWorks is an independant company [noted by
499 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
500 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
501 Better support for 64 bit environments
503 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
505 * sql/metaclass.lisp: Make t the default value of :set
506 [noted by Cyrus Harmon]
508 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
510 * uffi/clsql-uffi.lisp: Add support for unsigned integers
511 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
512 unsigned integers. Apply patch from Yannick Gingras to
513 implement database-sequence-last.
515 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
516 * doc/ref-fdml.lisp: Fix variable tag name to varname
517 [noted by Eduardo Munoz]
518 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
520 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
522 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
524 * sql/metaclass.lisp: Remove unnecssary (and runtime error
525 causing) change-class invocation when running on CLISP.
526 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
527 to fix structure name.
528 * sql/database.lisp: More specific error message with trying
529 to use a database value of NIL.
530 * sql/expressions.lisp: Accept a string for the table name
531 in (sql-output sql-delete database) [suggested by Ed Symanzik].
533 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
535 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
536 ignore columns which have been dropped.
537 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
538 Use sb-md5 package on SBCL, recommended by Chris Capel
540 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
541 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
542 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
543 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
545 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
546 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
548 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
549 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
550 contributed by Aurelio Bignoli
552 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
553 * sql/oodml.lisp: Commit patch from Walter Pelis
554 to use an object's database for a select on its slot.
556 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
557 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
558 Aurelio Bignoli to fix negative 64-bit integers
560 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
561 * db-mysql/mysql.c: Fix parameters in bind_param call
563 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
564 * uffi/clsql-uffi.lisp: Add support for :blob result-type
565 * db-mysql/mysql-sql.lisp: Add support for :blob
568 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
569 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
570 missing quotes for types in code that is still in development
571 (thanks to Joerg Hoehle)
573 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
574 * Version 3.0.8 released
575 * db-sqlite/sqlite-*.lisp: Apply patch from
576 Aurelio Bignoli with improvements
578 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
579 * multiple: Apply patch from Joerg Hoehle with multiple
582 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
583 * Version 3.0.7 released
584 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
585 Add support for mediumint.
586 * sql/metaclass.lisp: Rework CLISP MOP handling
587 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
589 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
590 * sql/metaclass.lisp: Support CLISP's attribute name
591 for the type field in direct class slots
593 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
594 * Version 3.0.6 released
595 * BUGS: New file. Document suspected SIGPIPE
596 interaction between SBCL and libpq used in
598 * doc/ref-fdml.lisp: Document the :caching and :refresh
599 keywords of the SELECT function.
600 * doc/ref-ooddml.lisp: Document the new *default-caching*
602 * sql/package.lisp: Export *default-caching*
603 * sql/oodml.lisp: Use *default-caching* to
604 control default caching behavior.
606 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
607 * Version 3.0.5 release
608 * doc/appendix.xml: Add note about loading Oracle8 version
609 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
610 data from David Young.
612 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
613 * doc/Makefile, doc/catalog-darwin.xml: Apply
614 patch from Cyrus Harmon for building docs on Mac OS X
615 * sql/package.lisp: Add new (pre-release) clisp MOP package
617 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
618 * Version 3.0.4 Release
619 * multiple: Remove superfluous quotes in UFFI def-type
620 and def-foreign-type forms.
622 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
623 * Version 3.0.3 Release
624 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
625 from Tagore Smith to call force-output after sending authentication
626 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
627 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
628 to a database of that type so that functions that indicate capabilities of
629 database are available.
631 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
632 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
634 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
635 * Version 3.0.2 Release
636 * TODO: Add note about ODBC on Windows
637 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
639 * db-odbc/odbc-ff-interface.lisp: Change the return type
640 of SQLSetEnvAttr to :short
642 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
643 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
644 slot of the employee View Class definition [reported by Franz Deuzer].
646 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
647 * Version 3.0.1 Release
648 * tests/test-init.lisp: Add second join class to employee-address
649 to test a class with two join slots.
650 * sql/oodml.lisp: Fix find-all function for a class with multiple
652 * TODO: Remove need to test/fix multiple join classes
654 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
655 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
656 from Jon Buffington for file locations on Darwin.
658 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
659 * sql/db-interface.lisp: Improve messages when functions
660 are passed a database object, but the method is not specialized
661 for that database type.
662 * sql/metaclasses.lisp: Fix inline declaration (reported by
665 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
666 * TODO: Add bug report about SQL generation with a table
667 containing two join slots.
668 * sql/oodml.lisp: Add optional size to VARCHAR type
670 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
671 * Version 3.0.0 Release
672 * sql/expressions.lisp: Change declaration that
673 caused error on openmcl
674 * db-aodbc/aodbc-sql.lisp: Fix storage location
675 of odbc connection. Specialize database-query since
676 dbi's :types keyword is different than generic-odbc's
677 :result-types keyword
678 * sql/db-interface.lisp: Add warnings for methods
679 not specialized by a db backends
680 * tests/test-fddl.lisp: Fix case of symbols to support
681 case-sensitive Allegro
682 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
683 * tests/test-init.lisp: Note that odbc driver for postgresql
684 doesn't properly handle table ownership
685 * LATEST-TEST-RESULTS: update with version 3.0.0
687 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
688 * sql/expressions.lisp: conditionalise escaping of backslash in
689 generated SQL strings on backend.
690 * tests/test-fdml.lisp: test for escaping of backslash.
691 * sql/oodml.lisp: minor tidying in FIND-ALL.
693 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
694 * NEWS: Initial 3.0 announcement draft
695 * README: Expand acknowledgements of incorporated projects
696 * CONTRIBUTORS: Further document Marcus Pearce contributions
698 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
699 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
700 to print floats with the exponent markers removed.
701 * tests/test-oodml.lisp: add tests for updating records with floats.
703 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
704 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
705 CommonSQL compatibility.
706 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
707 this column constraint syntax is not supported.
708 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
709 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
712 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
713 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
714 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
715 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
717 * doc/ref-oodml.xml: add examples for OODML.
718 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
720 * sql/metaclasses.lisp: update docstrings.
721 * tests/test-init.lisp: change :db-constraints for emplid to
722 (:not-null :unique) as a temporary test for multiple column constraints
724 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
725 return type of (SETF SLOT-VALUE-USING-CLASS).
726 * TODO, doc/TODO: remove items done.
729 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
730 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
732 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
734 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
735 * sql/expressions.lisp: reactivate caching of generated SQL strings.
736 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
737 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
738 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
739 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
740 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
741 sql/expressions.lisp.
742 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
743 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
744 * sql/generics.lisp: add docstrings.
746 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
748 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
749 code in favor of fixing UFFI with James Bielman's patch
751 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
753 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
756 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
757 * README, INSTALL: update URLs. Minor updates to descriptions.
758 * tests/README: remove stuff about editing contexts.
760 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
761 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
762 *default-string-length*
764 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
765 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
767 * tests/test-fddl.lisp: add tests for column and table constraints
768 in CREATE-TABLE. Add test for OWNER keyword parameter to
769 LIST-TABLES (assuming same underlying machinery in other FDDL
771 * tests/test-init.lisp: restrict above test to postgresql and oracle.
773 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
774 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
777 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
778 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
780 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
782 * doc/*.xml: documentation additionals and fixes so
783 that docbook passes xmllint.
785 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
787 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
788 to change escaping of single quotes. Mild optimizations
789 for escaped string output.
790 * doc/ref-ooddl.lisp: documentation additions
791 * doc/ref-oodml.lisp: Add purpose to functions
792 * TODO: Add need to test single quote escaping
794 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
795 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
796 * sql/ooddl.lisp: Added SMALLINT type
797 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
798 * db-mysql/mysql-objects.lisp: Added SMALLINT type
799 * sql/package.lisp: Export SMALLINT
800 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
803 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
804 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
805 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
806 View Class slot option.
807 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
808 slot option accepting a list of constraints [reported by Travis Cross].
809 * doc/ref-fddl.xml: add some examples of specifying column and
810 table constraints to the documentation for CREATE-TABLE.
811 * TODO: add note about adding tests for table/column constraints. Add
812 optimisation note about using cached attribute types in insert/update
815 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
816 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
817 features and so on the documentation for each backend.
818 * doc/TODO: remove items done.
819 * doc/ref-transaction.xml: add note in introduction about
820 autocommit mode as a difference from CommonSQL.
821 * doc/ref-syntax.xml: add notes about SQL syntax state functions
822 being macros in CLSQL. Add note about SQL operators which are
825 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
826 * Version 2.11.12 released
827 * doc/ref-recording.xml: document SQL I/O recording.
828 * doc/ref-prepared.xml: new file for documenting prepared statements.
829 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
831 * doc/ref-conditions.xml: complete documentation of condition system.
832 * doc/global-index.xml: add symbols from condition system and remove
833 those from LOB and prepared statement APIs.
834 * doc/ref-fdml.xml: complete documentation of FDML.
835 * doc/glossary.xml: add View Class.
836 * doc/TODO: remove items done.
837 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
838 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
839 additional slot accessors for condition classes.
841 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
842 * doc/ref-ooddl.lisp: Add documentation
843 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
844 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
845 * doc/oodml.lisp: Rename references to new name of
846 *DEFAULT-STRING-LENGTH*
848 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
849 * doc/ref-transaction.xml: document transaction handling.
850 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
851 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
852 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
853 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
856 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
857 * doc/ref-fdml.xml: document the FDML.
858 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
859 * sql/ooddl.lisp: moved *default-varchar-length* to here from
860 oodml.lisp and renamed to *default-string-length*
862 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
863 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
864 to allow specifying transactionless table creation
865 * doc/ref-oodml.lisp: Add new keyword to signature of
868 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
870 * sql/expressions.lisp: when removing duplicate table identifiers
871 in the FROM clause of a query, check both table name and alias
873 * sql/fdml.lisp: remove DESCRIBE-TABLE.
874 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
875 DATABASE-DESCRIBE-TABLE.
876 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
877 and LIST-TABLE-INDEXES.
878 * sql/generic-postgresql.lisp: add reader conditional #+nil for
879 DATABASE-DESCRIBE-TABLE and comment about its uses for
880 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
881 returning type info for all attributes.
882 Fix DATABASE-SEQUENCE-LAST.
883 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
884 LIST-INDEXES with additional keyword parameter :ON.
885 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
886 with LIST-INDEXES (with :ON parameter).
887 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
888 * doc/ref-connect.xml: minor tidying.
889 * doc/ref-fddl.xml: document the FDDL.
890 * doc/TODO: removed items done. Moved note about transaction handling
892 * TODO: move note about transaction handling to doc/TODO. Added
893 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
895 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
897 * sql/syntax.lisp: updated docstrings.
898 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
900 * sql/database.lisp: add docstrings for CREATE-DATABASE,
901 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
902 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
903 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
904 * doc/ref-connect.xml: document connection/initialisation.
905 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
906 * doc/TODO: remove items done.
907 * Makefile: add db-oracle to to SUBDIRS.
909 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
910 * sql/oodml.lisp: Add new serialization functions:
911 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
912 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
913 from a table that has more than one primary index.
914 * sql/conditions.lisp: Fix printing of closed-database error
916 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
918 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
919 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
921 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
922 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
923 of SQL-EXPRESSION from CLSQL-SYS.
924 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
925 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
926 * doc/Makefile: added Mandrake linux.
927 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
928 * doc/appendix.xml: fixed little typo (adsf).
929 * doc/glossary.xml: removed closed-database and note about
930 sql-expression, added some entries.
931 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
933 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
935 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
936 * multiple: Add generalized-boolean type as requested by
938 * TODO: Added need for test of generalized-boolean
940 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
941 * Version 2.11.7 released
942 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
943 for loading with clc-register-user-package. Remove personal
944 directory from path lisp.
945 * db-mysql/mysql-loader.lisp: Similar changes
947 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
948 * Version 2.11.6 released
949 * sql/oodml.lisp: Commit patch from Edi Weitz
950 to fix symbol writing/reading
951 * TODO: Add need for symbol slot test
953 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
954 * sql/package.lisp: remove duplicate export of
955 *CACHE-TABLE-QUERIES-DEFAULT*.
956 * doc/ref-*.xml, doc/global-index.xml: new files documenting
957 the CommonSQL compatible api.
958 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
959 reflect changes in return values of WITH-TRANSACTION.
961 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
962 * tests/README: Fix filename [reported by Bill Clementson]
963 * sql/transactions.lisp: Apply return value patch from
964 Edi Weitz for WITH-TRANSACTION
965 * tests/README: Remove ptester package requirement (as noted
968 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
969 * Version 2.11.5 released
970 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
971 Select connection-spec based on connection type. Bugs reported by
973 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
974 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
975 name on Windows, add \bin\ directory to search path
977 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
978 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
980 * sql/operations.lisp: substr now generates SUBSTR for use on
981 Oracle; added a new operator SUBSTRING for use elsewhere. minus
982 now generates MINUS for use on Oracle. Nvl signals an error if
983 not called with exactly 2 arguments. Add concat function for use
984 instead of the || operator on MySQL and Oracle.
985 * sql/syntax.lisp: changed internal symbol for the || operator to
987 * sql/expressions.lisp: removed redundant and unused functions
988 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
989 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
990 * sql/generics.lisp: removed generic function for
991 DATABASE-CONSTRAINT-DESCRIPTION (see above).
992 * tests/test-syntax.lisp: modified/added tests according to changes
993 in sql/operations.lisp.
994 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
996 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
997 and SQL-USERENV to the shared exports list. Removed
998 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
999 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1000 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1001 RECORD-SQL-RESULT from shared exports list.
1003 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1004 * db-postgresql/postgresl-sql.lisp: Avoid computing
1005 result-types lisp when nil result-types. Return only
1006 one value when field-types nil.
1007 * db-mysql/mysql-sql.lisp: Simple queries now
1008 working with prepared statements.
1010 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1011 * Version 2.11.4: MySQL 4.1 now passes all tests
1012 * sql/package.lisp: Add API for prepared statments.
1013 * sql/fdml.lisp: Change implicit flatp processing
1014 for string map-query for greater CommonSQL conformance.
1015 Add high-high API for prepared statements.
1016 * tests/test-basic.lisp: Add test for map-query and
1018 * sql/transactions.lisp: Change name/semantics of
1019 autocommit to set-autocommit.
1020 * sql/generic-postgresql.lisp: Add support for
1021 prepared statements.
1022 * tests/test-internal.lisp: New file
1023 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1024 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1025 Controller invocation.
1026 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1027 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1028 function contains a subselect.
1030 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1032 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1033 type (setf slot-value-using-class)
1034 * TODO: add not that need a test case for the above fix
1035 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1037 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1038 introduced in Oracle8. Leave older code selectable by a reader macro
1039 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1040 uses OCILogon and does not the more complex session management.
1042 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1043 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1044 * test/test-init.lisp: Add universal-time slot to person.
1045 * test/test-fddl.lisp: Add tests of universal-time slot
1046 * test/test-ooddl.lisp: Test universal-time slot in an object
1047 * TODO: Remove need for universal-time test
1048 * debian/rules, debian/control: Add cl-sql-oracle binary package
1049 * doc/appendix.xml: Add Oracle backend information
1050 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1051 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1052 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1053 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1054 for map-query to reflect changed in arguments to be CommonSQL compatible.
1055 Updated old clsql conditions to new CommonSQL compatible conditions.
1057 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1058 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1059 type. Added *default-varchar-length* rather than previous hard-coded
1060 varchar length. Remove 'simple-string and 'simple-base-string since they
1061 are subtypes of 'string.
1062 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1063 local hard-coded value.
1064 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1065 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1066 CHAR to lisp type character.
1067 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1068 * sql/operations.lisp: Add userenv
1069 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1071 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1072 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1073 * test/test-init.lisp: Add large table with bigint slot
1075 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1076 * Version 2.11.1 released: Much simpler Oracle client library loading.
1077 Now uses ORACLE_HOME environmental variable as well as tests default
1078 path for Oracle Instant Client.
1080 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1081 * Version 2.11.0 released: Full Oracle support. All tests pass
1082 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1083 * tests/test-init.lisp: capitalize odbc backend name in banner
1084 * CONTRIBUTORS: Add note about Marcus' excellent work
1085 * sql/oodml.lisp: Removed old stub function
1086 * clsql.asd: Use module names in current package rather than keyword package
1087 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1088 in setting sequence position. Make autocommits more efficient.
1089 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
1090 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1091 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1092 and read-sql-value for NUMBER and CHAR.
1093 * sql/base-classes.lisp: Add autocommit slot
1094 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1095 * doc/intro.xml: Add Oracle
1097 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
1098 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
1099 CLSQL-SIMPLE-WARNING with SQL-WARNING.
1100 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
1102 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
1103 * clsql.asd: reworked module structure in package definition and
1104 file names to better reflect component functionality.
1105 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
1106 exports list. Removed duplicate and obsolete exports. Exported
1107 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
1108 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
1109 according to whether they are specified by CommonSQL or CLSQL
1111 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
1113 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
1114 here from basic-sql.lisp.
1115 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
1116 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
1117 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1119 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
1120 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
1122 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1123 * Version 2.10.22 released
1124 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
1125 has reversed class slots, change the default for ordered-class-slots so that slots
1126 are now in the same order an in the def-view-class.
1127 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
1128 * test/test-fddl.lisp: Add two tests for mixed case names
1129 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
1130 for computed fields, this will require some adjustment to the test suite which
1131 in many cases expects integers.
1132 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
1134 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1135 * Version 2.10.21 released
1136 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
1137 db-odbc, and db-aodbc.
1138 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
1139 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
1140 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
1141 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
1142 sql/generic-odbc.lisp
1143 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
1144 Move common code to sql/generic-postgresql.lisp
1145 * sql/classes.lisp: honor case of string tables when outputting queries
1146 * sql/objects.lisp: Add database type to default database-get-type-specifier method
1147 * sql/sql.lisp: Add database type to default database-abort-transaction method
1148 * db-mysql/mysql-objects.lisp: New file
1149 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
1150 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
1152 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
1153 default db case for FDML/SELECT/25
1155 22 May 2004 Kevin Rosenberg
1156 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
1157 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
1158 and string identifiers with non-default case
1159 * sql/table.lisp: Don't convert string table name to a symbol.
1160 * sql/classes.lisp: Honor case of string identifiers
1161 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
1163 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
1164 of owner phrases. Obtain server and client versions.
1165 * db-oracle/oracle-objects.lisp: Fix type specifiers
1166 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
1167 * tests/test-init.lisp: Properly get username from Oracle connection-spec
1169 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1170 * sql/generics.lisp: reworked docstrings. Remove generics for
1171 ADD-TO-RELATION and REMOVE-FROM-RELATION.
1172 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
1173 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1174 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
1175 for CommonSQL compatibility. Remove ADD-TO-RELATION and
1176 REMOVE-FROM-RELATION.
1177 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
1178 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1179 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
1180 * sql/conditions.lisp: add documentation for conditions. Add
1181 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
1183 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1184 * sql/basic-sql.lisp: reworked docstrings.
1185 * sql/transactions.lisp: reworked docstrings.
1186 * sql/sql.lisp: reworked docstrings.
1187 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
1188 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
1189 * sql/database.lisp: reworked docstrings.
1190 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
1191 and FDML extensions and database extensions.
1193 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1194 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
1195 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
1197 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
1198 Oracle versions with the PURGE option required for drop table. This needs
1199 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
1201 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1202 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
1203 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
1204 * sql/table.lisp: reworked docstrings.
1205 * sql/objects.lisp: moved *default-update-objects-max-len* here from
1207 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
1208 DROP-VIEW and DROP-INDEX and the use of the :transactions and
1209 :constraints keyword args to CREATE-TABLE.
1210 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
1211 CommonSQL compatible with respect to column constraints.
1213 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1214 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
1215 Requires UFFI 1.5.0 or higher
1217 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1219 * sql/conditions.lisp: Fix cerror
1221 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1222 * Version 2.10.18 released: New condition hierarchy to be compatible
1223 with CommonSQL -- not backward compatible with previous CLSQL.
1224 * sql/db-interface.lisp: Add more default methods
1225 * sql/objects.lisp: Add explicit table name to order-by parameters
1226 in find-all when only one table to avoid selecting a duplicate row.
1227 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
1228 as previous logic was adding two fields (foo asc) to SELECT query.
1229 Make :result-types :auto be the default for object selections.
1230 Properly handle caching key when using multiple order-by with asc/desc
1232 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
1234 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1235 * sql/recording.lisp: reworked docstrings.
1236 * sql/syntax.lisp: reworked docstrings.
1237 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
1238 SQL syntax state functions being macros.
1240 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1241 * sql/package.lisp: Export initialize-database-type and
1242 *initialize-database-types* from CLSQL package.
1243 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
1244 remove old CLSQL conditions.
1245 * sql/loop-extensions.lisp: Make errors of type sql-user-error
1246 * */*.lisp: Convert to from old to new conditions
1248 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1249 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
1250 To handle this difference, will need to add a new database-drop-table
1252 * db-oracle/oracle-sql.lisp: Move server-version and
1253 major-version-number to database object to allow multiple connections
1254 to Oracle servers of different versions.
1256 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1257 * TODO: moved notes about backends to doc/TODO.
1258 * doc/TODO: added notes about backends and select extensions.
1259 * sql/base-classes.lisp: remove obsolete schema slot in database
1262 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1263 * db-oracle/oracle-api: Add OCIServerVersion
1264 * db-oracle/oracle-sql: Query and store server version on connect
1265 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
1266 function to handle OCI's lack of bigint support
1267 * test/test-basic.lisp: Separate bigint testing
1268 * test/test-utils.lisp: Add oracle to specs and list of backends
1269 * doc/TODO: New file
1270 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
1271 run-time instantiation of variables in reader macros.
1272 * TODO: Remove item already complete. Add note about
1275 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1276 * sql/syntax.lisp: added condition to the reader macro to treat [*]
1277 as a column identifier (rather than an operation) for CommonSQL
1279 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
1280 keword args to SELECT, [*] as column identifier, new MAP-QUERY
1281 behaviour and the ANY and ALL operators in subqueries.
1282 * tests/test-init.lisp: add set-operation and subquery tests to
1283 appropriate skip lists.
1284 * sql/objects.lisp: remove redundant and non CommonSQL compatible
1285 ORDER-BY-DESCENDING keyword argument for SELECT.
1286 * sql/classes.lisp: remove redundant and non CommonSQL compatible
1287 ORDER-BY-DESCENDING keyword argument for SELECT.
1288 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
1289 with object queries.
1291 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1292 * sql/db-interface.lisp: Add new db-type-has-union?
1293 since Mysql 3.23 does not support unions.
1294 * sql/test-init.lisp: Don't try union tests on database
1295 backends which do not support it.
1296 * db-oracle/*.lisp: initial port to UFFI
1297 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
1298 implement REFRESH for SELECT.
1299 * tests/test-oodml.lisp: Add tests for deferred retrieval,
1300 caching, refresh, and update-object-joins
1301 * tests/test-init.lisp: Add deferred-employee-address class
1303 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1304 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
1305 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
1306 ALL and EXISTS generate function expressions so they output the
1308 * sql/classes.lisp: SELECT now generates appropriate SQL when
1309 passed the SET-OPERATION and ALL keyword arguments.
1310 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
1311 accepts ordering constraints as pairs of the form (column direction)
1312 where direction may be :ASC or :DESC.
1313 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
1314 Correct tests for ANY, SOME, ALL and EXISTS.
1315 * tests/test-fdml.lisp: added test for COALESCE.
1316 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
1317 using funcall unless QUERY-EXPRESSION returns one column and its
1318 FLATP slot is not nil in which case apply is used.
1319 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
1321 * TODO: remove items done.
1322 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
1323 DATABASE-LIST-ATTRIBUTES.
1324 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
1325 results in DATABASE-LIST-ATTRIBUTES.
1327 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1328 * sql/classes.lisp: SELECT now accepts table identifiers as strings
1329 for CommonSQL compliance. Add support for qualified sql identifiers
1330 with aliased table names.
1331 * tests/test-fdml.lisp: added tests for table identifiers as strings
1332 in SELECT and for aliased definitions.
1333 * tests/test-syntax.lisp: added tests for alias definitions.
1335 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1336 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
1337 field-names set to nil.
1338 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
1339 with null attribute values.
1340 * sql/operations.lisp: modify SQL concatenation operator to accept
1341 unescaped || symbol.
1342 * sql/syntax.lisp: modify sql reader macro function to accept
1343 unescaped sql concatenation operator.
1344 * tests/test-fdml.lisp: unescape sql concatenation operator.
1345 * tests/test-syntax.lisp: unescape sql concatenation operator.
1346 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
1347 Note to add test for universal-time. Note about difference from
1348 CommonSQL in transaction handling.
1350 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1351 * tests/test-init.lisp: Add deferred-employee-address
1353 * tests/test-oodml.lisp: Add deferred retrieval testgs
1355 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1357 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
1358 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
1359 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
1360 * *: Fix minor style warnings
1361 * clsql-classic: Remove system and subdirectory
1362 * clsql-base: Remove system and subdirectory and
1363 fold into clsql system
1364 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
1365 as supported platform.
1367 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1368 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
1369 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
1370 Allegro 7.0beta AMD64
1371 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
1372 of ODBC longs since this type can vary on 64-bit platforms depending
1373 upon the compilation options of unixODBC.
1374 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
1375 structures found by testing with AllegroCL 7.0b AMD64.
1376 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
1377 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
1378 Initial caching support for SELECT
1379 * tests/test-oodml.lisp: Avoid using cache when testing select.
1380 * sql/kmr-mop.lisp: Explicitly check slot order and
1381 store as a cl:*feature*
1382 * sql/recording.lisp: Remove additional types to
1383 increase CommonSQL conformance.
1384 * tests/test-init.lisp: Change a :column attribute
1385 to test symbols as value
1386 * sql/relations.lisp: Remove functions since they don't support
1387 many to many relationships.
1388 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
1389 of add-to-relations function and replace with explicit field settings.
1390 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
1392 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1394 * LATEST-TEST-RESULTS: results with current version
1395 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
1396 since cmu19 has opposite order of class slots.
1397 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
1398 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
1400 * tests/test-init.lisp: Check test-database-underlying-type for
1403 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1404 * sql/operations.lisp: complete remaining operations for the sql
1405 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
1406 UNION, INTERSECT, BETWEEN.
1407 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
1408 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
1409 * tests/test-syntax.lisp: add tests for new operations.
1410 * tests/test-fdml.lisp: add tests for queries based on new operations.
1411 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
1412 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
1413 * TODO: removed entries done.
1415 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1416 * tests/benchmarks.lisp: Add immediate vs. deferred
1419 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1420 * Version 2.10.13: Now works on openmcl 0.14.2
1421 * sql/objects.lisp: Add :retrieval :immediate for
1423 * tests/test-init.lisp: Add non-index fields for testing
1424 join class employee-addresss
1425 * test/test-oodml.lisp: Add tests for retrieval immediate
1426 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
1427 values which are now listifed by openmcl 14.2.
1428 * sql/objects.lisp: more framework for supporing immediate retrieval
1430 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1431 * docs/intro.xml: Upload location of a README file
1432 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
1433 changing the type-specifier. Use a lisp type of (OR NULL FOO)
1434 for a specified-type of FOO unless :db-constraints :not-null.
1435 No need to specialize finalize-inheritance for openmcl.
1436 * tests/test-*.lisp: Rename fields so that joins occur on
1437 fields with different names. This ensures that join code is
1438 selecting the proper name.
1439 * test/test-init.lisp: Add :base-table for employee-address
1440 view class for testing.
1441 * sql/objects.lisp: Use view-table rather than name of table
1442 in a number of places to fix errors noted with using :base-table.
1444 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1445 * sql/objects.lisp: replace *update-records-on-make-instance* with
1446 *db-auto-sync* which also controls both automatic creation of
1447 new records on creation of new instance and updating of record
1448 fields on setting of instance slots (as suggested by Edi Weitz).
1449 * tests/test-init.lisp: replace *update-records-on-make-instance*
1450 with *db-auto-sync*.
1451 * sql/package.lisp: replace *update-records-on-make-instance*
1452 with *db-auto-sync*.
1453 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
1454 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
1455 and *default-database* in FIND-ALL.
1456 * sql/package.lisp: import time functions from CLSQL-BASE.
1457 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1458 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1459 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1460 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
1463 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1464 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
1465 now return a sql-object-query type rather than directly performing a query.
1466 This improves CommonSQL conformance.
1467 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
1468 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
1469 depend on sql-object-query-type.
1470 * sql/loop-extensions.lisp: Move from base package
1471 * classic/package.lisp: remove references to map-query and do-query
1473 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1474 * TODO: New section on optimizations, especially optimizing JOINs.
1475 * sql/objects.lisp: Have :target-slot return of list of lists rather
1476 than a list of cons pairs to be conformant with CommonSQL.
1477 Make :target-slot much more efficient by using a SQL inner join
1478 statement and just requiring one SQL query. Add :retrieval :deferrred
1479 to target-slot joins. Add placeholder for update-objects-join.
1480 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
1481 and process them for query output-sql.
1483 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1485 * base/basic-sql.lisp: Avoid multiple evaluation
1486 of query-expression in DO-QUERY
1487 * sql/objects.lisp: Make SELECT a normal function.
1488 SELECT now accepts type-modified database identifiers, such as
1489 [foo :string] which means that the values in column foo are returned
1490 as Lisp strings. Add new *update-records-on-make-instance* special
1491 variable controlling automatic creation of new instances. Add missing
1492 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
1493 * sql/packages.lisp: Export *update-records-on-make-instance*
1494 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
1496 * test/test-fdml.lisp: Add tests for type-modified
1497 database identifiers.
1498 * test/test-init.lisp: Stop using add-relation since implementing
1499 many-to-many joins. Use *update-records-on-make-instance*
1500 to automatically store records on instance creation. Add many-to-many
1501 employee-address view-class.
1503 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1505 * base/loop.lisp: Add object iteration. Use :result-type
1506 :auto for result-set. Remove
1507 duplicate (and non-correct) code for non-list variables by
1508 simply making an atom variable into a list.
1509 * sql/package.lisp: Remove unnecessary clsql-sys package
1510 and replace it with clsql.
1511 * sql/metaclasses.lisp: Properly store specified-type from
1512 direct-slot-definition and then store translated type in
1513 effective-slot-definition
1514 * sql/classes.lisp: Don't output type in sql-output
1515 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
1516 [foo :integer] as fields in SELECT.
1517 * sql/query.lisp: Set default for :result-types to :auto in
1519 * sql/objects.lisp: Use specified-type when invocating
1520 database-get-type-specifier. def-view-class macro now returns
1522 * base/basic-sql.lisp: Make :AUTO the default value for
1523 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
1524 * sql/objects.lisp: Add bigint type
1525 * test/tests-basic.lisp: Add tests for :result-types for
1526 MAP-QUERY and DO-QUERY
1527 * test/test-fdml.lisp: Add test for result-types in LOOP
1528 and also using single symbol rather than a list for variables.
1529 Add test that default :result-types is auto for FDML QUERY.
1530 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
1531 of SQL-IDENT-ATTRIBUTE.
1532 * test/test-oodml.lisp: Enable OO loop iteration test,
1533 modify it so it doesn't depend on boolean where.
1535 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1537 * sql/objects.lisp: added derived type specifier for universal time.
1538 * sql/package.lisp: added #:universal-time to clsql-sys exports.
1539 * tests/test-oodml.lisp: added test for translation of boolean slots
1540 in SELECT with object queries.
1542 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1543 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
1544 for odbc/postgresql backend.
1545 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
1546 it can handle NIL values from the ODBC driver
1547 * tests/benchmarks.lisp: New file with initial
1549 * sql/relations.lisp: fix to add subclassing support,
1550 minor optimizations [Edi Weitz]
1552 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1554 * base/conditions.lisp: Add *backend-warning-behavior*
1556 * db-postgresql-socket/postgresql-socket-sql.lisp:
1557 Honor value of *backend-warning-behavior*
1558 * tests/test-fdml.lisp: Remove test of raw boolean value
1559 since different backends handle this differently. Add
1560 test for :column attribute.
1561 * tests/test-oodml.lisp: Add tests for boolean slot value
1562 and for :void-value attribute
1563 * tests/test-init.lisp: Use *backend-warning-behavior*
1564 to suppress warnings from postgresql about implicitly
1565 creating primary key in tables. Add new address table.
1567 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1569 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
1570 result-types is :auto
1571 * sql/objects.lisp: Properly handled writing/reading Boolean
1572 values from SQL database when retrieving objects.
1573 * test/test-fdml.lisp: Add another test for boolean results
1574 * test/utils.lisp: Fix incorrect declaration
1576 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1578 * sql/generics.lisp: add generic function for SELECT.
1579 * sql/objects.lisp: make SELECT a method specialisation.
1580 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
1581 referred to are View Classes.
1582 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
1583 query-expression arg evaluates to a list, then we have an object
1585 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
1587 * TODO: remove items done and add a todo for SELECT.
1588 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
1590 * sql/sql.lisp: add :field-names arg to QUERY.
1591 * tests/test-fdml.lisp: minor rework to use :field-names arg to
1594 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1595 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
1596 or more View Classes.
1597 * sql/objects.lisp: make the :flatp argument to SELECT work with
1599 * sql/objects.lisp: make SELECT accept a :result-types argument
1600 (defaults to :auto) which is passed on to QUERY.
1601 * sql/objects.lisp: SELECT returns field-names as a second value.
1602 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
1603 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
1604 to SELECT and take only first value as appropriate.
1605 * tests/test-fdml.lisp: add two new tests for query result coercion
1606 and the field-names returned as a second value from SELECT.
1607 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
1609 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1610 * Version 2.10.6-pre1
1611 * sql/metaclasses.lisp: Add void-value slot
1612 * doc/csql.xml: Update def-view-class documentation
1613 * test/test-init.lisp: Change old :db-type to :db-kind.
1614 Remove old :nulls-ok attributes.
1615 * sql/objects.lisp: Add new universal-time and bigint
1616 types. Optimize reading of integers using parse-integer
1617 rather than read-from-string.
1618 * */*.lisp: Merge clsql-base-sys and clsql-base packages
1619 into clsql-base package
1620 * classic/sql.lisp: Move large object support into base, leaving
1621 classic without any functionality that is provided in the clsql
1623 * classic/package.lisp: Rename clsql-classic-sys package to
1624 its former nickname of clsql-classic
1626 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1627 * Version 2.10.5: SQLite backend now passes all result-types tests
1628 * clsql-sqlite.asd: Depend on clsql-uffi system
1629 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
1630 for efficiency and code reuse.
1631 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
1632 for better cross-implementation compatibility.
1634 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1636 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
1638 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
1639 bug on SBCL in result-field-names function as reported by Marcus Pearce
1640 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
1641 manifest in SBCL testing
1643 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1645 * sql/database.lisp: Conform more to CommonSQL output
1646 for STATUS command [Marcus Pearce]
1647 * sql/sqlite-sql.lisp: Rework to use result-types
1648 * sql/sqlite-api-clisp.lisp: Add compatibility layer
1649 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
1650 be cleaned up of most clisp reader conditionals
1651 * sql/test-init.lisp: Now run field type tests on sqlite
1654 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1656 * base/basic-sql.lisp: Set default value of :result-types
1657 to :auto for more CommonSQL conformance.
1658 * test/test-fdml.lisp: Add tests for numeric value of fields
1661 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1662 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
1663 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
1664 Return field names as second value for QUERY. This can be overridden
1665 for efficiency with the new keyword :FIELD-NAMES set to NIL
1666 in the QUERY invocation.
1667 * test/test-fdml.lisp: Add tests for new field-name feature
1668 * sql/metaclass.lisp: Remove old Lispworks cruft
1669 and replace it with invocation of new code in kmr-mop.lisp
1670 which actually works with Lispworks 4.2
1671 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
1673 * base/db-interface.lisp: Document the multiple values
1674 returned by DATABASE-ATTRIBUTE-TYPE so matches the
1675 undocumented CommonSQL behavior.
1676 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
1677 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
1678 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
1679 Implement CACHE-TABLE-QUERIES.
1680 * db-odbc/odbc-sql.lisp: Fix attribute-type function
1681 * test/test-fddl.lisp: Add tests for attribute type
1682 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
1684 * base/classes.lisp: Add attribute-cache slot to database clas
1685 * base/initialize.lisp: initialize-database-type now automatically
1686 loads database-type backend as needed.
1687 * base/test-init.lisp: Utilize new initialize-database-type functionality.
1688 * TODO: remove items done
1690 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1692 * sql/objects.lisp: remove create/drop-sequence-from-class.
1693 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
1694 * sql/objects.lisp: improved CommonSQL compatibility for
1695 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
1696 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
1697 * sql/generics.lisp: move generics from objects.lisp to here.
1699 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1700 * Version 2.9.6-pre1
1701 * db-mysql/mysql-client-info.lisp: Add client version 4.1
1703 * sql/sql.lisp: Make *default-database* the default for
1706 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1708 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
1710 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
1711 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
1712 on a metaclass specialized from standard-db-class.
1715 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1716 * Version 2.9.4: Multiple changes to support Allegro's "modern"
1717 lisp which uses a lowercase reader and has case-sensitive symbols
1718 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
1719 exposed by case-sensitive mlisp.
1721 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1722 * Version 2.9.3: All tests now pass on all platforms!
1723 * LATEST-TEST-RESULTS: New file with summary of test results
1724 * sql/generics.lisp: New file for generic function definitions.
1725 * test/test-init.lisp: Display names of skipped tests.
1726 Use unwind-protect to ensure disconnect
1727 * sql/objects.lisp: Change database-type to database-underlying-type
1728 so that actual database engine is properly identified
1729 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
1730 return an ISO timestring for compatibility with other drivers.
1731 Workaround bug in MyODBC for LIST-TABLE-INDEXES
1732 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
1733 returns floating-point values for floor and truncate operations
1734 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
1735 * tests/test-basic.lisp: Port to regression tester
1736 * test/test-init.lisp: Output to *report-stream*
1737 * docs/appendix.xml: Document ODBC and SQLite backends.
1738 * sql/classes.lisp: Make output-sql require a database parameter.
1739 This allows SQL generation to have the proper case to support
1740 the differences in case handling between CommonSQL API,
1741 Postgresql, MySQL, Oracle.
1743 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1744 * Version 2.9.2: Improvments in database capability introspection
1745 and querying. Support transactions in MySQL where available.
1746 All tests now pass on MySQL and SQLite in addition to postgresql
1747 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
1748 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
1749 DATABASE-LIST-SEQUENCES.
1750 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
1751 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
1752 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
1753 * tests/*.lisp: Check database capabilities and remove tests which
1754 the database backend does not support
1755 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
1756 controls whether InnoDB tables will be created when supported on
1757 the underlying MySQL server.
1759 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1760 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
1761 supported by all database backends (except AODBC since
1762 AODBC doesn't support index querying)
1763 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
1764 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
1765 to support index queries
1766 * db-aodbc/aodbc-sql.lisp: Filter driver manager
1767 "information_schema" tables from LIST-TABLES
1768 * tests/test-basic.lisp: Remove table after testing
1769 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
1770 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
1771 which gets the underlying type of database -- required
1772 when dealing with ODBC databases and want to query
1773 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
1774 as first database-backend specific feature. Is T on
1775 :mysql, NIL on other backends. Change DROP-TABLE to
1778 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1779 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
1781 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1783 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
1784 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
1786 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1787 * Version 2.8.0: New API function: LIST-DATABASES
1788 * base/utils.lisp: Fix command-output on CMUCL/SBCL
1789 * db-*/*-sql.lisp: Add new database-list function
1790 * base/database.lisp: Add new LIST-DATABASES command
1792 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1794 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
1795 * db-sqlite/sqlite-api-uffi.lisp: Print error string
1798 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1800 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
1803 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1805 * base/objects.lisp, base/classes.lisp: Patch
1806 for db-kind from Eduardo Munoz
1808 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1810 * base/basic-sql.lisp: Fix FLATP in QUERY
1812 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1813 * Version 2.7.3: Implement RECONNECT
1815 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1816 * Version 2.7.2: Fix ODBC on Lispworks Windows
1818 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1819 * Version 2.7.1: Fix for new ODBC backend.
1820 clsql-odbc now works on SBCL, CMUCL, OpenMCL
1821 in addition to AllegroCL and Lispworks.
1823 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1824 * Version 2.7.0: New backend: ODBC. Tests as
1825 well as AODBC backend on Allegro,Lispworks.
1826 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
1827 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
1828 to explicitly set ODBC2 support. Add BIGINT support.
1829 Add result-types support. Added SQLTables.
1830 Fix array type in fetch-all-rows. Make width
1831 changable by database or query.
1832 * base/utils.lisp: Add process functions
1833 * base/package.lisp: Export utils to CLSQL-BASE-SYS
1834 * db-aodbc: Implement sequence functions,
1835 database-list-tables, database-list-attributes
1836 * tests/utils.lisp: Add support for ODBC backend,
1837 rework READ-SPECS to use +all-db-types+
1838 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
1841 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1842 * Version 2.6.13. Requires UFFI version 1.4.9
1843 * db-odbc/*.lisp: Further porting.
1844 Pre-alpha code! But, basic query is now working.
1846 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1848 * base/transactions.lisp: Add quote for macro
1849 expansion of WITH-TRANSACTIONS [Time Howe]
1850 * db-sqlite/sqlite-sql.lisp: Support memory database
1851 in database-probe [Ng Pheng Siong]
1852 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
1853 The DBI layer is not finished.
1855 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1857 * sql/objects.lisp: add :root-class functionality for
1858 list-classes and add duration type support [Marcus Pearce]
1859 * db-odbc: Add mid-level [DBI] layer
1861 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1863 * db-aodbc: Add methods for generic functions, some are
1864 not yet implemented.
1865 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1868 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1870 * base/package.lisp: Add missing symbols [Marcus Pearce]
1872 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1874 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1875 * utils/time.lisp: Multiple fixes [Marcus Pearce]
1876 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1878 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1880 * sql/*.lisp: Remove schema versioning cruft
1882 * Makefile: Add classic subdirectory
1884 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1886 * sql/sql.lisp: Fix TRUNCATE command, bug reported
1888 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1889 specific and easy for an application to directly support.
1890 Idea from Marcus Pearce.
1891 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
1892 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1893 Keep low-level interface for future optimization
1894 supporting LIST-ATTRIBUTE-TYPES command.
1895 * Makefile: Add to db-sqlite and test directories.
1896 Include them in top-level Makefile
1898 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1900 * sql/relations.lisp: Add missing file
1901 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1902 * test/test-time.lips: New file [Marcus Pearce]
1904 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1906 * test/test-init.lisp: Properly handle object
1907 creation. Close database after use.
1908 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
1909 function so can have methods specialized on
1910 table being a string or an sql-table object.
1911 * base/pool.lisp: Really fix CMUCL locking
1913 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1915 * test/test-init.lisp: Signal correctly
1916 if any errors occurred in any test suite
1917 * base/loop-extensions.lisp: Fix error
1918 introduced for Lispworks
1919 * base/pool.lisp: Fix locking for CMUCL
1920 * base/objects.lisp: Remove schema-version cruft
1922 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1923 * Version 2.6.2: New CLSQL API functions:
1924 DESCRIBE-TABLE AND TRUNCATE-DATABASE
1925 Currently, this are only supported on :postgresql
1926 and :postgresql-socket
1927 * base/database.lisp: automatically load ASDF system
1928 in CONNECT if not already loaded
1929 * base/tests.lisp: disconnect database after testing
1930 * base/*.lisp: Remove CLOSED-DATABASE type in favor
1931 of storing open/closed status in slot of database
1932 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
1933 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
1934 DATABASE-DESCRIBE-TABLE
1935 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
1936 * base/conditions: Remove duplicate condition
1937 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
1938 * base/recording.lisp: Add new :QUERY type for recording
1940 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1941 * Version 2.6.1: documentation fixes, merged
1942 classic-tests into tests
1944 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1945 * Version 2.6.0 released: New API functions
1946 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
1947 * doc/ref_clsql.xml: Document new functions
1948 * base/database.lisp: New API functions
1949 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
1950 * base/utils.lisp: Fix use of position-char.
1951 Add COMMAND-OUTPUT used by backends for running
1952 external programs. Fix parsing of SQL*NET-compatible
1954 * base/loop-extension.lisp: Simplify package use
1955 for Lispworks and Allegro
1956 * db-*/*-sql.lisp: Added DATABASE-CREATE,
1957 DATABASE-DESTORY, PROBE-DATABASE methods
1958 * tests/test-init.lisp, clasic-tests/tests.lisp:
1959 Use destroy-database and create-database to ensure
1960 testing with empty database
1961 * tests/test-connection.lisp: Add tests for
1962 parsing of string connection-specs
1963 * examples/run-tests.sh: New file for running
1964 test suite on all installed CL implementations
1965 * examples/clsql-tutorial.lisp: moved from
1967 * examples/dot.clsql-tests.config: New file
1968 giving an example test configuration
1969 * test/README: Add notes about rtest/ptester
1970 downloads and link to sample test configuration file.
1972 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1973 * Version 2.5.1 released:
1974 * tests/*.lisp: Rework so tests are run
1975 on multiple backends automatically based
1976 on the contents of ~/.clsql-tests.config.
1977 Reuse helper functions from classic-tests.
1978 * base/database.lisp: Support connection-spec
1979 as string for CONNECT
1980 * classic-tests/tests.lisp: Automatically
1981 load database backends as needed.
1983 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1984 * Version 2.5.0 released:
1985 All tests for CLSQL and CLSQL-CLASSIC pass
1987 * base/loop-extension.lisp: Add Lispworks
1988 loop-extension. Improve type specifying on
1991 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1992 * Version 2.4.2 released:
1993 loop extension now supported on Allegro, all
1994 CLSQL-TESTS pass on Allegro.
1995 * sql/metaclasses.lisp: Some optimization
1996 of compute-slots, be selective when
1997 ordered-class-slots needs to be called
1998 instead of class-slots
1999 * TODO: add URL with documentation on
2000 extending Lispworks LOOP form
2002 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2003 * Version 2.4.1 released: CLSQL-TESt suite passes
2004 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2005 Allegro and Lispworks pass all tests except for
2006 FDML/LOOP/1 since the loop extension have not yet
2007 been ported to those implementions.
2008 * sql/metaclasses.lisp: Added new slot to standard-db-class
2009 to hold user-specified type. OpenMCL adjustments to compensate
2010 for its type-predicate function. Since AllegroCL, Lispworks,
2011 and OpenMCL have different slot orders, added compute-slots
2012 and ordered-class-slots functions so their slot order matches
2015 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2016 * Version 2.4.0 released: All tests for clsql-classic now finish
2017 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2018 mysql, postgresql, postgresql-sockets, and sqlite backends.
2019 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2020 * classic-tests/tests.lisp: Fix package name of
2021 number-to-sql-string.
2022 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2023 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2024 now passes tests on all support UFFI platforms.
2025 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2027 * multiple: Finish renaming of :types keyword to :result-types for
2028 greater CommonSQL compatibility, including documentation
2029 * sql/basic-cmds.lisp: Remove obsolete file
2031 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2032 * Version 2.3.3 released
2033 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2034 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2035 * Fix for schema table [Marcus Pearce]
2036 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2037 * Fixes to test suite [Marcus Pearce]
2039 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2040 * db-*/*-sql.lisp: Ensure that expr in
2041 database-query-result-set is a string
2042 * Documentation integration
2044 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2045 * With for Marcus Pearce's excellent work, I've merged
2046 his clsql-usql port into clsql. The original clsql
2047 interface is available in the clsql-classic package.
2049 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2050 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2051 adding further support for providing backend for UncommonSQL
2053 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2054 * Integrate patch from Aurelio Bignoli for SQLite backend
2056 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2057 * Converted documentation to XML format
2058 * Made package installable with asdf-install
2060 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2061 * Add for-each-row macro
2063 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2064 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2066 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2067 * Add support for SBCL, OpenMCL, and SCL
2068 * Add *load-truename* to search path for clsql's
2071 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2072 * Rework use of file types in .asd files
2074 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2075 * Add .asd definition files for ASDF users
2077 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2078 * Restructure directories for Common Lisp Controller v3 compatibility
2080 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2081 * Also change case of logical host in loader files
2082 * Rework handling of logical pathnames
2084 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2085 * Change case of logical host
2087 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2088 * clsql-base.system: Added base package that can be used without
2089 high-level SQL commands. Used for adding support for UncommonSQL.
2090 * *.system: Reworked logical pathnames to be more consistent with
2091 Common Lisp Controller.
2092 * debian/*: Completed initial Debian support
2094 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2096 * sql/transactions.cl:
2097 Added transaction support. Functions/macros added:
2098 with-transaction, commit-transaction, rollback-transaction,
2099 add-transaction-commit-hook, add-transaction-rollback-hook
2101 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2104 * sql/functional.cl:
2105 Added pool support in connect/disconnect and with-database.
2106 Removed with-db-from-pool as with-database can now works with the connections pool
2108 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2113 Completed connection pool.
2114 Added with-db-from-pool macro.
2116 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2118 Added initial support for connection pool
2119 * sql/transactions.cl
2120 Took transaction code from UncommonSQL and integrated
2121 into CLSQL code. See file for disclaimer about why this
2124 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2125 * interfaces/postgresql/postgresql-sql.cl:
2126 Fix keyword typo in database-read-large-object
2127 * interfaces/mysql/mysql-loader.cl
2128 Fix loading on Win32
2129 * test-suite/tester-clsql.cl
2130 Fix type coercion of double-float
2132 Added debian docbook catalog, made it the default
2134 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2135 * interface/postgresql/postgresql-api.cl:
2136 * interface/postgresql/postgresql-sql.cl:
2138 * sql/db-interface.cl:
2139 Added large objects support for postgresql.
2141 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2142 * src/postgresql-socket/postgresql-socket-api.cl:
2143 Fixed find-foreign-function call, eliminated crypt warning
2145 Multiple improvements
2147 Moved functionality from low-level interfaces to this file
2148 via generic functions
2149 * test-suite/tester.cl:
2150 Added test with acl-compat-tester, moved others to old-tests
2153 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2155 Reinstated commented out sections
2156 * interfaces/postgresql/postgresql-loader.cl:
2157 * interfaces/mysql/mysql-loader.cl:
2158 Updated find-forieign-library support.
2159 * interfaces/postgresql-socket/postgresql-socket-package.cl:
2160 Fixed require form for Lispworks (Thanks Marc Battyani!)
2161 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2162 Fixed eval of def-function for crypt library.
2164 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2165 * Added interface to support USQL high-level rouines
2167 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2168 * Separated db-interface and conditions from sql/sql.cl
2169 * Improved foreign library loading testing
2170 * interfaces/postgresql/postgresql-api.cl
2171 Added PQisBusy function
2172 * interfaces/clsql-uffi/clsql-uffi.cl
2173 Fixed sign error for 64-bit processing
2175 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2176 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2177 Fixes to read-double-from-socket. Added 64-bit integer support.
2178 * test-suite/xptest-clsql.cl
2179 Added testint for 64-bit integers
2180 * Additons to installation docs
2182 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2183 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2184 Implemented direct socket reading for field type :double
2185 * Added usage information for :types to documentation
2186 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
2188 * interfaces/clsql-uffi: Created new directory. Split common
2189 interface routines that use UFFI into this package. Required
2190 especially to support direct reading of 64-bit integers into
2191 bignums and bypassing temporary strings.
2192 * test-clsql.cl: Updated to test postgresql-socket's
2193 read-double-from-socket function.
2194 * test-suite/xptest-clsql.cl
2195 Started work on test suite
2197 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2198 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
2199 mysql-fetch-field-direct Got :auto types working
2200 * interfaces/postgresql/postgresql-api.cl
2201 * interfaces/postgresql-socket/postgresql-socket-api.cl
2202 Added pgsql-field-types enum. Got :auto types working.
2204 Renamed :field-types to :types.
2206 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2207 * Added field-types parameter to query, database-query,
2208 database-query-result-set, map-query. Haven't added code
2209 to utilize field types, yet.
2210 * Changed postgresql-socket result set from cons to a structure
2211 * Updated test-clsql.cl to use automated testing with a config
2213 * Changed return types of field accessors from cstring to
2214 (* :unsigned-char). This prepares for being able to use specified
2215 type conversions when taking field data into lisp.
2216 * Added field-type processing for most interfaces. Not done yet.
2218 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2219 * doc/ref.sgml: Updated MAP-QUERY example to use
2220 *read-default-float-format* (John Foderaro)
2221 * Extensive work to foreign library loaders and .system files to
2222 check for successful loading of foreign libraries.
2223 * Modified test-clsql.cl to allow more modularity and
2224 automated testing in future release.
2225 * mysql/mysql-sql.lisp: Added field types
2227 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
2228 * mysql/mysql-sql.lisp:
2229 - Added support for Allegro CL and Lispworks using UFFI layer
2230 - Changed database-connect to use mysql-real-connect. This way,
2231 can avoid using double (unwind-protect)
2232 - Changed database-connect to have MySQL library allocate space
2233 for MYSQL structure. This will make the code more robust in
2234 the event that MySQL library changes the size of the mysql-mysql