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