1 2012-06-25 Russ Tyndall <russ@acceleration.net>
2 * sql/util.lisp, sql/metaclasses.lisp
3 Dequote database-identifiers if needed (passed a quoted symbol)
4 Metaclass args come through unquoted, so this eases interactions
7 2012-06-22 Russ Tyndall <russ@acceleration.net>
8 * sql/metaclasses.lisp: Changed compute-effective-slot-definition
9 to correctly copy the autoincrement-sequence slot to the ESD
10 previously it was being skipped (seemingly by accident). Thanks
11 to flip214 on #lisp for the bug report
13 2012-04-26 Kevin Rosenberg <kevin@rosenberg.net>
14 * Version 6.2 released: thanks to all the contributors!
16 2012-04-25 Nathan Bird <nathan@acceleration.net>
18 * doc/threading-warnings.txt: Adding some notes from J.T.Klein
19 about the current state of thread-safety in clsql. This should be
20 incorporated into the main docs at some point.
22 2012-04-25 Russ Tyndall <russ@acceleration.net>
23 * sql/expressions.lisp (output-sql): on rendering update/insert
24 expression values, ensure that *in-subselect* is bound to T
25 so that the values will be correctly paren delimited
27 2012-04-24 Nathan Bird <nathan@acceleration.net>
29 * sql/expressions.lisp (output-sql): on mysql CREATE TABLE
30 statements use 'ENGINE=innodb' instead of 'Type=InnoDB'. This has
31 apparently been preferred since mysql 4.1 and mysql 5.5 removed
32 type as a valid keyword.
34 2012-03-28 Russ Tyndall <russ@acceleration.net>
36 * sql/sequences.lisp: [A Patch FROM 2011-07-28 changed sequences.
37 They were previously prefixed with _CLSQL_SEQ_ but are now
38 suffixed with _CLSQL_SEQ. This is likely to break existing
39 implementations using the default sequence names
41 setting *old-sequence-names* to T, should force using the older
44 2012-03-27 Ryan Davis <ryan@acceleration.net>
46 * sql/expressions.lisp: Fixed bug with subqueries in the where
47 clause of update-records and delete-records generating invalid
48 SQL. Previously subselects in where clauses would not have enough
49 parentheses, for example: "WHERE Id IN SELECT foo_id FROM bar"
50 vs. "WHERE Id IN (SELECT foo_id FROM bar)"
51 * tests/test-syntax.lisp: Added tests for using subqueries in the
52 where clause in update-records and delete-records. Moved asserts
53 in the test-output-sql/sql-ident-table function into the standard
55 * doc/appendix.xml: added :connection-string to the information on
56 ODBC connection specs, and added example code connecting to ODBC
59 2012-01-05 Nathan Bird <nathan@acceleration.net>
61 * db-odbc/odbc-dbi.lisp: handle sql decimal type in the same way
62 as numeric type-- read into a double float.
64 2011-01-04 Russ Tyndall <russ@acceleration.net>
67 Fixed bug reported by JTK related to the not-null sql-expression
68 especially as used in conjunction with the is operator.
70 Made null called with more than one argument throw an exception
71 instead of silently discarding all arguments past the first
73 2012-01-04 Nathan Bird <nathan@acceleration.net>
75 * db-odbc/odbc-api.lisp (%sql-driver-connect): in the call to
76 odbc's SQLDriverConnect default the WindowHandle argument to a null ptr so
77 that connecting with :connection-string will work in the default
78 case of SQL_DRIVER_NOPROMPT.
80 I.e. you can now do things like:
81 (clsql:connect '("DsnName" "UserName" "" :connection-string
82 "DRIVER={FreeTDS};SERVER=...;DATABASE=...;UID=...;PWD=...;PORT=1433;TDS_Version=8.0;APP=clsql")
85 I believe the DsnName and Username at that point are only used when
86 printing the connection information.
88 2011-12-20 Kevin Rosenberg <kevin@rosenberg.net>
90 * db-oracle/oracle.lisp: Typo correction (Elias Martenson)
92 2011-12-19 Kevin Rosenberg <kevin@rosenberg.net>
94 * db-oracle/oracle.lisp: Change length function to
95 uffi:foreign-string-length to handle foreign encodings.
96 Thanks to Elias Martenson.
98 2011-11-28 Russ Tyndall <russ@acceleration.net>
99 * db-odbc/odbc-api.lisp, tests/test-time.lisp
101 In ODBC backend, avoid going through the common lisp
102 universal-time type (because it lacks support for historic dates)
104 *time-conversion-function* renamed to *time-format*
106 Patch from: Francisco Vides Fernandez
108 2011-10-18 Russ Tyndall <russ@acceleration.net>
109 * db-odbc/odbc-api.lisp
111 Added type specifier so MSSQL nvarchar fields can make it through
113 2011-09-12 Russ Tyndall <russ@acceleration.net>
114 * sql/fddl.lisp sql/generic-postgres.lisp db-mysql/mysql-sql.lisp
115 sql/generic-odbc.lisp sql/odbc-api.lisp sql/odbc-dbi.lisp
117 Fix bugs in list-attribute(s|-types) where passing an escaped,
118 instead of unescaped column name, caused these functions to return
119 less data than they should have.
121 2011-08-03 Kevin Rosenberg <kevin@rosenberg.net>
122 * CLSQL 6.0.0 released
124 2011-07-28 Russ Tyndall <russ@acceleration.net>
126 * db-postgresql-socket3/: Added a backend that utilized postgres
127 socket api version 3. Uses the cl-postgres project (from
128 postmodern) to handle this. Allows use of parameterized /
129 prepared queries using clsql:command-object
131 * sql/{expressions,fddl, generic-postgresql, ooddl}.lisp:
132 Change how database identifiers are emitted to hopefully make this
133 less brittle, and more easily intuitable.
135 Previously every code path that wanted to emit a
136 database identifier was responsible for coercing what was provided
137 into a correctly escaped string. Sometimes two or three functions
138 in a row were trying to correctly quote and output that string. I
139 have tried to centralize this type coercion and logic into a
142 everything should now call (escaped-database-identifier thing)
143 immediately before splicing a database identifier into string being
146 * sql/oodml.lisp: added method choose-database-for-instance, which
147 allows overriding which database connections are used based on
148 object type. Can be used to prevent connection conflicts in
149 multi-threaded environments
151 * sql/syntax.lisp: [foo bar] and [foo.bar] read into the same
152 clsql expression now (they used to be output the same, but after
153 the above database-identifier change, they were output separately
155 * test/: Better, more tests, better type coercion in tests and
156 throughout (%get-int)
158 [edit 2012-03-28 - RT]
159 * sql/sequences.lisp: Sequences were previously prefixed with
160 _CLSQL_SEQ_ but are now suffixed with _CLSQL_SEQ. This is likely
161 to break existing implementations using the default sequence names
163 setting *old-sequence-names* to T, should force using the older
167 2011-07-16 Kevin Rosenberg <kevin@rosenberg.net>
168 * Version 5.4.0 release
170 2011-06-27 Nathan Bird <nathan@acceleration.net>
171 * db-odbc/: memory management improvements: leak slower
172 * MSSQL: TOP + DISTINCT work together
174 2011-06-20 Nathan Bird <nathan@acceleration.net>
176 * sql/time.lisp: Handle parsing already parsed objects.
177 * sql/oodml.lisp: raise exception if we generate an update with no
178 where clause; incorporate Ryszard Szopa's patch for functional
179 expressions in :order-by
180 * sql/expressions.lisp: (listify nil) => nil instead of (nil).
181 * db-odbc/: bugfixes for working with older versions of FreeTDS;
182 support for bigints that works on mssql and postgres
183 * MSSQL improvements: use top instead of limit, IDENTITY can be a
184 column constraint, clsql:date becomes 'smalldatetime'
186 2011-06-20 Nathan Bird <nathan@acceleration.net>
189 * db-postgresql-socket/postgresql-socket-api.lisp: Addendum
190 to Otto Diesenbacher's patch that had a spurious write a 0
191 byte (to terminate string) that should have been just CCL.
193 2011-06-12 Kevin Rosenberg <kevin@rosenberg.net>
195 * db-postgresql-socket/postgresql-socket-api.lisp:
196 Patch from Otto Diesenbacher for UTF8 encoded strings
197 for CCL. FIXME: The best patch would be to use the
198 user-set encoding from the database object and use
199 UFFI's encoding strings to/from octet vectors rather
200 than SB-UNICODE and CCL specific code in this file.
202 2011-04-21 Kevin Rosenberg <kevin@rosenberg.net>
203 * sql/generics.lisp: Add defgeneric for new
204 database-last-auto-increment-id
206 2011-04-01 Kevin Rosenberg <kevin@rosenberg.net>
208 * db-mysql/mysql-client-info.lisp: Add recognition of
209 version 6 of MySQL client library.
210 * sql/metaclass.lisp: Fix the fix in the reader conditional
212 2011-03-30 Kevin Rosenberg <kevin@rosenberg.net>
214 * sql/metaclasses.lisp: Fix previous patch to work
217 2011-03-29 Kevin Rosenberg <kevin@rosenberg.net>
219 * sql/metaclasses.lisp: Apply one-line patch to fix
220 for newer SBCL (thanks to Nikodemus Siivola)
221 * many_files: Applied multiple patches from Holger Schauer
222 to improve autoincrement capability.
224 2010-10-24 Kevin Rosenberg <kevin@rosenberg.net>
226 * db-odbc/odbc-api.lisp: Change from SBCL-specific
227 to UFFI version of octets-to-strings. Reported by
228 Daniel Brunner <daniel@dbrunner.de>
229 * sql/oodml.lisp: Apply patch from Rupert Swarbrick
230 <rswarbrick@gmail.com>: Fix behaviour with auto-inc
232 * sql/expressions.lisp, tests/test-syntax.lisp: Apply
233 patch from Russ Tyndall to quote identifiers with space
234 or special character.
236 2010-09-20 Kevin Rosenberg <kevin@rosenberg.net>
238 * sql/{pool,database}.lisp: Pass encoding argument to
239 connections made from pool and with reconnect.
241 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
243 * db-odbc/odbc-{api,dbi}.lisp: Commit patch from
244 Memet Bilgin to fix issue with unicode and ODBC.
246 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
248 * uffi/clsql-uffi.lisp: Commit patch from JT Klein fixing
249 invocation of uffi:convert-from-foreign-string macro. When
250 time allows, I'll investigate changing UFFI's macro to
251 a function call and then revert this patch.
253 2010-06-15 Kevin Rosenberg <kevin@rosenberg.net>
255 * clsql-{uffi,mysql}.asd: Modify operation-done-p functions
256 to guard against change introduced in new ASDF traversing.
258 2010-04-20 Kevin Rosenberg <kevin@rosenberg.net>
259 * Version 5.1.0 [DEPENDENCY UPGRADE: UFFI 2.x needed]
260 * clsql-uffi.asd: Depend on UFFI version >= 2.0
261 to support foreign encoding of strings.
263 2010-04-16 Kevin Rosenberg <kevin@rosenberg.net>
265 * db-postgresql.lisp, sql/fddl.lisp: Fix typos [Thanks to
267 * sql/metaclasses.lisp: Work around type-check-function being set
268 during defclass expansion in SBCL [Thanks to Walter C. Pelissero]
269 * uffi/clsql-uffi.lisp: In call to uffi:convert-from-foreign-string,
270 Set null-terminated-p to T when length not specified.
271 [Thanks to Walter C. Pelissero]
273 2010-03-21 Kevin Rosenberg <kevin@rosenberg.net>
275 * sql/fdml.lisp: Fix DO-QUERY to actually return the last value of
278 2010-03-02 Nathan Bird <nathan@acceleration.net>
279 * doc/: Added a README on how to build doc; now builds on Ubuntu.
280 * sql/oodml.lisp: READ-SQL-VALUE now has explicit method for
281 handling double-floats and the default method will no longer
282 attempt to convert values that have already been converted.
283 * sql/syntax.lisp: Introduce file-enable-sql-reader-syntax which
284 enables the syntax for the scope of the file without trying to
285 keep track of the current syntax state.
286 * sql/pool.lisp: Introduce
287 clsql-sys:*db-pool-max-free-connections* which is a heuristic
288 threshold for when to disconnect a connection rather than
289 returning it to the pool.
290 * sql/pool.lisp: Check connections for validity before returning
293 2010-03-01 Kevin Rosenberg <kevin@rosenberg.net>
294 * db-mysql/mysql-api.lisp: Remove spurious enumeration
296 2010-02-16 Kevin Rosenberg <kevin@rosenberg.net>
298 * db-mysql/mysql-api.lisp: Fix mysql_options UFFI parameter list
299 * doc/ref-connect.xml: Document the MySQL options parameter as
300 part of the connection-spec.
302 2010-02-15 Kevin Rosenberg <kevin@rosenberg.net>
303 * db-mysql/mysql-{api,sql}.lisp: Support sending options
304 to MySQL using mysql_options, which occurs between the API calls
305 of mysql_init and mysql_real_connect.
307 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
309 * multiple-files: Further internationalization. Change
310 UFFI:CONVERT-RAW-FIELD and UFFI:CONVERT-FROM-FOREIGN-STRINGS
311 invocations to use the foreign character set encoding of the
312 database object. Requires UFFI v.1.8.6
313 * Makefile.common: Fix OS_DARWIN64 setting
315 2010-02-11 Nathan Bird <nathan@acceleration.net>
316 * MSSQL: better support for fddl 'date type.
318 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
319 * Makefile.common, uffi/Makefile, db-mysql/Makefile:
320 Better support OS X Snow Leopard by building universal
321 (x86_64,i386) dylib bundles
323 2010-02-08 Kevin Rosenberg <kevin@rosenberg.net>
325 * sql/database.lisp: Fix missing slot-accessor
326 (Thanks to Stelian Ionescu)
327 * sql/generics.lisp: Add missing keyword to defgeneric
328 (Thanks to Stelian Ionescu)
330 2010-02-07 Kevin Rosenberg <kevin@rosenberg.net>
332 * sql/{base-classes,database}.lisp: Add encoding slot for
334 * db-mysql/mysql-sql.lisp: Use UFFI:FOREIGN-ENCODED-OCTET-COUNT.
335 Requires UFFI version 1.8.2 or above.
337 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
338 * Version 5.0.0: First release of CLSQL to formally and
339 consistently support non-ASCII strings with encoding of external
340 formats for SQL strings. UFFI version 1.8.1 is higher is required.
342 This change may introduce some differences in string handling for
343 people who are using non-ASCII encoded characters. Thus, because
344 of the risk of BACKWARD INCOMPATIBILITY, the major version number
345 was incremented with this release.
347 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
348 * tests/test-i18n.lisp: Bind UFFI:*DEFAULT-EXTERNAL-FORMAT*
349 for testing multibyte encodings.
350 * uffi/clsql-uffi.lisp: Changes for UFFI 1.7.4's new support
351 for encoding foreign strings with a specified external format.
353 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
354 * sql/metaclasses.lisp: If no declared slot type in
355 compute-lisp-type-from-specified-type, then use t as lisp type.
356 Issue noted when testing Clozure CL 1.4.
358 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
359 * tests/test-init.lisp: Turn off the benign console notices for
362 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
363 * clsql-test.asd, tests/{test-i18n,test-init}.lisp:
364 Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
365 not present in cl:*features*. This requires UFFI 1.7.2 or above.
367 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
368 * sql/utils.lisp: Reading #\no-break_space causes an
369 error for non-unicode SBCL. Conditionalize read of
370 #\no-break_space for non-unicode SBCL and 8-bit string
373 2010-02-03 Kevin Rosenberg <kevin@rosenberg.net>
374 * tests/test-init.lisp: Add *test-report-width* variable
375 and word-wrap skipped test reason field.
377 2010-01-29 Kevin Rosenberg <kevin@rosenberg.net>
379 * clsql-cffi.asd: New file that causes CLSQL to use
380 CFFI-UFFI-COMPAT library rather than UFFI. Perform 'asdf:load-op
381 on CLSQL-CFFI rather than CLSQL system to use CFFI-UFFI-COMPAT.
383 2010-01-29 Nathan Bird <nathan@acceleration.net>
384 * tests/*.lisp: A lot more tests and test setup tweaks.
385 * sql/expressions.lisp: output-sql on sql-relational-exp does
386 better arity checking now. (apply #'sql-and some-list) gives
389 29 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
390 * sql/oodml.lisp: Fix for UPDATE-RECORD-FROM-SLOTS for normalized
393 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
395 * Change "normalise" from British spelling for consistency with
396 other American spellings in CLSQL.
398 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
399 * db-mysql/Makefile: Add directory for Fedora 11/12 on 64-bit
400 platform (Thanks to Michael Pheasant) and remove a 32-bit directory
402 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
404 * sql/utils.lisp: Ensure Lispworks 6 lock is created in sharing mode
406 20 Jan 2009 Nathan Bird <nathan@acceleration.net>
408 * Rewrite tests to use datasets
410 07 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
411 * sql/utils.lisp: Changes to support Lispworks 6
413 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
415 * doc/ref-ooddl.lisp: Add needed CDATA escapes
416 * doc/clsql.pdf, doc/html.tar.gz: Build new manuals with
417 normalized view classes.
419 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
420 Large patch from Thijs Oppermann <thijso+clsql@gmail.com> to add
421 support for normalized view classes. When having view class that
422 inherit from others, CLSQL by default builds tab all the columns
423 from the parent in the child. This patch is meant to normali so
424 that a join is done on the primary keys of the concerned tables to
427 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
428 * sql/time.lisp: Patch from Oleg Tihonov to SYNTAX-PARSE-ISO-8601
429 to properly parse fractions of seconds.
431 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
432 * sql/time.lisp: Patch from Oleg Tihonov to roll function
433 to properly use USEC argument.
435 21 Nov 2009 Kevin Rosenberg <kevin@rosenberg.net>
437 * Makefiles: On 64-bit Linux systems, try to build both 32 and 64-bit
438 interface libraries. This requires the installation of multiarch build tools
439 as well as 32-bit support libraries (libc, libz and libmysqlclient).
441 04 Sep 2009 Kevin Rosenberg <kevin@rosenberg.net>
443 * sql/fdml.lisp: Rework do-query to use supplied database
444 parameter when passed a sql-object-query
445 (thanks to JTK <jetmonk@gmail.com>)
446 * sql/generic-postgresql.lisp: Allow optional connect
447 parameters for postgresql databases (thanks to Stephen Compall)
448 * doc/ref-{clsql,connect}.xml, sql/db-interfaces.lisp:
449 Fix transposed letters (thanks to Stephen Compall)
450 * db-mysql/Makefile: Add directory for MacPorts mysql5 port
451 (thanks to Stephen Compall)
452 * sql/database.lisp: Have database-type default be
453 *default-database-type* (thanks to Desmond O. Chang)
454 * sql/transactions.lisp: Improved handlining of nested
455 transactions (thanks to Eli Naeher)
456 * sql/time.lisp: Commit patch to fix parse-iso-8601-duration
457 (thanks to Stephen Compall)
458 * sql/database.lisp: Use :verbose nil for asdf:operate
459 invocation (Thanks to Mackram Raydan)
460 * sql/metaclasses.lisp: Rework initialize-instance for
461 view-class-direct-slot-definition (thanks to Stephen Compall)
463 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
464 * sql/db-interface.lisp: Fix spelling error (thanks to
466 * clsql-mysql.asd/db-mysql/mysql-loader.lisp: Commit
467 patch from Andreas Franke to honor windows drive letter
468 when loading clsql_mysql C library.
470 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
472 * db-mysql/mysql-{sql,api}.lisp,db-mysql/clsql_mysql.c:
473 Latest version of mysqlclient once again changed the C
474 structures from which the mysql backend reads data.
475 Rather than adding yet another structure definition which
476 is enabled by the client version as read by mysql-client-info.lisp,
477 the mysql backend has been re-written to ignore in the internal
478 C structures. Instead, C wrapper functions for slot access have
479 been added to clsql_mysql.c and are used by mysql-sql.lisp to
480 access the internals of C structures. This adds a bit of overhead,
481 but completely separates the lisp code from trying to keep up
482 with the continually changing internal C structure of mysql.
483 All tests in the test suite executed correctly with this change.
485 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
487 * sql/database.lisp: Fix syntax on process-lock (thanks to
489 * db-mysql/mysql-sql.lisp: Allow use of database parameter
490 in database-list function (thanks to Michael Pheasant)
491 * sql/oodml.lisp: Allow NULL values for floating-point fields
492 (thanks to Jan Rychter)
494 02 Jun 2009 Kevin Rosenberg <kevin@rosenberg.net>
496 * sql/database.lisp: Add process-lock for deleting database from
497 a pool (thanks to Ralf Mattes).
499 25 Feb 2008 Kevin Rosenberg <kevin@rosenberg.net>
501 * sql/expressions.lisp: Remove stray form (thanks to Samuel Ward)
503 12 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
504 * sql/expressions.lisp: Bind *in-subselect* when outputting
505 selections (patch from unknown source).
507 11 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
509 * sql/metaclasses.lisp: Unify base-table processing by extracting
510 the correct code from initialize-instance :around into the helper
511 function set-view-table-slot. Call that function also in
512 reinitialize-instance :around replacing erroneous code discovered
515 17 Nov 2007 Kevin Rosenberg <kevin@rosenberg.net>
516 * BUGS: Add note about benefit of using configure file to create
517 Makefiles (suggestion from Joe Corneli)
519 22 Oct 2007 Kevin Rosenberg <kevin@rosenberg.net>
521 * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
522 Andrew Golding suggestion for more informative :error-id slot.
524 17 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
526 * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
528 * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
530 14 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
531 * Version 4.0.0: Major version increase to warn of potential
532 backwards incompatibility.
533 * NEWS: Document potentional backward incompatible changes
534 * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
535 after connecting. This may break compatibility with some applications
536 who are using non-ANSI features with MySQL. This change is required to
537 properly support view-classes using a string as their :base-table
538 attribute. This allows users to specify the case of table names.
539 This is feature is even more essential for MySQL itself since MySQL
540 uses case-sensitive table names. Use connection-based database-create
541 and database-destroy rather than trying to invoke command-line mysql
542 utility. Remove automatic upcasing of strings from list-indices.
543 * db-postgresql/postgresql-sql.lisp: Use connection-based
544 database-create and database-destroy rather than trying to invoke
545 command-line utilities.
546 * db-postgresql-socket/postgresql-socket-sql.lisp: Use
547 database-execute-command rather than execute-command for
548 database-{create,destroy}. Connect to postgres database
549 rather than template1 for those database creation/deletion.
550 * sql/metaclasses.lisp: Store the string value of :base-table if a
551 string is provided. Perform sql-escape at time of view-table name
553 * tests/test-init.lisp: Use "ej_join" as a string, rather than a
554 symbol, since "ej_join" is specified as :base-table. Clear the
555 expression output-cache in case the code for generating sql output
557 * test/test-oodml.lisp: whitespace fix
558 * sql/ooddl.lisp: Use quoted string for primary key constraint if
559 table name is specified as a string.
560 * sql/oodml.lisp: Don't convert a string view-table name to database's
562 * sql/expressions.lisp: Properly handle table and attribute identifiers
563 when they are a string. Do not change case of symbols to match database
565 * sql/operations.lisp: Change multiword symbols to upper case.
566 * sql/fddl.lisp: Quote base-table if a string to preserve case
567 for drop-table and create-table.
568 * tests/test-syntax.lisp: Add tests of low-level string attribute
571 20 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
573 * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
574 (problem noted on clsql-devel by icardo Boccato Alves)
575 * sql/pool.lisp: Remove incorrect keyword
576 * sql/database.lisp: Rework WITH-DATABASE to not make the database the
577 default database (reported by Saurabh Nanda and Chaitanya Gupta)
578 * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
579 emphasis that make-default has a default value of nil.
580 * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
581 SQL Server. (patch from Nathan Bird)
582 * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
583 of trouble with def-view-class compilations (patch from Nathan Bird)
585 15 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
587 * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
588 not dynamically loaded on Windows
590 22 Jun 2007 Kevin Rosenberg <kevin@rosenberg.net>
592 * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
593 that library is dymically linked to clsql-mysql library. Thus, the mysql
594 library will be automatically loaded. This has only been tested on Linux,
597 29 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
598 * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
599 reported by Ricardo Boccato Alves
601 02 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
602 * sql/database.lisp: Add ability of WITH-DATABASE to return
603 multiple values (patch from Liam Healy)
605 25 Apr 2007 Kevin Rosenberg <kevin@rosenberg.net>
607 * doc/connect.xml: variable description fix by Liam Healy
608 * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
609 Apply patches from Marcus Pierce to reduce load-time warnings
610 * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
612 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
614 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
615 disable wide characters for crypt salt sequence on SBCL, based
616 on patch from Lars Nostdal.
618 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
620 * sql/pool.lisp: Test pooled connection when popped from
621 the pool to ensure the connection still works. Currently, implemented
624 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
625 * db-mysql/Makefile: Add potential mysql directories
627 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
628 * sql/metaclasses.lisp: Remove usused saved-initargs
629 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
630 push search libraries)
632 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
633 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
634 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
635 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
636 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
637 on non-Lispworks platforms, the nickname POSTGRESQL will still be
638 available. Applications directly using low-level POSTGRESQL package
639 are recommended to use the new PGSQL name.
640 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
641 Apply patch from Edi Weitz to reduce compiler warnings.
643 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
645 * sql/expressions.lisp: Commit patch from Edi Weitz to
646 use *default-database* for SQL-OUTPUT if no database is
647 explicitly passed to function.
648 * uffi/clsql-uffi-loader.lisp: Change load order to first try
649 plain name/type before attempting user-specified paths (patch
651 * uffi/ptrbits.c: New file to return number of bits in an pointer
652 * uffi/Makefile: use intbits to name .so file based on bit size.
653 Build both 32-bit and 64-bit libraries on 64-bit platform.
655 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
657 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
660 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
662 * db-postgresql/postgresql-sql.lisp: Remove
663 uffi:convert-foreign-to-native wrapper since using cstring for
666 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
668 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
669 PQresultErrorField foreign function.
671 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
673 * doc/intro.xml: Update supported platforms.
674 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
675 changes from Andew Golding to use a more-specific error code
676 from PostgreSQL than the generic fatal error code of the result set.
678 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
679 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
680 readtable modifications
682 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
683 * sql/syntax.lisp: Check that original reader syntax functions
684 stored before trying to restore them.
686 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
687 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
688 display sql reader syntax.
690 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
691 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
692 to decide on 64-bit platform and check size of most-positive-fixnum instead.
693 Needed to support clisp amd64.
695 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
697 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
698 compatibile. Add warning for a metaclass condition that should
700 * sql/time.lisp: Fixed symbol case inconsistency causing problem
701 in AllegroCL's modern lisp. First sign of bug noted by
702 Joel Reymond on clsql-devel.
703 * clsql.asd: Make time.lisp depend on utils.lisp
705 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
706 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
707 *library-file-dir* to CLSQL's library path.
709 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
710 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
711 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
712 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
713 * Makefile.common: Add OS detection
714 * uffi/make.sh, db-mysql/make.sh: Remove files
715 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
716 Refactor to remove need to make.sh shell scripts.
717 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
718 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
719 package rather than CL-USER. Add support for ansi-loop on clisp.
720 * sql/ansi-loop.lisp: New file to support iteration on clisp.
721 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
722 longer exist in the mysql client library.
723 * doc/ref-fdml.lisp: Correct default field-type.
724 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
725 Fixed bug with noted with MySQL 5.0.24 and boolean values.
727 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
729 * sql/oodml.lisp: Remove high debugging level declaration
731 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
733 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
734 is always 1. Fixes problem noted with PostgreSQL 8.1.
736 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
738 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
739 lazily cache if pg_roles tables exist. Selectively use SQL from
740 Joel's previous patch if pg_roles table exists. Should now work
741 with both postgresql 7.4 and 8.x.
743 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
745 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
746 local initialization file
747 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
749 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
750 that generates incorrect integer return type
751 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
752 it fails on versions of postgresql that lack the pg_role table
754 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
756 * sql/transactions.lisp: Important typo fix from Alexey Antipov
757 for database-start-transaction
759 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
761 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
762 to close connection when failing to connect to database.
763 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
764 to avoid dropping system views.
765 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
766 a nil value [patch sponsored by Flektor]
767 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
768 for netbsd compilation
770 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
771 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
772 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
774 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
775 * db-postgresql-socket/postgresql-socket-api.lisp:
776 Apply patch from Marko Kocic adding the socket creation
777 function needed for CLISP.
779 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
780 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
781 * db-oracle/metaclasses.lisp: Patch from James Bielman for
782 checking slot constraints.
783 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
784 saved openmcl images (based on patch from James Bielman)
786 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
787 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
789 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
791 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
792 duration parsing and unparsing to include year and month.
793 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
794 improving library search on Windows platform.
795 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
796 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
798 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
800 * clsql-postgresql-socket.asd,
801 * db-postgresql-socket/postgresql-socket-package.lisp:
802 Use the cl-md5 package on all platforms. Based on report
805 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
807 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
809 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
811 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
812 fix accessor for new versions of SBCL
813 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
814 to improving parsing of time.
815 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
817 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
818 as noted by Russ Tyndall.
820 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
822 * sql/time.lisp: Commit patch from Aleksandar Bakic
823 to properly handle destructive flag
824 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
825 from Steven Harris for socket files with SBCL.
826 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
827 new connections added to the pool do not become the *default-database*
828 * sql/connect.lisp: Optionally set *default-database* for pooled
829 connection when make-default is generalized true.
831 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
833 * sql/expressions.lisp: Ensure table names are properly escaped
834 before comparing -- fixes bug reported by Asbjørn Bjørnstad
837 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
838 * sql/generic-postgresql.lisp: improved decoding of table attribute
839 parameters [from Vladimir Sekissov]
840 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
841 it's subclass to prevent adding standard-db-object to supers if
842 somebody in the path has it already when metaclass inherited from
843 standard-db-class. [from Vladimir Sekissov]
845 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
847 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
848 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
849 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
850 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
851 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
852 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
853 Commit patch from Dominic Robinson providing support for
855 * doc/csql.lisp: Fix typo in slot name
857 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
859 * sql/time.lisp: Commit patch from Aleksandar Bakic for
860 correct handling of decode-time usec value
861 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
862 correct the name of the shared library file.
864 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
866 * sql/metaclasses.lisp: Avoid calling change-class on
867 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
870 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
872 * sql/expressions.lisp: Patch from James Biel to add subselects
874 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
875 * Version 3.4.4 [ Requires UFFI 1.5.7+]
876 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
877 to fix lifetime of foreign strings for Oracle calls
879 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
881 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
882 to improve performance
884 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
886 * clsql-uffi.asd: Patch from James Biel improving loading
887 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
888 to support 64-bit lisps
890 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
892 * sql/expressions.lisp: Escape numbers to SQL strings
895 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
896 * Version 3.4: Add MySQL 5 support
897 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
898 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
899 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
901 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
902 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
904 * BUGS: Added report for update-object-joins by Aleksandar Bakic
906 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
907 * Version 3.3.4 [UFFI >= 1.5.5 needed]
908 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
909 to add missing #\' character.
910 * clsql.asd: Add support for CLSQLINIT environmental variable,
911 based on patch from Yaroslav Kavenchcuk. New version of UFFI
914 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
916 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
917 update-objects-joins when using the :target-slot attribute
919 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
921 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
922 as noted by Harald Hanche-Olsen.
923 * tests/test-syntax.lisp: Add test for multiple field group-by
925 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
927 * sql/time.lisp: Commit patch from Alan Shields to
928 display escape string on wall-time display only when *print-escape*
931 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
932 * sql/metaclasses.lisp: Commit patch from Will to
933 properly set db-reader slot in effective-slot-definition
934 * sql/expressions.lisp: Commit patch from Alan Shields
935 adding make-load-form for sql-relational-exp
936 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
937 adding support for new NUMBER type
939 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
941 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
942 * doc/ref-ooddl.xml: Documentation of new type
943 * notes/add-type-hints.txt: New file from Alan Shields
944 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
946 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
947 as noted by Francis Leboutte. Similar fix applied to db-mysql and
949 * sql/expressions.lisp: Allow string table names for output as
950 contributed by Francis Leboutte.
951 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
954 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
956 * doc/into.xml: Change download from ftp to http protocol
958 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
960 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
963 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
965 * db-oracle/oracle-sql.lisp: Add check for zero increment as
966 suggested by Edi Weitz. Add missing database-sequence-last function
967 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
968 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
969 stmthp object when query cursor is freed with OCI.
971 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
972 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
973 display search path when error occurs loading foreign library.
975 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
977 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
978 with changes to support case-sensitive lisp implementations. Add
979 paragraph on using /etc/clsql-init.lisp site initialization file.
980 * clsql.asd: Load file /etc/clsql-init.lisp, if it
981 exists, after package is loaded to set site-specific configuration
983 2005-06-24 Edi Weitz <edi@agharta.de>
984 * sql/db-interface.lisp: Added new special variable
985 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
987 * sql/package.lisp: Export these.
988 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
990 * db-mysql/mysql-loader.lisp: Changed order of libs.
992 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
993 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
994 * clsql-mysql.asd: Renamed clsql/mysql interface library from
996 * clsql-uffi.asd: Renamed clsql/uffi interface library from
998 * uffi/clsql_uffi.c: Renamed from uffi.c
999 * db-mysql/clsql_mysql.c: Renamed from mysql.c
1000 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
1001 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
1002 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
1003 absolute pathnames when searching for foreign libraries.
1004 foreign library loading.
1006 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1008 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
1009 to support UTF-8 on sbcl unicode.
1011 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1013 * sql/time.lisp: Fix bug in roll that caused failure in test suite
1015 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1017 * sql/oodml.lisp: Properly handle when db-writer is NIL
1019 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1020 * sql/expressions.lisp: Avoid using simple-string declaration when
1021 a non-simple string may be encountered. [issue noted by
1022 will@cesmail.net] Add a simple-string declaration for a local
1025 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1026 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
1027 a symbol as well as function to serve as a function designator
1028 [issue noted by will@cesmail.net]
1030 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1032 * sql/time.lisp: Fix error in submitted patch which caused error
1033 in timestrings with 19 or less characters.
1035 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1037 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
1038 to fix read-socket-sequence on non-sb-unicode sbcl.
1040 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1042 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
1043 for fractional seconds which is required by PostgreSQL
1044 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
1046 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1047 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
1049 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1051 * sql/syntax: Commit patch from Alan Shields to supress reader
1052 macros when *read-supress* is T.
1054 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1056 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1057 from Janis Dzerins to support unicode on SBCL
1058 * sql/syntax: Commit patch from Alan Shields to improve reporting
1059 of invalid syntax statements.
1061 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1063 * db-mysql/mysql-sql.lisp: Add port to connection specification
1064 based on patch from Dave Watson
1065 * doc/appendix.xml: Document MySQL port parameter to connection spec
1067 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1069 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
1071 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1072 * sql/oodml.lisp: Add missing database argument [Patch from
1075 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1076 * sql/oodml.lisp: Improve database priority in
1077 update-records-from-instance [Patch from Walter C. Pelissero]
1079 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1081 * sql/package.lisp: Export database-reconnect from clsql-sys
1083 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1084 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
1085 [Patch from Walter Pelissero]
1087 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1088 * db-postgresql/postgresql-loader.lisp: Add additional
1089 directories to Fink on darwin [patch from Cyrus Harmon].
1091 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1093 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
1094 is invoked [suggested by Alan Shutko].
1095 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
1096 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
1097 to def-view-class [fix suggested by Fred Gilham].
1099 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1100 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
1102 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
1103 * doc/*.xml: Fix spelling of Vladimir
1105 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1106 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
1107 now that LispWorks is an independant company [noted by
1110 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1111 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
1112 Better support for 64 bit environments
1114 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1116 * sql/metaclass.lisp: Make t the default value of :set
1117 [noted by Cyrus Harmon]
1119 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1121 * uffi/clsql-uffi.lisp: Add support for unsigned integers
1122 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
1123 unsigned integers. Apply patch from Yannick Gingras to
1124 implement database-sequence-last.
1126 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1127 * doc/ref-fdml.lisp: Fix variable tag name to varname
1128 [noted by Eduardo Munoz]
1129 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
1131 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1133 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
1134 update-object-joins.
1135 * sql/metaclass.lisp: Remove unnecssary (and runtime error
1136 causing) change-class invocation when running on CLISP.
1137 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
1138 to fix structure name.
1139 * sql/database.lisp: More specific error message with trying
1140 to use a database value of NIL.
1141 * sql/expressions.lisp: Accept a string for the table name
1142 in (sql-output sql-delete database) [suggested by Ed Symanzik].
1144 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1146 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
1147 ignore columns which have been dropped.
1148 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
1149 Use sb-md5 package on SBCL, recommended by Chris Capel
1151 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1152 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
1153 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
1154 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
1156 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1157 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
1159 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1160 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
1161 contributed by Aurelio Bignoli
1163 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1164 * sql/oodml.lisp: Commit patch from Walter Pelis
1165 to use an object's database for a select on its slot.
1167 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1168 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
1169 Aurelio Bignoli to fix negative 64-bit integers
1171 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1172 * db-mysql/mysql.c: Fix parameters in bind_param call
1174 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1175 * uffi/clsql-uffi.lisp: Add support for :blob result-type
1176 * db-mysql/mysql-sql.lisp: Add support for :blob
1179 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1180 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
1181 missing quotes for types in code that is still in development
1182 (thanks to Joerg Hoehle)
1184 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1185 * Version 3.0.8 released
1186 * db-sqlite/sqlite-*.lisp: Apply patch from
1187 Aurelio Bignoli with improvements
1189 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1190 * multiple: Apply patch from Joerg Hoehle with multiple
1193 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1194 * Version 3.0.7 released
1195 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
1196 Add support for mediumint.
1197 * sql/metaclass.lisp: Rework CLISP MOP handling
1198 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
1200 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1201 * sql/metaclass.lisp: Support CLISP's attribute name
1202 for the type field in direct class slots
1204 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1205 * Version 3.0.6 released
1206 * BUGS: New file. Document suspected SIGPIPE
1207 interaction between SBCL and libpq used in
1209 * doc/ref-fdml.lisp: Document the :caching and :refresh
1210 keywords of the SELECT function.
1211 * doc/ref-ooddml.lisp: Document the new *default-caching*
1213 * sql/package.lisp: Export *default-caching*
1214 * sql/oodml.lisp: Use *default-caching* to
1215 control default caching behavior.
1217 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1218 * Version 3.0.5 release
1219 * doc/appendix.xml: Add note about loading Oracle8 version
1220 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
1221 data from David Young.
1223 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1224 * doc/Makefile, doc/catalog-darwin.xml: Apply
1225 patch from Cyrus Harmon for building docs on Mac OS X
1226 * sql/package.lisp: Add new (pre-release) clisp MOP package
1228 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1229 * Version 3.0.4 Release
1230 * multiple: Remove superfluous quotes in UFFI def-type
1231 and def-foreign-type forms.
1233 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1234 * Version 3.0.3 Release
1235 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1236 from Tagore Smith to call force-output after sending authentication
1237 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
1238 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
1239 to a database of that type so that functions that indicate capabilities of
1240 database are available.
1242 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1243 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
1245 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1246 * Version 3.0.2 Release
1247 * TODO: Add note about ODBC on Windows
1248 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
1250 * db-odbc/odbc-ff-interface.lisp: Change the return type
1251 of SQLSetEnvAttr to :short
1253 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1254 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
1255 slot of the employee View Class definition [reported by Franz Deuzer].
1257 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1258 * Version 3.0.1 Release
1259 * tests/test-init.lisp: Add second join class to employee-address
1260 to test a class with two join slots.
1261 * sql/oodml.lisp: Fix find-all function for a class with multiple
1263 * TODO: Remove need to test/fix multiple join classes
1265 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1266 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
1267 from Jon Buffington for file locations on Darwin.
1269 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1270 * sql/db-interface.lisp: Improve messages when functions
1271 are passed a database object, but the method is not specialized
1272 for that database type.
1273 * sql/metaclasses.lisp: Fix inline declaration (reported by
1276 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1277 * TODO: Add bug report about SQL generation with a table
1278 containing two join slots.
1279 * sql/oodml.lisp: Add optional size to VARCHAR type
1281 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1282 * Version 3.0.0 Release
1283 * sql/expressions.lisp: Change declaration that
1284 caused error on openmcl
1285 * db-aodbc/aodbc-sql.lisp: Fix storage location
1286 of odbc connection. Specialize database-query since
1287 dbi's :types keyword is different than generic-odbc's
1288 :result-types keyword
1289 * sql/db-interface.lisp: Add warnings for methods
1290 not specialized by a db backends
1291 * tests/test-fddl.lisp: Fix case of symbols to support
1292 case-sensitive Allegro
1293 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
1294 * tests/test-init.lisp: Note that odbc driver for postgresql
1295 doesn't properly handle table ownership
1296 * LATEST-TEST-RESULTS: update with version 3.0.0
1298 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1299 * sql/expressions.lisp: conditionalise escaping of backslash in
1300 generated SQL strings on backend.
1301 * tests/test-fdml.lisp: test for escaping of backslash.
1302 * sql/oodml.lisp: minor tidying in FIND-ALL.
1304 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1305 * NEWS: Initial 3.0 announcement draft
1306 * README: Expand acknowledgements of incorporated projects
1307 * CONTRIBUTORS: Further document Marcus Pearce contributions
1309 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1310 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
1311 to print floats with the exponent markers removed.
1312 * tests/test-oodml.lisp: add tests for updating records with floats.
1314 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1315 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
1316 CommonSQL compatibility.
1317 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
1318 this column constraint syntax is not supported.
1319 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
1320 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
1323 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1324 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
1325 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
1326 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
1328 * doc/ref-oodml.xml: add examples for OODML.
1329 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
1331 * sql/metaclasses.lisp: update docstrings.
1332 * tests/test-init.lisp: change :db-constraints for emplid to
1333 (:not-null :unique) as a temporary test for multiple column constraints
1335 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
1336 return type of (SETF SLOT-VALUE-USING-CLASS).
1337 * TODO, doc/TODO: remove items done.
1340 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1341 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
1343 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
1345 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1346 * sql/expressions.lisp: reactivate caching of generated SQL strings.
1347 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
1348 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
1349 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
1350 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
1351 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
1352 sql/expressions.lisp.
1353 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
1354 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
1355 * sql/generics.lisp: add docstrings.
1357 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1359 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
1360 code in favor of fixing UFFI with James Bielman's patch
1362 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1364 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
1367 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1368 * README, INSTALL: update URLs. Minor updates to descriptions.
1369 * tests/README: remove stuff about editing contexts.
1371 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1372 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
1373 *default-string-length*
1375 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1376 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
1378 * tests/test-fddl.lisp: add tests for column and table constraints
1379 in CREATE-TABLE. Add test for OWNER keyword parameter to
1380 LIST-TABLES (assuming same underlying machinery in other FDDL
1382 * tests/test-init.lisp: restrict above test to postgresql and oracle.
1384 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1385 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
1388 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1389 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
1391 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1393 * doc/*.xml: documentation additionals and fixes so
1394 that docbook passes xmllint.
1396 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1398 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
1399 to change escaping of single quotes. Mild optimizations
1400 for escaped string output.
1401 * doc/ref-ooddl.lisp: documentation additions
1402 * doc/ref-oodml.lisp: Add purpose to functions
1403 * TODO: Add need to test single quote escaping
1405 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1406 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
1407 * sql/ooddl.lisp: Added SMALLINT type
1408 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
1409 * db-mysql/mysql-objects.lisp: Added SMALLINT type
1410 * sql/package.lisp: Export SMALLINT
1411 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
1414 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1415 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
1416 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
1417 View Class slot option.
1418 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
1419 slot option accepting a list of constraints [reported by Travis Cross].
1420 * doc/ref-fddl.xml: add some examples of specifying column and
1421 table constraints to the documentation for CREATE-TABLE.
1422 * TODO: add note about adding tests for table/column constraints. Add
1423 optimisation note about using cached attribute types in insert/update
1426 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1427 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
1428 features and so on the documentation for each backend.
1429 * doc/TODO: remove items done.
1430 * doc/ref-transaction.xml: add note in introduction about
1431 autocommit mode as a difference from CommonSQL.
1432 * doc/ref-syntax.xml: add notes about SQL syntax state functions
1433 being macros in CLSQL. Add note about SQL operators which are
1436 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1437 * Version 2.11.12 released
1438 * doc/ref-recording.xml: document SQL I/O recording.
1439 * doc/ref-prepared.xml: new file for documenting prepared statements.
1440 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
1442 * doc/ref-conditions.xml: complete documentation of condition system.
1443 * doc/global-index.xml: add symbols from condition system and remove
1444 those from LOB and prepared statement APIs.
1445 * doc/ref-fdml.xml: complete documentation of FDML.
1446 * doc/glossary.xml: add View Class.
1447 * doc/TODO: remove items done.
1448 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
1449 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
1450 additional slot accessors for condition classes.
1452 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1453 * doc/ref-ooddl.lisp: Add documentation
1454 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
1455 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
1456 * doc/oodml.lisp: Rename references to new name of
1457 *DEFAULT-STRING-LENGTH*
1459 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1460 * doc/ref-transaction.xml: document transaction handling.
1461 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
1462 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
1463 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
1464 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
1467 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1468 * doc/ref-fdml.xml: document the FDML.
1469 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
1470 * sql/ooddl.lisp: moved *default-varchar-length* to here from
1471 oodml.lisp and renamed to *default-string-length*
1473 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1474 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
1475 to allow specifying transactionless table creation
1476 * doc/ref-oodml.lisp: Add new keyword to signature of
1479 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1481 * sql/expressions.lisp: when removing duplicate table identifiers
1482 in the FROM clause of a query, check both table name and alias
1484 * sql/fdml.lisp: remove DESCRIBE-TABLE.
1485 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
1486 DATABASE-DESCRIBE-TABLE.
1487 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
1488 and LIST-TABLE-INDEXES.
1489 * sql/generic-postgresql.lisp: add reader conditional #+nil for
1490 DATABASE-DESCRIBE-TABLE and comment about its uses for
1491 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
1492 returning type info for all attributes.
1493 Fix DATABASE-SEQUENCE-LAST.
1494 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
1495 LIST-INDEXES with additional keyword parameter :ON.
1496 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
1497 with LIST-INDEXES (with :ON parameter).
1498 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
1499 * doc/ref-connect.xml: minor tidying.
1500 * doc/ref-fddl.xml: document the FDDL.
1501 * doc/TODO: removed items done. Moved note about transaction handling
1503 * TODO: move note about transaction handling to doc/TODO. Added
1504 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
1506 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1508 * sql/syntax.lisp: updated docstrings.
1509 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
1511 * sql/database.lisp: add docstrings for CREATE-DATABASE,
1512 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
1513 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
1514 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
1515 * doc/ref-connect.xml: document connection/initialisation.
1516 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
1517 * doc/TODO: remove items done.
1518 * Makefile: add db-oracle to to SUBDIRS.
1520 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1521 * sql/oodml.lisp: Add new serialization functions:
1522 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1523 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1524 from a table that has more than one primary index.
1525 * sql/conditions.lisp: Fix printing of closed-database error
1527 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1529 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1530 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1532 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1533 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
1534 of SQL-EXPRESSION from CLSQL-SYS.
1535 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
1536 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
1537 * doc/Makefile: added Mandrake linux.
1538 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
1539 * doc/appendix.xml: fixed little typo (adsf).
1540 * doc/glossary.xml: removed closed-database and note about
1541 sql-expression, added some entries.
1542 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
1544 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1546 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1547 * multiple: Add generalized-boolean type as requested by
1549 * TODO: Added need for test of generalized-boolean
1551 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1552 * Version 2.11.7 released
1553 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1554 for loading with clc-register-user-package. Remove personal
1555 directory from path lisp.
1556 * db-mysql/mysql-loader.lisp: Similar changes
1558 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1559 * Version 2.11.6 released
1560 * sql/oodml.lisp: Commit patch from Edi Weitz
1561 to fix symbol writing/reading
1562 * TODO: Add need for symbol slot test
1564 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1565 * sql/package.lisp: remove duplicate export of
1566 *CACHE-TABLE-QUERIES-DEFAULT*.
1567 * doc/ref-*.xml, doc/global-index.xml: new files documenting
1568 the CommonSQL compatible api.
1569 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
1570 reflect changes in return values of WITH-TRANSACTION.
1572 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1573 * tests/README: Fix filename [reported by Bill Clementson]
1574 * sql/transactions.lisp: Apply return value patch from
1575 Edi Weitz for WITH-TRANSACTION
1576 * tests/README: Remove ptester package requirement (as noted
1579 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1580 * Version 2.11.5 released
1581 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1582 Select connection-spec based on connection type. Bugs reported by
1584 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1585 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1586 name on Windows, add \bin\ directory to search path
1588 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1589 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
1591 * sql/operations.lisp: substr now generates SUBSTR for use on
1592 Oracle; added a new operator SUBSTRING for use elsewhere. minus
1593 now generates MINUS for use on Oracle. Nvl signals an error if
1594 not called with exactly 2 arguments. Add concat function for use
1595 instead of the || operator on MySQL and Oracle.
1596 * sql/syntax.lisp: changed internal symbol for the || operator to
1598 * sql/expressions.lisp: removed redundant and unused functions
1599 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1600 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
1601 * sql/generics.lisp: removed generic function for
1602 DATABASE-CONSTRAINT-DESCRIPTION (see above).
1603 * tests/test-syntax.lisp: modified/added tests according to changes
1604 in sql/operations.lisp.
1605 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
1607 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
1608 and SQL-USERENV to the shared exports list. Removed
1609 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
1610 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1611 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1612 RECORD-SQL-RESULT from shared exports list.
1614 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1615 * db-postgresql/postgresl-sql.lisp: Avoid computing
1616 result-types lisp when nil result-types. Return only
1617 one value when field-types nil.
1618 * db-mysql/mysql-sql.lisp: Simple queries now
1619 working with prepared statements.
1621 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1622 * Version 2.11.4: MySQL 4.1 now passes all tests
1623 * sql/package.lisp: Add API for prepared statments.
1624 * sql/fdml.lisp: Change implicit flatp processing
1625 for string map-query for greater CommonSQL conformance.
1626 Add high-high API for prepared statements.
1627 * tests/test-basic.lisp: Add test for map-query and
1629 * sql/transactions.lisp: Change name/semantics of
1630 autocommit to set-autocommit.
1631 * sql/generic-postgresql.lisp: Add support for
1632 prepared statements.
1633 * tests/test-internal.lisp: New file
1634 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1635 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1636 Controller invocation.
1637 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1638 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1639 function contains a subselect.
1641 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1643 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1644 type (setf slot-value-using-class)
1645 * TODO: add not that need a test case for the above fix
1646 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1648 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1649 introduced in Oracle8. Leave older code selectable by a reader macro
1650 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1651 uses OCILogon and does not the more complex session management.
1653 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1654 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1655 * test/test-init.lisp: Add universal-time slot to person.
1656 * test/test-fddl.lisp: Add tests of universal-time slot
1657 * test/test-ooddl.lisp: Test universal-time slot in an object
1658 * TODO: Remove need for universal-time test
1659 * debian/rules, debian/control: Add cl-sql-oracle binary package
1660 * doc/appendix.xml: Add Oracle backend information
1661 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1662 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1663 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1664 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1665 for map-query to reflect changed in arguments to be CommonSQL compatible.
1666 Updated old clsql conditions to new CommonSQL compatible conditions.
1668 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1669 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1670 type. Added *default-varchar-length* rather than previous hard-coded
1671 varchar length. Remove 'simple-string and 'simple-base-string since they
1672 are subtypes of 'string.
1673 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1674 local hard-coded value.
1675 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1676 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1677 CHAR to lisp type character.
1678 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1679 * sql/operations.lisp: Add userenv
1680 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1682 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1683 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1684 * test/test-init.lisp: Add large table with bigint slot
1686 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1687 * Version 2.11.1 released: Much simpler Oracle client library loading.
1688 Now uses ORACLE_HOME environmental variable as well as tests default
1689 path for Oracle Instant Client.
1691 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1692 * Version 2.11.0 released: Full Oracle support. All tests pass
1693 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1694 * tests/test-init.lisp: capitalize odbc backend name in banner
1695 * CONTRIBUTORS: Add note about Marcus' excellent work
1696 * sql/oodml.lisp: Removed old stub function
1697 * clsql.asd: Use module names in current package rather than keyword package
1698 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1699 in setting sequence position. Make autocommits more efficient.
1700 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
1701 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1702 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1703 and read-sql-value for NUMBER and CHAR.
1704 * sql/base-classes.lisp: Add autocommit slot
1705 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1706 * doc/intro.xml: Add Oracle
1708 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
1709 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
1710 CLSQL-SIMPLE-WARNING with SQL-WARNING.
1711 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
1713 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
1714 * clsql.asd: reworked module structure in package definition and
1715 file names to better reflect component functionality.
1716 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
1717 exports list. Removed duplicate and obsolete exports. Exported
1718 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
1719 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
1720 according to whether they are specified by CommonSQL or CLSQL
1722 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
1724 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
1725 here from basic-sql.lisp.
1726 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
1727 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
1728 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1730 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
1731 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
1733 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1734 * Version 2.10.22 released
1735 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
1736 has reversed class slots, change the default for ordered-class-slots so that slots
1737 are now in the same order an in the def-view-class.
1738 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
1739 * test/test-fddl.lisp: Add two tests for mixed case names
1740 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
1741 for computed fields, this will require some adjustment to the test suite which
1742 in many cases expects integers.
1743 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
1745 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1746 * Version 2.10.21 released
1747 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
1748 db-odbc, and db-aodbc.
1749 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
1750 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
1751 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
1752 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
1753 sql/generic-odbc.lisp
1754 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
1755 Move common code to sql/generic-postgresql.lisp
1756 * sql/classes.lisp: honor case of string tables when outputting queries
1757 * sql/objects.lisp: Add database type to default database-get-type-specifier method
1758 * sql/sql.lisp: Add database type to default database-abort-transaction method
1759 * db-mysql/mysql-objects.lisp: New file
1760 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
1761 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
1763 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
1764 default db case for FDML/SELECT/25
1766 22 May 2004 Kevin Rosenberg
1767 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
1768 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
1769 and string identifiers with non-default case
1770 * sql/table.lisp: Don't convert string table name to a symbol.
1771 * sql/classes.lisp: Honor case of string identifiers
1772 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
1774 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
1775 of owner phrases. Obtain server and client versions.
1776 * db-oracle/oracle-objects.lisp: Fix type specifiers
1777 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
1778 * tests/test-init.lisp: Properly get username from Oracle connection-spec
1780 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1781 * sql/generics.lisp: reworked docstrings. Remove generics for
1782 ADD-TO-RELATION and REMOVE-FROM-RELATION.
1783 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
1784 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1785 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
1786 for CommonSQL compatibility. Remove ADD-TO-RELATION and
1787 REMOVE-FROM-RELATION.
1788 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
1789 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1790 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
1791 * sql/conditions.lisp: add documentation for conditions. Add
1792 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
1794 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1795 * sql/basic-sql.lisp: reworked docstrings.
1796 * sql/transactions.lisp: reworked docstrings.
1797 * sql/sql.lisp: reworked docstrings.
1798 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
1799 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
1800 * sql/database.lisp: reworked docstrings.
1801 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
1802 and FDML extensions and database extensions.
1804 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1805 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
1806 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
1808 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
1809 Oracle versions with the PURGE option required for drop table. This needs
1810 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
1812 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1813 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
1814 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
1815 * sql/table.lisp: reworked docstrings.
1816 * sql/objects.lisp: moved *default-update-objects-max-len* here from
1818 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
1819 DROP-VIEW and DROP-INDEX and the use of the :transactions and
1820 :constraints keyword args to CREATE-TABLE.
1821 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
1822 CommonSQL compatible with respect to column constraints.
1824 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1825 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
1826 Requires UFFI 1.5.0 or higher
1828 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1830 * sql/conditions.lisp: Fix cerror
1832 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1833 * Version 2.10.18 released: New condition hierarchy to be compatible
1834 with CommonSQL -- not backward compatible with previous CLSQL.
1835 * sql/db-interface.lisp: Add more default methods
1836 * sql/objects.lisp: Add explicit table name to order-by parameters
1837 in find-all when only one table to avoid selecting a duplicate row.
1838 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
1839 as previous logic was adding two fields (foo asc) to SELECT query.
1840 Make :result-types :auto be the default for object selections.
1841 Properly handle caching key when using multiple order-by with asc/desc
1843 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
1845 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1846 * sql/recording.lisp: reworked docstrings.
1847 * sql/syntax.lisp: reworked docstrings.
1848 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
1849 SQL syntax state functions being macros.
1851 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1852 * sql/package.lisp: Export initialize-database-type and
1853 *initialize-database-types* from CLSQL package.
1854 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
1855 remove old CLSQL conditions.
1856 * sql/loop-extensions.lisp: Make errors of type sql-user-error
1857 * */*.lisp: Convert to from old to new conditions
1859 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1860 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
1861 To handle this difference, will need to add a new database-drop-table
1863 * db-oracle/oracle-sql.lisp: Move server-version and
1864 major-version-number to database object to allow multiple connections
1865 to Oracle servers of different versions.
1867 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1868 * TODO: moved notes about backends to doc/TODO.
1869 * doc/TODO: added notes about backends and select extensions.
1870 * sql/base-classes.lisp: remove obsolete schema slot in database
1873 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1874 * db-oracle/oracle-api: Add OCIServerVersion
1875 * db-oracle/oracle-sql: Query and store server version on connect
1876 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
1877 function to handle OCI's lack of bigint support
1878 * test/test-basic.lisp: Separate bigint testing
1879 * test/test-utils.lisp: Add oracle to specs and list of backends
1880 * doc/TODO: New file
1881 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
1882 run-time instantiation of variables in reader macros.
1883 * TODO: Remove item already complete. Add note about
1886 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1887 * sql/syntax.lisp: added condition to the reader macro to treat [*]
1888 as a column identifier (rather than an operation) for CommonSQL
1890 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
1891 keword args to SELECT, [*] as column identifier, new MAP-QUERY
1892 behaviour and the ANY and ALL operators in subqueries.
1893 * tests/test-init.lisp: add set-operation and subquery tests to
1894 appropriate skip lists.
1895 * sql/objects.lisp: remove redundant and non CommonSQL compatible
1896 ORDER-BY-DESCENDING keyword argument for SELECT.
1897 * sql/classes.lisp: remove redundant and non CommonSQL compatible
1898 ORDER-BY-DESCENDING keyword argument for SELECT.
1899 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
1900 with object queries.
1902 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1903 * sql/db-interface.lisp: Add new db-type-has-union?
1904 since Mysql 3.23 does not support unions.
1905 * sql/test-init.lisp: Don't try union tests on database
1906 backends which do not support it.
1907 * db-oracle/*.lisp: initial port to UFFI
1908 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
1909 implement REFRESH for SELECT.
1910 * tests/test-oodml.lisp: Add tests for deferred retrieval,
1911 caching, refresh, and update-object-joins
1912 * tests/test-init.lisp: Add deferred-employee-address class
1914 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1915 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
1916 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
1917 ALL and EXISTS generate function expressions so they output the
1919 * sql/classes.lisp: SELECT now generates appropriate SQL when
1920 passed the SET-OPERATION and ALL keyword arguments.
1921 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
1922 accepts ordering constraints as pairs of the form (column direction)
1923 where direction may be :ASC or :DESC.
1924 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
1925 Correct tests for ANY, SOME, ALL and EXISTS.
1926 * tests/test-fdml.lisp: added test for COALESCE.
1927 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
1928 using funcall unless QUERY-EXPRESSION returns one column and its
1929 FLATP slot is not nil in which case apply is used.
1930 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
1932 * TODO: remove items done.
1933 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
1934 DATABASE-LIST-ATTRIBUTES.
1935 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
1936 results in DATABASE-LIST-ATTRIBUTES.
1938 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1939 * sql/classes.lisp: SELECT now accepts table identifiers as strings
1940 for CommonSQL compliance. Add support for qualified sql identifiers
1941 with aliased table names.
1942 * tests/test-fdml.lisp: added tests for table identifiers as strings
1943 in SELECT and for aliased definitions.
1944 * tests/test-syntax.lisp: added tests for alias definitions.
1946 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1947 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
1948 field-names set to nil.
1949 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
1950 with null attribute values.
1951 * sql/operations.lisp: modify SQL concatenation operator to accept
1952 unescaped || symbol.
1953 * sql/syntax.lisp: modify sql reader macro function to accept
1954 unescaped sql concatenation operator.
1955 * tests/test-fdml.lisp: unescape sql concatenation operator.
1956 * tests/test-syntax.lisp: unescape sql concatenation operator.
1957 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
1958 Note to add test for universal-time. Note about difference from
1959 CommonSQL in transaction handling.
1961 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1962 * tests/test-init.lisp: Add deferred-employee-address
1964 * tests/test-oodml.lisp: Add deferred retrieval testgs
1966 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1968 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
1969 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
1970 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
1971 * *: Fix minor style warnings
1972 * clsql-classic: Remove system and subdirectory
1973 * clsql-base: Remove system and subdirectory and
1974 fold into clsql system
1975 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
1976 as supported platform.
1978 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1979 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
1980 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
1981 Allegro 7.0beta AMD64
1982 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
1983 of ODBC longs since this type can vary on 64-bit platforms depending
1984 upon the compilation options of unixODBC.
1985 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
1986 structures found by testing with AllegroCL 7.0b AMD64.
1987 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
1988 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
1989 Initial caching support for SELECT
1990 * tests/test-oodml.lisp: Avoid using cache when testing select.
1991 * sql/kmr-mop.lisp: Explicitly check slot order and
1992 store as a cl:*feature*
1993 * sql/recording.lisp: Remove additional types to
1994 increase CommonSQL conformance.
1995 * tests/test-init.lisp: Change a :column attribute
1996 to test symbols as value
1997 * sql/relations.lisp: Remove functions since they don't support
1998 many to many relationships.
1999 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
2000 of add-to-relations function and replace with explicit field settings.
2001 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
2003 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2005 * LATEST-TEST-RESULTS: results with current version
2006 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
2007 since cmu19 has opposite order of class slots.
2008 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
2009 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
2011 * tests/test-init.lisp: Check test-database-underlying-type for
2014 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2015 * sql/operations.lisp: complete remaining operations for the sql
2016 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
2017 UNION, INTERSECT, BETWEEN.
2018 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
2019 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
2020 * tests/test-syntax.lisp: add tests for new operations.
2021 * tests/test-fdml.lisp: add tests for queries based on new operations.
2022 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
2023 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
2024 * TODO: removed entries done.
2026 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2027 * tests/benchmarks.lisp: Add immediate vs. deferred
2030 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2031 * Version 2.10.13: Now works on openmcl 0.14.2
2032 * sql/objects.lisp: Add :retrieval :immediate for
2034 * tests/test-init.lisp: Add non-index fields for testing
2035 join class employee-addresss
2036 * test/test-oodml.lisp: Add tests for retrieval immediate
2037 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
2038 values which are now listifed by openmcl 14.2.
2039 * sql/objects.lisp: more framework for supporing immediate retrieval
2041 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2042 * docs/intro.xml: Upload location of a README file
2043 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
2044 changing the type-specifier. Use a lisp type of (OR NULL FOO)
2045 for a specified-type of FOO unless :db-constraints :not-null.
2046 No need to specialize finalize-inheritance for openmcl.
2047 * tests/test-*.lisp: Rename fields so that joins occur on
2048 fields with different names. This ensures that join code is
2049 selecting the proper name.
2050 * test/test-init.lisp: Add :base-table for employee-address
2051 view class for testing.
2052 * sql/objects.lisp: Use view-table rather than name of table
2053 in a number of places to fix errors noted with using :base-table.
2055 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2056 * sql/objects.lisp: replace *update-records-on-make-instance* with
2057 *db-auto-sync* which also controls both automatic creation of
2058 new records on creation of new instance and updating of record
2059 fields on setting of instance slots (as suggested by Edi Weitz).
2060 * tests/test-init.lisp: replace *update-records-on-make-instance*
2061 with *db-auto-sync*.
2062 * sql/package.lisp: replace *update-records-on-make-instance*
2063 with *db-auto-sync*.
2064 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
2065 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
2066 and *default-database* in FIND-ALL.
2067 * sql/package.lisp: import time functions from CLSQL-BASE.
2068 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2069 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2070 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2071 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
2074 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2075 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
2076 now return a sql-object-query type rather than directly performing a query.
2077 This improves CommonSQL conformance.
2078 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
2079 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
2080 depend on sql-object-query-type.
2081 * sql/loop-extensions.lisp: Move from base package
2082 * classic/package.lisp: remove references to map-query and do-query
2084 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2085 * TODO: New section on optimizations, especially optimizing JOINs.
2086 * sql/objects.lisp: Have :target-slot return of list of lists rather
2087 than a list of cons pairs to be conformant with CommonSQL.
2088 Make :target-slot much more efficient by using a SQL inner join
2089 statement and just requiring one SQL query. Add :retrieval :deferrred
2090 to target-slot joins. Add placeholder for update-objects-join.
2091 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
2092 and process them for query output-sql.
2094 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2096 * base/basic-sql.lisp: Avoid multiple evaluation
2097 of query-expression in DO-QUERY
2098 * sql/objects.lisp: Make SELECT a normal function.
2099 SELECT now accepts type-modified database identifiers, such as
2100 [foo :string] which means that the values in column foo are returned
2101 as Lisp strings. Add new *update-records-on-make-instance* special
2102 variable controlling automatic creation of new instances. Add missing
2103 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
2104 * sql/packages.lisp: Export *update-records-on-make-instance*
2105 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
2107 * test/test-fdml.lisp: Add tests for type-modified
2108 database identifiers.
2109 * test/test-init.lisp: Stop using add-relation since implementing
2110 many-to-many joins. Use *update-records-on-make-instance*
2111 to automatically store records on instance creation. Add many-to-many
2112 employee-address view-class.
2114 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2116 * base/loop.lisp: Add object iteration. Use :result-type
2117 :auto for result-set. Remove
2118 duplicate (and non-correct) code for non-list variables by
2119 simply making an atom variable into a list.
2120 * sql/package.lisp: Remove unnecessary clsql-sys package
2121 and replace it with clsql.
2122 * sql/metaclasses.lisp: Properly store specified-type from
2123 direct-slot-definition and then store translated type in
2124 effective-slot-definition
2125 * sql/classes.lisp: Don't output type in sql-output
2126 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
2127 [foo :integer] as fields in SELECT.
2128 * sql/query.lisp: Set default for :result-types to :auto in
2130 * sql/objects.lisp: Use specified-type when invocating
2131 database-get-type-specifier. def-view-class macro now returns
2133 * base/basic-sql.lisp: Make :AUTO the default value for
2134 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
2135 * sql/objects.lisp: Add bigint type
2136 * test/tests-basic.lisp: Add tests for :result-types for
2137 MAP-QUERY and DO-QUERY
2138 * test/test-fdml.lisp: Add test for result-types in LOOP
2139 and also using single symbol rather than a list for variables.
2140 Add test that default :result-types is auto for FDML QUERY.
2141 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
2142 of SQL-IDENT-ATTRIBUTE.
2143 * test/test-oodml.lisp: Enable OO loop iteration test,
2144 modify it so it doesn't depend on boolean where.
2146 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2148 * sql/objects.lisp: added derived type specifier for universal time.
2149 * sql/package.lisp: added #:universal-time to clsql-sys exports.
2150 * tests/test-oodml.lisp: added test for translation of boolean slots
2151 in SELECT with object queries.
2153 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2154 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
2155 for odbc/postgresql backend.
2156 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
2157 it can handle NIL values from the ODBC driver
2158 * tests/benchmarks.lisp: New file with initial
2160 * sql/relations.lisp: fix to add subclassing support,
2161 minor optimizations [Edi Weitz]
2163 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2165 * base/conditions.lisp: Add *backend-warning-behavior*
2167 * db-postgresql-socket/postgresql-socket-sql.lisp:
2168 Honor value of *backend-warning-behavior*
2169 * tests/test-fdml.lisp: Remove test of raw boolean value
2170 since different backends handle this differently. Add
2171 test for :column attribute.
2172 * tests/test-oodml.lisp: Add tests for boolean slot value
2173 and for :void-value attribute
2174 * tests/test-init.lisp: Use *backend-warning-behavior*
2175 to suppress warnings from postgresql about implicitly
2176 creating primary key in tables. Add new address table.
2178 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2180 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
2181 result-types is :auto
2182 * sql/objects.lisp: Properly handled writing/reading Boolean
2183 values from SQL database when retrieving objects.
2184 * test/test-fdml.lisp: Add another test for boolean results
2185 * test/utils.lisp: Fix incorrect declaration
2187 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2189 * sql/generics.lisp: add generic function for SELECT.
2190 * sql/objects.lisp: make SELECT a method specialisation.
2191 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
2192 referred to are View Classes.
2193 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
2194 query-expression arg evaluates to a list, then we have an object
2196 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
2198 * TODO: remove items done and add a todo for SELECT.
2199 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
2201 * sql/sql.lisp: add :field-names arg to QUERY.
2202 * tests/test-fdml.lisp: minor rework to use :field-names arg to
2205 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2206 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
2207 or more View Classes.
2208 * sql/objects.lisp: make the :flatp argument to SELECT work with
2210 * sql/objects.lisp: make SELECT accept a :result-types argument
2211 (defaults to :auto) which is passed on to QUERY.
2212 * sql/objects.lisp: SELECT returns field-names as a second value.
2213 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
2214 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
2215 to SELECT and take only first value as appropriate.
2216 * tests/test-fdml.lisp: add two new tests for query result coercion
2217 and the field-names returned as a second value from SELECT.
2218 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
2220 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2221 * Version 2.10.6-pre1
2222 * sql/metaclasses.lisp: Add void-value slot
2223 * doc/csql.xml: Update def-view-class documentation
2224 * test/test-init.lisp: Change old :db-type to :db-kind.
2225 Remove old :nulls-ok attributes.
2226 * sql/objects.lisp: Add new universal-time and bigint
2227 types. Optimize reading of integers using parse-integer
2228 rather than read-from-string.
2229 * */*.lisp: Merge clsql-base-sys and clsql-base packages
2230 into clsql-base package
2231 * classic/sql.lisp: Move large object support into base, leaving
2232 classic without any functionality that is provided in the clsql
2234 * classic/package.lisp: Rename clsql-classic-sys package to
2235 its former nickname of clsql-classic
2237 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2238 * Version 2.10.5: SQLite backend now passes all result-types tests
2239 * clsql-sqlite.asd: Depend on clsql-uffi system
2240 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
2241 for efficiency and code reuse.
2242 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
2243 for better cross-implementation compatibility.
2245 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2247 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
2249 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
2250 bug on SBCL in result-field-names function as reported by Marcus Pearce
2251 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
2252 manifest in SBCL testing
2254 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2256 * sql/database.lisp: Conform more to CommonSQL output
2257 for STATUS command [Marcus Pearce]
2258 * sql/sqlite-sql.lisp: Rework to use result-types
2259 * sql/sqlite-api-clisp.lisp: Add compatibility layer
2260 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
2261 be cleaned up of most clisp reader conditionals
2262 * sql/test-init.lisp: Now run field type tests on sqlite
2265 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2267 * base/basic-sql.lisp: Set default value of :result-types
2268 to :auto for more CommonSQL conformance.
2269 * test/test-fdml.lisp: Add tests for numeric value of fields
2272 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2273 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
2274 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
2275 Return field names as second value for QUERY. This can be overridden
2276 for efficiency with the new keyword :FIELD-NAMES set to NIL
2277 in the QUERY invocation.
2278 * test/test-fdml.lisp: Add tests for new field-name feature
2279 * sql/metaclass.lisp: Remove old Lispworks cruft
2280 and replace it with invocation of new code in kmr-mop.lisp
2281 which actually works with Lispworks 4.2
2282 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
2284 * base/db-interface.lisp: Document the multiple values
2285 returned by DATABASE-ATTRIBUTE-TYPE so matches the
2286 undocumented CommonSQL behavior.
2287 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
2288 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
2289 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
2290 Implement CACHE-TABLE-QUERIES.
2291 * db-odbc/odbc-sql.lisp: Fix attribute-type function
2292 * test/test-fddl.lisp: Add tests for attribute type
2293 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
2295 * base/classes.lisp: Add attribute-cache slot to database clas
2296 * base/initialize.lisp: initialize-database-type now automatically
2297 loads database-type backend as needed.
2298 * base/test-init.lisp: Utilize new initialize-database-type functionality.
2299 * TODO: remove items done
2301 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2303 * sql/objects.lisp: remove create/drop-sequence-from-class.
2304 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
2305 * sql/objects.lisp: improved CommonSQL compatibility for
2306 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
2307 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
2308 * sql/generics.lisp: move generics from objects.lisp to here.
2310 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2311 * Version 2.9.6-pre1
2312 * db-mysql/mysql-client-info.lisp: Add client version 4.1
2314 * sql/sql.lisp: Make *default-database* the default for
2317 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2319 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
2321 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
2322 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
2323 on a metaclass specialized from standard-db-class.
2326 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2327 * Version 2.9.4: Multiple changes to support Allegro's "modern"
2328 lisp which uses a lowercase reader and has case-sensitive symbols
2329 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
2330 exposed by case-sensitive mlisp.
2332 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2333 * Version 2.9.3: All tests now pass on all platforms!
2334 * LATEST-TEST-RESULTS: New file with summary of test results
2335 * sql/generics.lisp: New file for generic function definitions.
2336 * test/test-init.lisp: Display names of skipped tests.
2337 Use unwind-protect to ensure disconnect
2338 * sql/objects.lisp: Change database-type to database-underlying-type
2339 so that actual database engine is properly identified
2340 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
2341 return an ISO timestring for compatibility with other drivers.
2342 Workaround bug in MyODBC for LIST-TABLE-INDEXES
2343 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
2344 returns floating-point values for floor and truncate operations
2345 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
2346 * tests/test-basic.lisp: Port to regression tester
2347 * test/test-init.lisp: Output to *report-stream*
2348 * docs/appendix.xml: Document ODBC and SQLite backends.
2349 * sql/classes.lisp: Make output-sql require a database parameter.
2350 This allows SQL generation to have the proper case to support
2351 the differences in case handling between CommonSQL API,
2352 Postgresql, MySQL, Oracle.
2354 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2355 * Version 2.9.2: Improvments in database capability introspection
2356 and querying. Support transactions in MySQL where available.
2357 All tests now pass on MySQL and SQLite in addition to postgresql
2358 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
2359 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
2360 DATABASE-LIST-SEQUENCES.
2361 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
2362 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
2363 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
2364 * tests/*.lisp: Check database capabilities and remove tests which
2365 the database backend does not support
2366 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
2367 controls whether InnoDB tables will be created when supported on
2368 the underlying MySQL server.
2370 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2371 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
2372 supported by all database backends (except AODBC since
2373 AODBC doesn't support index querying)
2374 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
2375 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
2376 to support index queries
2377 * db-aodbc/aodbc-sql.lisp: Filter driver manager
2378 "information_schema" tables from LIST-TABLES
2379 * tests/test-basic.lisp: Remove table after testing
2380 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
2381 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
2382 which gets the underlying type of database -- required
2383 when dealing with ODBC databases and want to query
2384 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
2385 as first database-backend specific feature. Is T on
2386 :mysql, NIL on other backends. Change DROP-TABLE to
2389 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2390 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
2392 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2394 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
2395 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
2397 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2398 * Version 2.8.0: New API function: LIST-DATABASES
2399 * base/utils.lisp: Fix command-output on CMUCL/SBCL
2400 * db-*/*-sql.lisp: Add new database-list function
2401 * base/database.lisp: Add new LIST-DATABASES command
2403 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2405 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
2406 * db-sqlite/sqlite-api-uffi.lisp: Print error string
2409 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2411 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
2414 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2416 * base/objects.lisp, base/classes.lisp: Patch
2417 for db-kind from Eduardo Munoz
2419 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2421 * base/basic-sql.lisp: Fix FLATP in QUERY
2423 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2424 * Version 2.7.3: Implement RECONNECT
2426 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2427 * Version 2.7.2: Fix ODBC on Lispworks Windows
2429 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2430 * Version 2.7.1: Fix for new ODBC backend.
2431 clsql-odbc now works on SBCL, CMUCL, OpenMCL
2432 in addition to AllegroCL and Lispworks.
2434 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2435 * Version 2.7.0: New backend: ODBC. Tests as
2436 well as AODBC backend on Allegro,Lispworks.
2437 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
2438 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
2439 to explicitly set ODBC2 support. Add BIGINT support.
2440 Add result-types support. Added SQLTables.
2441 Fix array type in fetch-all-rows. Make width
2442 changable by database or query.
2443 * base/utils.lisp: Add process functions
2444 * base/package.lisp: Export utils to CLSQL-BASE-SYS
2445 * db-aodbc: Implement sequence functions,
2446 database-list-tables, database-list-attributes
2447 * tests/utils.lisp: Add support for ODBC backend,
2448 rework READ-SPECS to use +all-db-types+
2449 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
2452 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2453 * Version 2.6.13. Requires UFFI version 1.4.9
2454 * db-odbc/*.lisp: Further porting.
2455 Pre-alpha code! But, basic query is now working.
2457 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2459 * base/transactions.lisp: Add quote for macro
2460 expansion of WITH-TRANSACTIONS [Time Howe]
2461 * db-sqlite/sqlite-sql.lisp: Support memory database
2462 in database-probe [Ng Pheng Siong]
2463 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
2464 The DBI layer is not finished.
2466 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2468 * sql/objects.lisp: add :root-class functionality for
2469 list-classes and add duration type support [Marcus Pearce]
2470 * db-odbc: Add mid-level [DBI] layer
2472 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2474 * db-aodbc: Add methods for generic functions, some are
2475 not yet implemented.
2476 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
2479 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2481 * base/package.lisp: Add missing symbols [Marcus Pearce]
2483 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2485 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
2486 * utils/time.lisp: Multiple fixes [Marcus Pearce]
2487 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
2489 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2491 * sql/*.lisp: Remove schema versioning cruft
2493 * Makefile: Add classic subdirectory
2495 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2497 * sql/sql.lisp: Fix TRUNCATE command, bug reported
2499 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
2500 specific and easy for an application to directly support.
2501 Idea from Marcus Pearce.
2502 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
2503 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
2504 Keep low-level interface for future optimization
2505 supporting LIST-ATTRIBUTE-TYPES command.
2506 * Makefile: Add to db-sqlite and test directories.
2507 Include them in top-level Makefile
2509 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2511 * sql/relations.lisp: Add missing file
2512 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
2513 * test/test-time.lips: New file [Marcus Pearce]
2515 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2517 * test/test-init.lisp: Properly handle object
2518 creation. Close database after use.
2519 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2520 function so can have methods specialized on
2521 table being a string or an sql-table object.
2522 * base/pool.lisp: Really fix CMUCL locking
2524 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2526 * test/test-init.lisp: Signal correctly
2527 if any errors occurred in any test suite
2528 * base/loop-extensions.lisp: Fix error
2529 introduced for Lispworks
2530 * base/pool.lisp: Fix locking for CMUCL
2531 * base/objects.lisp: Remove schema-version cruft
2533 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2534 * Version 2.6.2: New CLSQL API functions:
2535 DESCRIBE-TABLE AND TRUNCATE-DATABASE
2536 Currently, this are only supported on :postgresql
2537 and :postgresql-socket
2538 * base/database.lisp: automatically load ASDF system
2539 in CONNECT if not already loaded
2540 * base/tests.lisp: disconnect database after testing
2541 * base/*.lisp: Remove CLOSED-DATABASE type in favor
2542 of storing open/closed status in slot of database
2543 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2544 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2545 DATABASE-DESCRIBE-TABLE
2546 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2547 * base/conditions: Remove duplicate condition
2548 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2549 * base/recording.lisp: Add new :QUERY type for recording
2551 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2552 * Version 2.6.1: documentation fixes, merged
2553 classic-tests into tests
2555 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2556 * Version 2.6.0 released: New API functions
2557 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2558 * doc/ref_clsql.xml: Document new functions
2559 * base/database.lisp: New API functions
2560 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2561 * base/utils.lisp: Fix use of position-char.
2562 Add COMMAND-OUTPUT used by backends for running
2563 external programs. Fix parsing of SQL*NET-compatible
2565 * base/loop-extension.lisp: Simplify package use
2566 for Lispworks and Allegro
2567 * db-*/*-sql.lisp: Added DATABASE-CREATE,
2568 DATABASE-DESTORY, PROBE-DATABASE methods
2569 * tests/test-init.lisp, clasic-tests/tests.lisp:
2570 Use destroy-database and create-database to ensure
2571 testing with empty database
2572 * tests/test-connection.lisp: Add tests for
2573 parsing of string connection-specs
2574 * examples/run-tests.sh: New file for running
2575 test suite on all installed CL implementations
2576 * examples/clsql-tutorial.lisp: moved from
2578 * examples/dot.clsql-tests.config: New file
2579 giving an example test configuration
2580 * test/README: Add notes about rtest/ptester
2581 downloads and link to sample test configuration file.
2583 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2584 * Version 2.5.1 released:
2585 * tests/*.lisp: Rework so tests are run
2586 on multiple backends automatically based
2587 on the contents of ~/.clsql-tests.config.
2588 Reuse helper functions from classic-tests.
2589 * base/database.lisp: Support connection-spec
2590 as string for CONNECT
2591 * classic-tests/tests.lisp: Automatically
2592 load database backends as needed.
2594 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2595 * Version 2.5.0 released:
2596 All tests for CLSQL and CLSQL-CLASSIC pass
2598 * base/loop-extension.lisp: Add Lispworks
2599 loop-extension. Improve type specifying on
2602 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2603 * Version 2.4.2 released:
2604 loop extension now supported on Allegro, all
2605 CLSQL-TESTS pass on Allegro.
2606 * sql/metaclasses.lisp: Some optimization
2607 of compute-slots, be selective when
2608 ordered-class-slots needs to be called
2609 instead of class-slots
2610 * TODO: add URL with documentation on
2611 extending Lispworks LOOP form
2613 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2614 * Version 2.4.1 released: CLSQL-TESt suite passes
2615 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2616 Allegro and Lispworks pass all tests except for
2617 FDML/LOOP/1 since the loop extension have not yet
2618 been ported to those implementions.
2619 * sql/metaclasses.lisp: Added new slot to standard-db-class
2620 to hold user-specified type. OpenMCL adjustments to compensate
2621 for its type-predicate function. Since AllegroCL, Lispworks,
2622 and OpenMCL have different slot orders, added compute-slots
2623 and ordered-class-slots functions so their slot order matches
2626 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2627 * Version 2.4.0 released: All tests for clsql-classic now finish
2628 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2629 mysql, postgresql, postgresql-sockets, and sqlite backends.
2630 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2631 * classic-tests/tests.lisp: Fix package name of
2632 number-to-sql-string.
2633 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2634 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2635 now passes tests on all support UFFI platforms.
2636 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2638 * multiple: Finish renaming of :types keyword to :result-types for
2639 greater CommonSQL compatibility, including documentation
2640 * sql/basic-cmds.lisp: Remove obsolete file
2642 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2643 * Version 2.3.3 released
2644 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2645 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2646 * Fix for schema table [Marcus Pearce]
2647 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2648 * Fixes to test suite [Marcus Pearce]
2650 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2651 * db-*/*-sql.lisp: Ensure that expr in
2652 database-query-result-set is a string
2653 * Documentation integration
2655 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2656 * With for Marcus Pearce's excellent work, I've merged
2657 his clsql-usql port into clsql. The original clsql
2658 interface is available in the clsql-classic package.
2660 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2661 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2662 adding further support for providing backend for UncommonSQL
2664 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2665 * Integrate patch from Aurelio Bignoli for SQLite backend
2667 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2668 * Converted documentation to XML format
2669 * Made package installable with asdf-install
2671 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2672 * Add for-each-row macro
2674 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2675 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2677 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2678 * Add support for SBCL, OpenMCL, and SCL
2679 * Add *load-truename* to search path for clsql's
2682 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2683 * Rework use of file types in .asd files
2685 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2686 * Add .asd definition files for ASDF users
2688 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2689 * Restructure directories for Common Lisp Controller v3 compatibility
2691 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2692 * Also change case of logical host in loader files
2693 * Rework handling of logical pathnames
2695 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2696 * Change case of logical host
2698 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2699 * clsql-base.system: Added base package that can be used without
2700 high-level SQL commands. Used for adding support for UncommonSQL.
2701 * *.system: Reworked logical pathnames to be more consistent with
2702 Common Lisp Controller.
2703 * debian/*: Completed initial Debian support
2705 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2707 * sql/transactions.cl:
2708 Added transaction support. Functions/macros added:
2709 with-transaction, commit-transaction, rollback-transaction,
2710 add-transaction-commit-hook, add-transaction-rollback-hook
2712 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2715 * sql/functional.cl:
2716 Added pool support in connect/disconnect and with-database.
2717 Removed with-db-from-pool as with-database can now works with the connections pool
2719 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2724 Completed connection pool.
2725 Added with-db-from-pool macro.
2727 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2729 Added initial support for connection pool
2730 * sql/transactions.cl
2731 Took transaction code from UncommonSQL and integrated
2732 into CLSQL code. See file for disclaimer about why this
2735 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2736 * interfaces/postgresql/postgresql-sql.cl:
2737 Fix keyword typo in database-read-large-object
2738 * interfaces/mysql/mysql-loader.cl
2739 Fix loading on Win32
2740 * test-suite/tester-clsql.cl
2741 Fix type coercion of double-float
2743 Added debian docbook catalog, made it the default
2745 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2746 * interface/postgresql/postgresql-api.cl:
2747 * interface/postgresql/postgresql-sql.cl:
2749 * sql/db-interface.cl:
2750 Added large objects support for postgresql.
2752 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2753 * src/postgresql-socket/postgresql-socket-api.cl:
2754 Fixed find-foreign-function call, eliminated crypt warning
2756 Multiple improvements
2758 Moved functionality from low-level interfaces to this file
2759 via generic functions
2760 * test-suite/tester.cl:
2761 Added test with acl-compat-tester, moved others to old-tests
2764 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2766 Reinstated commented out sections
2767 * interfaces/postgresql/postgresql-loader.cl:
2768 * interfaces/mysql/mysql-loader.cl:
2769 Updated find-forieign-library support.
2770 * interfaces/postgresql-socket/postgresql-socket-package.cl:
2771 Fixed require form for Lispworks (Thanks Marc Battyani!)
2772 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2773 Fixed eval of def-function for crypt library.
2775 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2776 * Added interface to support USQL high-level rouines
2778 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2779 * Separated db-interface and conditions from sql/sql.cl
2780 * Improved foreign library loading testing
2781 * interfaces/postgresql/postgresql-api.cl
2782 Added PQisBusy function
2783 * interfaces/clsql-uffi/clsql-uffi.cl
2784 Fixed sign error for 64-bit processing
2786 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2787 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2788 Fixes to read-double-from-socket. Added 64-bit integer support.
2789 * test-suite/xptest-clsql.cl
2790 Added testint for 64-bit integers
2791 * Additons to installation docs
2793 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2794 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2795 Implemented direct socket reading for field type :double
2796 * Added usage information for :types to documentation
2797 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
2799 * interfaces/clsql-uffi: Created new directory. Split common
2800 interface routines that use UFFI into this package. Required
2801 especially to support direct reading of 64-bit integers into
2802 bignums and bypassing temporary strings.
2803 * test-clsql.cl: Updated to test postgresql-socket's
2804 read-double-from-socket function.
2805 * test-suite/xptest-clsql.cl
2806 Started work on test suite
2808 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2809 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
2810 mysql-fetch-field-direct Got :auto types working
2811 * interfaces/postgresql/postgresql-api.cl
2812 * interfaces/postgresql-socket/postgresql-socket-api.cl
2813 Added pgsql-field-types enum. Got :auto types working.
2815 Renamed :field-types to :types.
2817 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2818 * Added field-types parameter to query, database-query,
2819 database-query-result-set, map-query. Haven't added code
2820 to utilize field types, yet.
2821 * Changed postgresql-socket result set from cons to a structure
2822 * Updated test-clsql.cl to use automated testing with a config
2824 * Changed return types of field accessors from cstring to
2825 (* :unsigned-char). This prepares for being able to use specified
2826 type conversions when taking field data into lisp.
2827 * Added field-type processing for most interfaces. Not done yet.
2829 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2830 * doc/ref.sgml: Updated MAP-QUERY example to use
2831 *read-default-float-format* (John Foderaro)
2832 * Extensive work to foreign library loaders and .system files to
2833 check for successful loading of foreign libraries.
2834 * Modified test-clsql.cl to allow more modularity and
2835 automated testing in future release.
2836 * mysql/mysql-sql.lisp: Added field types
2838 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
2839 * mysql/mysql-sql.lisp:
2840 - Added support for Allegro CL and Lispworks using UFFI layer
2841 - Changed database-connect to use mysql-real-connect. This way,
2842 can avoid using double (unwind-protect)
2843 - Changed database-connect to have MySQL library allocate space
2844 for MYSQL structure. This will make the code more robust in
2845 the event that MySQL library changes the size of the mysql-mysql