1 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
2 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
4 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
5 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
7 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
9 * sql/syntax: Commit patch from Alan Shields to supress reader
10 macros when *read-supress* is T.
12 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
14 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
15 from Janis Dzerins to support unicode on SBCL
16 * sql/syntax: Commit patch from Alan Shields to improve reporting
17 of invalid syntax statements.
19 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
21 * db-mysql/mysql-sql.lisp: Add port to connection specification
22 based on patch from Dave Watson
23 * doc/appendix.xml: Document MySQL port parameter to connection spec
25 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
27 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
29 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
30 * sql/oodml.lisp: Add missing database argument [Patch from
33 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
34 * sql/oodml.lisp: Improve database priority in
35 update-records-from-instance [Patch from Walter C. Pelissero]
37 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
39 * sql/package.lisp: Export database-reconnect from clsql-sys
41 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
42 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
43 [Patch from Walter Pelissero]
45 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
46 * db-postgresql/postgresql-loader.lisp: Add additional
47 directories to Fink on darwin [patch from Cyrus Harmon].
49 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
51 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
52 is invoked [suggested by Alan Shutko].
53 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
54 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
55 to def-view-class [fix suggested by Fred Gilham].
57 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
58 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
60 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
61 * doc/*.xml: Fix spelling of Vladimir
63 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
64 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
65 now that LispWorks is an independant company [noted by
68 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
69 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
70 Better support for 64 bit environments
72 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
74 * sql/metaclass.lisp: Make t the default value of :set
75 [noted by Cyrus Harmon]
77 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
79 * uffi/clsql-uffi.lisp: Add support for unsigned integers
80 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
81 unsigned integers. Apply patch from Yannick Gingras to
82 implement database-sequence-last.
84 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
85 * doc/ref-fdml.lisp: Fix variable tag name to varname
86 [noted by Eduardo Munoz]
87 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
89 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
91 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
93 * sql/metaclass.lisp: Remove unnecssary (and runtime error
94 causing) change-class invocation when running on CLISP.
95 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
96 to fix structure name.
97 * sql/database.lisp: More specific error message with trying
98 to use a database value of NIL.
99 * sql/expressions.lisp: Accept a string for the table name
100 in (sql-output sql-delete database) [suggested by Ed Symanzik].
102 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
104 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
105 ignore columns which have been dropped.
106 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
107 Use sb-md5 package on SBCL, recommended by Chris Capel
109 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
110 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
111 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
112 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
114 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
115 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
117 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
118 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
119 contributed by Aurelio Bignoli
121 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
122 * sql/oodml.lisp: Commit patch from Walter Pelis
123 to use an object's database for a select on its slot.
125 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
126 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
127 Aurelio Bignoli to fix negative 64-bit integers
129 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
130 * db-mysql/mysql.c: Fix parameters in bind_param call
132 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
133 * uffi/clsql-uffi.lisp: Add support for :blob result-type
134 * db-mysql/mysql-sql.lisp: Add support for :blob
137 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
138 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
139 missing quotes for types in code that is still in development
140 (thanks to Joerg Hoehle)
142 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
143 * Version 3.0.8 released
144 * db-sqlite/sqlite-*.lisp: Apply patch from
145 Aurelio Bignoli with improvements
147 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
148 * multiple: Apply patch from Joerg Hoehle with multiple
151 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
152 * Version 3.0.7 released
153 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
154 Add support for mediumint.
155 * sql/metaclass.lisp: Rework CLISP MOP handling
156 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
158 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
159 * sql/metaclass.lisp: Support CLISP's attribute name
160 for the type field in direct class slots
162 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
163 * Version 3.0.6 released
164 * BUGS: New file. Document suspected SIGPIPE
165 interaction between SBCL and libpq used in
167 * doc/ref-fdml.lisp: Document the :caching and :refresh
168 keywords of the SELECT function.
169 * doc/ref-ooddml.lisp: Document the new *default-caching*
171 * sql/package.lisp: Export *default-caching*
172 * sql/oodml.lisp: Use *default-caching* to
173 control default caching behavior.
175 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
176 * Version 3.0.5 release
177 * doc/appendix.xml: Add note about loading Oracle8 version
178 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
179 data from David Young.
181 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
182 * doc/Makefile, doc/catalog-darwin.xml: Apply
183 patch from Cyrus Harmon for building docs on Mac OS X
184 * sql/package.lisp: Add new (pre-release) clisp MOP package
186 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
187 * Version 3.0.4 Release
188 * multiple: Remove superfluous quotes in UFFI def-type
189 and def-foreign-type forms.
191 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
192 * Version 3.0.3 Release
193 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
194 from Tagore Smith to call force-output after sending authentication
195 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
196 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
197 to a database of that type so that functions that indicate capabilities of
198 database are available.
200 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
201 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
203 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
204 * Version 3.0.2 Release
205 * TODO: Add note about ODBC on Windows
206 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
208 * db-odbc/odbc-ff-interface.lisp: Change the return type
209 of SQLSetEnvAttr to :short
211 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
212 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
213 slot of the employee View Class definition [reported by Franz Deuzer].
215 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
216 * Version 3.0.1 Release
217 * tests/test-init.lisp: Add second join class to employee-address
218 to test a class with two join slots.
219 * sql/oodml.lisp: Fix find-all function for a class with multiple
221 * TODO: Remove need to test/fix multiple join classes
223 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
224 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
225 from Jon Buffington for file locations on Darwin.
227 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
228 * sql/db-interface.lisp: Improve messages when functions
229 are passed a database object, but the method is not specialized
230 for that database type.
231 * sql/metaclasses.lisp: Fix inline declaration (reported by
234 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
235 * TODO: Add bug report about SQL generation with a table
236 containing two join slots.
237 * sql/oodml.lisp: Add optional size to VARCHAR type
239 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
240 * Version 3.0.0 Release
241 * sql/expressions.lisp: Change declaration that
242 caused error on openmcl
243 * db-aodbc/aodbc-sql.lisp: Fix storage location
244 of odbc connection. Specialize database-query since
245 dbi's :types keyword is different than generic-odbc's
246 :result-types keyword
247 * sql/db-interface.lisp: Add warnings for methods
248 not specialized by a db backends
249 * tests/test-fddl.lisp: Fix case of symbols to support
250 case-sensitive Allegro
251 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
252 * tests/test-init.lisp: Note that odbc driver for postgresql
253 doesn't properly handle table ownership
254 * LATEST-TEST-RESULTS: update with version 3.0.0
256 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
257 * sql/expressions.lisp: conditionalise escaping of backslash in
258 generated SQL strings on backend.
259 * tests/test-fdml.lisp: test for escaping of backslash.
260 * sql/oodml.lisp: minor tidying in FIND-ALL.
262 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
263 * NEWS: Initial 3.0 announcement draft
264 * README: Expand acknowledgements of incorporated projects
265 * CONTRIBUTORS: Further document Marcus Pearce contributions
267 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
268 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
269 to print floats with the exponent markers removed.
270 * tests/test-oodml.lisp: add tests for updating records with floats.
272 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
273 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
274 CommonSQL compatibility.
275 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
276 this column constraint syntax is not supported.
277 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
278 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
281 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
282 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
283 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
284 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
286 * doc/ref-oodml.xml: add examples for OODML.
287 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
289 * sql/metaclasses.lisp: update docstrings.
290 * tests/test-init.lisp: change :db-constraints for emplid to
291 (:not-null :unique) as a temporary test for multiple column constraints
293 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
294 return type of (SETF SLOT-VALUE-USING-CLASS).
295 * TODO, doc/TODO: remove items done.
298 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
299 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
301 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
303 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
304 * sql/expressions.lisp: reactivate caching of generated SQL strings.
305 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
306 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
307 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
308 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
309 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
310 sql/expressions.lisp.
311 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
312 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
313 * sql/generics.lisp: add docstrings.
315 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
317 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
318 code in favor of fixing UFFI with James Bielman's patch
320 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
322 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
325 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
326 * README, INSTALL: update URLs. Minor updates to descriptions.
327 * tests/README: remove stuff about editing contexts.
329 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
330 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
331 *default-string-length*
333 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
334 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
336 * tests/test-fddl.lisp: add tests for column and table constraints
337 in CREATE-TABLE. Add test for OWNER keyword parameter to
338 LIST-TABLES (assuming same underlying machinery in other FDDL
340 * tests/test-init.lisp: restrict above test to postgresql and oracle.
342 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
343 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
346 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
347 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
349 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
351 * doc/*.xml: documentation additionals and fixes so
352 that docbook passes xmllint.
354 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
356 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
357 to change escaping of single quotes. Mild optimizations
358 for escaped string output.
359 * doc/ref-ooddl.lisp: documentation additions
360 * doc/ref-oodml.lisp: Add purpose to functions
361 * TODO: Add need to test single quote escaping
363 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
364 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
365 * sql/ooddl.lisp: Added SMALLINT type
366 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
367 * db-mysql/mysql-objects.lisp: Added SMALLINT type
368 * sql/package.lisp: Export SMALLINT
369 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
372 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
373 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
374 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
375 View Class slot option.
376 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
377 slot option accepting a list of constraints [reported by Travis Cross].
378 * doc/ref-fddl.xml: add some examples of specifying column and
379 table constraints to the documentation for CREATE-TABLE.
380 * TODO: add note about adding tests for table/column constraints. Add
381 optimisation note about using cached attribute types in insert/update
384 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
385 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
386 features and so on the documentation for each backend.
387 * doc/TODO: remove items done.
388 * doc/ref-transaction.xml: add note in introduction about
389 autocommit mode as a difference from CommonSQL.
390 * doc/ref-syntax.xml: add notes about SQL syntax state functions
391 being macros in CLSQL. Add note about SQL operators which are
394 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
395 * Version 2.11.12 released
396 * doc/ref-recording.xml: document SQL I/O recording.
397 * doc/ref-prepared.xml: new file for documenting prepared statements.
398 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
400 * doc/ref-conditions.xml: complete documentation of condition system.
401 * doc/global-index.xml: add symbols from condition system and remove
402 those from LOB and prepared statement APIs.
403 * doc/ref-fdml.xml: complete documentation of FDML.
404 * doc/glossary.xml: add View Class.
405 * doc/TODO: remove items done.
406 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
407 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
408 additional slot accessors for condition classes.
410 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
411 * doc/ref-ooddl.lisp: Add documentation
412 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
413 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
414 * doc/oodml.lisp: Rename references to new name of
415 *DEFAULT-STRING-LENGTH*
417 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
418 * doc/ref-transaction.xml: document transaction handling.
419 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
420 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
421 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
422 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
425 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
426 * doc/ref-fdml.xml: document the FDML.
427 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
428 * sql/ooddl.lisp: moved *default-varchar-length* to here from
429 oodml.lisp and renamed to *default-string-length*
431 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
432 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
433 to allow specifying transactionless table creation
434 * doc/ref-oodml.lisp: Add new keyword to signature of
437 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
439 * sql/expressions.lisp: when removing duplicate table identifiers
440 in the FROM clause of a query, check both table name and alias
442 * sql/fdml.lisp: remove DESCRIBE-TABLE.
443 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
444 DATABASE-DESCRIBE-TABLE.
445 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
446 and LIST-TABLE-INDEXES.
447 * sql/generic-postgresql.lisp: add reader conditional #+nil for
448 DATABASE-DESCRIBE-TABLE and comment about its uses for
449 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
450 returning type info for all attributes.
451 Fix DATABASE-SEQUENCE-LAST.
452 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
453 LIST-INDEXES with additional keyword parameter :ON.
454 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
455 with LIST-INDEXES (with :ON parameter).
456 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
457 * doc/ref-connect.xml: minor tidying.
458 * doc/ref-fddl.xml: document the FDDL.
459 * doc/TODO: removed items done. Moved note about transaction handling
461 * TODO: move note about transaction handling to doc/TODO. Added
462 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
464 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
466 * sql/syntax.lisp: updated docstrings.
467 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
469 * sql/database.lisp: add docstrings for CREATE-DATABASE,
470 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
471 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
472 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
473 * doc/ref-connect.xml: document connection/initialisation.
474 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
475 * doc/TODO: remove items done.
476 * Makefile: add db-oracle to to SUBDIRS.
478 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
479 * sql/oodml.lisp: Add new serialization functions:
480 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
481 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
482 from a table that has more than one primary index.
483 * sql/conditions.lisp: Fix printing of closed-database error
485 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
487 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
488 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
490 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
491 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
492 of SQL-EXPRESSION from CLSQL-SYS.
493 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
494 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
495 * doc/Makefile: added Mandrake linux.
496 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
497 * doc/appendix.xml: fixed little typo (adsf).
498 * doc/glossary.xml: removed closed-database and note about
499 sql-expression, added some entries.
500 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
502 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
504 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
505 * multiple: Add generalized-boolean type as requested by
507 * TODO: Added need for test of generalized-boolean
509 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
510 * Version 2.11.7 released
511 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
512 for loading with clc-register-user-package. Remove personal
513 directory from path lisp.
514 * db-mysql/mysql-loader.lisp: Similar changes
516 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
517 * Version 2.11.6 released
518 * sql/oodml.lisp: Commit patch from Edi Weitz
519 to fix symbol writing/reading
520 * TODO: Add need for symbol slot test
522 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
523 * sql/package.lisp: remove duplicate export of
524 *CACHE-TABLE-QUERIES-DEFAULT*.
525 * doc/ref-*.xml, doc/global-index.xml: new files documenting
526 the CommonSQL compatible api.
527 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
528 reflect changes in return values of WITH-TRANSACTION.
530 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
531 * tests/README: Fix filename [reported by Bill Clementson]
532 * sql/transactions.lisp: Apply return value patch from
533 Edi Weitz for WITH-TRANSACTION
534 * tests/README: Remove ptester package requirement (as noted
537 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
538 * Version 2.11.5 released
539 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
540 Select connection-spec based on connection type. Bugs reported by
542 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
543 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
544 name on Windows, add \bin\ directory to search path
546 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
547 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
549 * sql/operations.lisp: substr now generates SUBSTR for use on
550 Oracle; added a new operator SUBSTRING for use elsewhere. minus
551 now generates MINUS for use on Oracle. Nvl signals an error if
552 not called with exactly 2 arguments. Add concat function for use
553 instead of the || operator on MySQL and Oracle.
554 * sql/syntax.lisp: changed internal symbol for the || operator to
556 * sql/expressions.lisp: removed redundant and unused functions
557 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
558 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
559 * sql/generics.lisp: removed generic function for
560 DATABASE-CONSTRAINT-DESCRIPTION (see above).
561 * tests/test-syntax.lisp: modified/added tests according to changes
562 in sql/operations.lisp.
563 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
565 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
566 and SQL-USERENV to the shared exports list. Removed
567 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
568 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
569 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
570 RECORD-SQL-RESULT from shared exports list.
572 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
573 * db-postgresql/postgresl-sql.lisp: Avoid computing
574 result-types lisp when nil result-types. Return only
575 one value when field-types nil.
576 * db-mysql/mysql-sql.lisp: Simple queries now
577 working with prepared statements.
579 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
580 * Version 2.11.4: MySQL 4.1 now passes all tests
581 * sql/package.lisp: Add API for prepared statments.
582 * sql/fdml.lisp: Change implicit flatp processing
583 for string map-query for greater CommonSQL conformance.
584 Add high-high API for prepared statements.
585 * tests/test-basic.lisp: Add test for map-query and
587 * sql/transactions.lisp: Change name/semantics of
588 autocommit to set-autocommit.
589 * sql/generic-postgresql.lisp: Add support for
591 * tests/test-internal.lisp: New file
592 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
593 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
594 Controller invocation.
595 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
596 * sql/expressions.lisp: Avoid emitting double parenthesis when a
597 function contains a subselect.
599 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
601 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
602 type (setf slot-value-using-class)
603 * TODO: add not that need a test case for the above fix
604 * db-sqlite: Remove clisp support since clisp can not run CLSQL
606 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
607 introduced in Oracle8. Leave older code selectable by a reader macro
608 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
609 uses OCILogon and does not the more complex session management.
611 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
612 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
613 * test/test-init.lisp: Add universal-time slot to person.
614 * test/test-fddl.lisp: Add tests of universal-time slot
615 * test/test-ooddl.lisp: Test universal-time slot in an object
616 * TODO: Remove need for universal-time test
617 * debian/rules, debian/control: Add cl-sql-oracle binary package
618 * doc/appendix.xml: Add Oracle backend information
619 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
620 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
621 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
622 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
623 for map-query to reflect changed in arguments to be CommonSQL compatible.
624 Updated old clsql conditions to new CommonSQL compatible conditions.
626 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
627 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
628 type. Added *default-varchar-length* rather than previous hard-coded
629 varchar length. Remove 'simple-string and 'simple-base-string since they
630 are subtypes of 'string.
631 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
632 local hard-coded value.
633 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
634 type string. Convert specified-type (CHAR n) to string. Convert specified-type
635 CHAR to lisp type character.
636 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
637 * sql/operations.lisp: Add userenv
638 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
640 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
641 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
642 * test/test-init.lisp: Add large table with bigint slot
644 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
645 * Version 2.11.1 released: Much simpler Oracle client library loading.
646 Now uses ORACLE_HOME environmental variable as well as tests default
647 path for Oracle Instant Client.
649 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
650 * Version 2.11.0 released: Full Oracle support. All tests pass
651 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
652 * tests/test-init.lisp: capitalize odbc backend name in banner
653 * CONTRIBUTORS: Add note about Marcus' excellent work
654 * sql/oodml.lisp: Removed old stub function
655 * clsql.asd: Use module names in current package rather than keyword package
656 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
657 in setting sequence position. Make autocommits more efficient.
658 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
659 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
660 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
661 and read-sql-value for NUMBER and CHAR.
662 * sql/base-classes.lisp: Add autocommit slot
663 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
664 * doc/intro.xml: Add Oracle
666 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
667 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
668 CLSQL-SIMPLE-WARNING with SQL-WARNING.
669 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
671 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
672 * clsql.asd: reworked module structure in package definition and
673 file names to better reflect component functionality.
674 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
675 exports list. Removed duplicate and obsolete exports. Exported
676 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
677 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
678 according to whether they are specified by CommonSQL or CLSQL
680 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
682 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
683 here from basic-sql.lisp.
684 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
685 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
686 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
688 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
689 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
691 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
692 * Version 2.10.22 released
693 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
694 has reversed class slots, change the default for ordered-class-slots so that slots
695 are now in the same order an in the def-view-class.
696 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
697 * test/test-fddl.lisp: Add two tests for mixed case names
698 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
699 for computed fields, this will require some adjustment to the test suite which
700 in many cases expects integers.
701 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
703 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
704 * Version 2.10.21 released
705 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
706 db-odbc, and db-aodbc.
707 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
708 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
709 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
710 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
711 sql/generic-odbc.lisp
712 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
713 Move common code to sql/generic-postgresql.lisp
714 * sql/classes.lisp: honor case of string tables when outputting queries
715 * sql/objects.lisp: Add database type to default database-get-type-specifier method
716 * sql/sql.lisp: Add database type to default database-abort-transaction method
717 * db-mysql/mysql-objects.lisp: New file
718 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
719 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
721 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
722 default db case for FDML/SELECT/25
724 22 May 2004 Kevin Rosenberg
725 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
726 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
727 and string identifiers with non-default case
728 * sql/table.lisp: Don't convert string table name to a symbol.
729 * sql/classes.lisp: Honor case of string identifiers
730 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
732 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
733 of owner phrases. Obtain server and client versions.
734 * db-oracle/oracle-objects.lisp: Fix type specifiers
735 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
736 * tests/test-init.lisp: Properly get username from Oracle connection-spec
738 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
739 * sql/generics.lisp: reworked docstrings. Remove generics for
740 ADD-TO-RELATION and REMOVE-FROM-RELATION.
741 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
742 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
743 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
744 for CommonSQL compatibility. Remove ADD-TO-RELATION and
745 REMOVE-FROM-RELATION.
746 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
747 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
748 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
749 * sql/conditions.lisp: add documentation for conditions. Add
750 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
752 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
753 * sql/basic-sql.lisp: reworked docstrings.
754 * sql/transactions.lisp: reworked docstrings.
755 * sql/sql.lisp: reworked docstrings.
756 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
757 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
758 * sql/database.lisp: reworked docstrings.
759 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
760 and FDML extensions and database extensions.
762 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
763 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
764 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
766 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
767 Oracle versions with the PURGE option required for drop table. This needs
768 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
770 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
771 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
772 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
773 * sql/table.lisp: reworked docstrings.
774 * sql/objects.lisp: moved *default-update-objects-max-len* here from
776 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
777 DROP-VIEW and DROP-INDEX and the use of the :transactions and
778 :constraints keyword args to CREATE-TABLE.
779 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
780 CommonSQL compatible with respect to column constraints.
782 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
783 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
784 Requires UFFI 1.5.0 or higher
786 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
788 * sql/conditions.lisp: Fix cerror
790 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
791 * Version 2.10.18 released: New condition hierarchy to be compatible
792 with CommonSQL -- not backward compatible with previous CLSQL.
793 * sql/db-interface.lisp: Add more default methods
794 * sql/objects.lisp: Add explicit table name to order-by parameters
795 in find-all when only one table to avoid selecting a duplicate row.
796 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
797 as previous logic was adding two fields (foo asc) to SELECT query.
798 Make :result-types :auto be the default for object selections.
799 Properly handle caching key when using multiple order-by with asc/desc
801 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
803 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
804 * sql/recording.lisp: reworked docstrings.
805 * sql/syntax.lisp: reworked docstrings.
806 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
807 SQL syntax state functions being macros.
809 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
810 * sql/package.lisp: Export initialize-database-type and
811 *initialize-database-types* from CLSQL package.
812 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
813 remove old CLSQL conditions.
814 * sql/loop-extensions.lisp: Make errors of type sql-user-error
815 * */*.lisp: Convert to from old to new conditions
817 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
818 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
819 To handle this difference, will need to add a new database-drop-table
821 * db-oracle/oracle-sql.lisp: Move server-version and
822 major-version-number to database object to allow multiple connections
823 to Oracle servers of different versions.
825 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
826 * TODO: moved notes about backends to doc/TODO.
827 * doc/TODO: added notes about backends and select extensions.
828 * sql/base-classes.lisp: remove obsolete schema slot in database
831 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
832 * db-oracle/oracle-api: Add OCIServerVersion
833 * db-oracle/oracle-sql: Query and store server version on connect
834 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
835 function to handle OCI's lack of bigint support
836 * test/test-basic.lisp: Separate bigint testing
837 * test/test-utils.lisp: Add oracle to specs and list of backends
839 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
840 run-time instantiation of variables in reader macros.
841 * TODO: Remove item already complete. Add note about
844 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
845 * sql/syntax.lisp: added condition to the reader macro to treat [*]
846 as a column identifier (rather than an operation) for CommonSQL
848 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
849 keword args to SELECT, [*] as column identifier, new MAP-QUERY
850 behaviour and the ANY and ALL operators in subqueries.
851 * tests/test-init.lisp: add set-operation and subquery tests to
852 appropriate skip lists.
853 * sql/objects.lisp: remove redundant and non CommonSQL compatible
854 ORDER-BY-DESCENDING keyword argument for SELECT.
855 * sql/classes.lisp: remove redundant and non CommonSQL compatible
856 ORDER-BY-DESCENDING keyword argument for SELECT.
857 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
860 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
861 * sql/db-interface.lisp: Add new db-type-has-union?
862 since Mysql 3.23 does not support unions.
863 * sql/test-init.lisp: Don't try union tests on database
864 backends which do not support it.
865 * db-oracle/*.lisp: initial port to UFFI
866 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
867 implement REFRESH for SELECT.
868 * tests/test-oodml.lisp: Add tests for deferred retrieval,
869 caching, refresh, and update-object-joins
870 * tests/test-init.lisp: Add deferred-employee-address class
872 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
873 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
874 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
875 ALL and EXISTS generate function expressions so they output the
877 * sql/classes.lisp: SELECT now generates appropriate SQL when
878 passed the SET-OPERATION and ALL keyword arguments.
879 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
880 accepts ordering constraints as pairs of the form (column direction)
881 where direction may be :ASC or :DESC.
882 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
883 Correct tests for ANY, SOME, ALL and EXISTS.
884 * tests/test-fdml.lisp: added test for COALESCE.
885 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
886 using funcall unless QUERY-EXPRESSION returns one column and its
887 FLATP slot is not nil in which case apply is used.
888 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
890 * TODO: remove items done.
891 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
892 DATABASE-LIST-ATTRIBUTES.
893 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
894 results in DATABASE-LIST-ATTRIBUTES.
896 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
897 * sql/classes.lisp: SELECT now accepts table identifiers as strings
898 for CommonSQL compliance. Add support for qualified sql identifiers
899 with aliased table names.
900 * tests/test-fdml.lisp: added tests for table identifiers as strings
901 in SELECT and for aliased definitions.
902 * tests/test-syntax.lisp: added tests for alias definitions.
904 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
905 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
906 field-names set to nil.
907 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
908 with null attribute values.
909 * sql/operations.lisp: modify SQL concatenation operator to accept
911 * sql/syntax.lisp: modify sql reader macro function to accept
912 unescaped sql concatenation operator.
913 * tests/test-fdml.lisp: unescape sql concatenation operator.
914 * tests/test-syntax.lisp: unescape sql concatenation operator.
915 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
916 Note to add test for universal-time. Note about difference from
917 CommonSQL in transaction handling.
919 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
920 * tests/test-init.lisp: Add deferred-employee-address
922 * tests/test-oodml.lisp: Add deferred retrieval testgs
924 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
926 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
927 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
928 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
929 * *: Fix minor style warnings
930 * clsql-classic: Remove system and subdirectory
931 * clsql-base: Remove system and subdirectory and
932 fold into clsql system
933 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
934 as supported platform.
936 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
937 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
938 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
939 Allegro 7.0beta AMD64
940 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
941 of ODBC longs since this type can vary on 64-bit platforms depending
942 upon the compilation options of unixODBC.
943 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
944 structures found by testing with AllegroCL 7.0b AMD64.
945 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
946 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
947 Initial caching support for SELECT
948 * tests/test-oodml.lisp: Avoid using cache when testing select.
949 * sql/kmr-mop.lisp: Explicitly check slot order and
950 store as a cl:*feature*
951 * sql/recording.lisp: Remove additional types to
952 increase CommonSQL conformance.
953 * tests/test-init.lisp: Change a :column attribute
954 to test symbols as value
955 * sql/relations.lisp: Remove functions since they don't support
956 many to many relationships.
957 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
958 of add-to-relations function and replace with explicit field settings.
959 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
961 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
963 * LATEST-TEST-RESULTS: results with current version
964 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
965 since cmu19 has opposite order of class slots.
966 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
967 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
969 * tests/test-init.lisp: Check test-database-underlying-type for
972 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
973 * sql/operations.lisp: complete remaining operations for the sql
974 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
975 UNION, INTERSECT, BETWEEN.
976 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
977 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
978 * tests/test-syntax.lisp: add tests for new operations.
979 * tests/test-fdml.lisp: add tests for queries based on new operations.
980 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
981 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
982 * TODO: removed entries done.
984 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
985 * tests/benchmarks.lisp: Add immediate vs. deferred
988 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
989 * Version 2.10.13: Now works on openmcl 0.14.2
990 * sql/objects.lisp: Add :retrieval :immediate for
992 * tests/test-init.lisp: Add non-index fields for testing
993 join class employee-addresss
994 * test/test-oodml.lisp: Add tests for retrieval immediate
995 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
996 values which are now listifed by openmcl 14.2.
997 * sql/objects.lisp: more framework for supporing immediate retrieval
999 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1000 * docs/intro.xml: Upload location of a README file
1001 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
1002 changing the type-specifier. Use a lisp type of (OR NULL FOO)
1003 for a specified-type of FOO unless :db-constraints :not-null.
1004 No need to specialize finalize-inheritance for openmcl.
1005 * tests/test-*.lisp: Rename fields so that joins occur on
1006 fields with different names. This ensures that join code is
1007 selecting the proper name.
1008 * test/test-init.lisp: Add :base-table for employee-address
1009 view class for testing.
1010 * sql/objects.lisp: Use view-table rather than name of table
1011 in a number of places to fix errors noted with using :base-table.
1013 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1014 * sql/objects.lisp: replace *update-records-on-make-instance* with
1015 *db-auto-sync* which also controls both automatic creation of
1016 new records on creation of new instance and updating of record
1017 fields on setting of instance slots (as suggested by Edi Weitz).
1018 * tests/test-init.lisp: replace *update-records-on-make-instance*
1019 with *db-auto-sync*.
1020 * sql/package.lisp: replace *update-records-on-make-instance*
1021 with *db-auto-sync*.
1022 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
1023 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
1024 and *default-database* in FIND-ALL.
1025 * sql/package.lisp: import time functions from CLSQL-BASE.
1026 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1027 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1028 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
1029 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
1032 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1033 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
1034 now return a sql-object-query type rather than directly performing a query.
1035 This improves CommonSQL conformance.
1036 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
1037 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
1038 depend on sql-object-query-type.
1039 * sql/loop-extensions.lisp: Move from base package
1040 * classic/package.lisp: remove references to map-query and do-query
1042 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1043 * TODO: New section on optimizations, especially optimizing JOINs.
1044 * sql/objects.lisp: Have :target-slot return of list of lists rather
1045 than a list of cons pairs to be conformant with CommonSQL.
1046 Make :target-slot much more efficient by using a SQL inner join
1047 statement and just requiring one SQL query. Add :retrieval :deferrred
1048 to target-slot joins. Add placeholder for update-objects-join.
1049 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
1050 and process them for query output-sql.
1052 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1054 * base/basic-sql.lisp: Avoid multiple evaluation
1055 of query-expression in DO-QUERY
1056 * sql/objects.lisp: Make SELECT a normal function.
1057 SELECT now accepts type-modified database identifiers, such as
1058 [foo :string] which means that the values in column foo are returned
1059 as Lisp strings. Add new *update-records-on-make-instance* special
1060 variable controlling automatic creation of new instances. Add missing
1061 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
1062 * sql/packages.lisp: Export *update-records-on-make-instance*
1063 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
1065 * test/test-fdml.lisp: Add tests for type-modified
1066 database identifiers.
1067 * test/test-init.lisp: Stop using add-relation since implementing
1068 many-to-many joins. Use *update-records-on-make-instance*
1069 to automatically store records on instance creation. Add many-to-many
1070 employee-address view-class.
1072 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1074 * base/loop.lisp: Add object iteration. Use :result-type
1075 :auto for result-set. Remove
1076 duplicate (and non-correct) code for non-list variables by
1077 simply making an atom variable into a list.
1078 * sql/package.lisp: Remove unnecessary clsql-sys package
1079 and replace it with clsql.
1080 * sql/metaclasses.lisp: Properly store specified-type from
1081 direct-slot-definition and then store translated type in
1082 effective-slot-definition
1083 * sql/classes.lisp: Don't output type in sql-output
1084 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
1085 [foo :integer] as fields in SELECT.
1086 * sql/query.lisp: Set default for :result-types to :auto in
1088 * sql/objects.lisp: Use specified-type when invocating
1089 database-get-type-specifier. def-view-class macro now returns
1091 * base/basic-sql.lisp: Make :AUTO the default value for
1092 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
1093 * sql/objects.lisp: Add bigint type
1094 * test/tests-basic.lisp: Add tests for :result-types for
1095 MAP-QUERY and DO-QUERY
1096 * test/test-fdml.lisp: Add test for result-types in LOOP
1097 and also using single symbol rather than a list for variables.
1098 Add test that default :result-types is auto for FDML QUERY.
1099 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
1100 of SQL-IDENT-ATTRIBUTE.
1101 * test/test-oodml.lisp: Enable OO loop iteration test,
1102 modify it so it doesn't depend on boolean where.
1104 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1106 * sql/objects.lisp: added derived type specifier for universal time.
1107 * sql/package.lisp: added #:universal-time to clsql-sys exports.
1108 * tests/test-oodml.lisp: added test for translation of boolean slots
1109 in SELECT with object queries.
1111 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1112 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
1113 for odbc/postgresql backend.
1114 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
1115 it can handle NIL values from the ODBC driver
1116 * tests/benchmarks.lisp: New file with initial
1118 * sql/relations.lisp: fix to add subclassing support,
1119 minor optimizations [Edi Weitz]
1121 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1123 * base/conditions.lisp: Add *backend-warning-behavior*
1125 * db-postgresql-socket/postgresql-socket-sql.lisp:
1126 Honor value of *backend-warning-behavior*
1127 * tests/test-fdml.lisp: Remove test of raw boolean value
1128 since different backends handle this differently. Add
1129 test for :column attribute.
1130 * tests/test-oodml.lisp: Add tests for boolean slot value
1131 and for :void-value attribute
1132 * tests/test-init.lisp: Use *backend-warning-behavior*
1133 to suppress warnings from postgresql about implicitly
1134 creating primary key in tables. Add new address table.
1136 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1138 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
1139 result-types is :auto
1140 * sql/objects.lisp: Properly handled writing/reading Boolean
1141 values from SQL database when retrieving objects.
1142 * test/test-fdml.lisp: Add another test for boolean results
1143 * test/utils.lisp: Fix incorrect declaration
1145 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1147 * sql/generics.lisp: add generic function for SELECT.
1148 * sql/objects.lisp: make SELECT a method specialisation.
1149 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
1150 referred to are View Classes.
1151 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
1152 query-expression arg evaluates to a list, then we have an object
1154 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
1156 * TODO: remove items done and add a todo for SELECT.
1157 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
1159 * sql/sql.lisp: add :field-names arg to QUERY.
1160 * tests/test-fdml.lisp: minor rework to use :field-names arg to
1163 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1164 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
1165 or more View Classes.
1166 * sql/objects.lisp: make the :flatp argument to SELECT work with
1168 * sql/objects.lisp: make SELECT accept a :result-types argument
1169 (defaults to :auto) which is passed on to QUERY.
1170 * sql/objects.lisp: SELECT returns field-names as a second value.
1171 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
1172 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
1173 to SELECT and take only first value as appropriate.
1174 * tests/test-fdml.lisp: add two new tests for query result coercion
1175 and the field-names returned as a second value from SELECT.
1176 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
1178 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1179 * Version 2.10.6-pre1
1180 * sql/metaclasses.lisp: Add void-value slot
1181 * doc/csql.xml: Update def-view-class documentation
1182 * test/test-init.lisp: Change old :db-type to :db-kind.
1183 Remove old :nulls-ok attributes.
1184 * sql/objects.lisp: Add new universal-time and bigint
1185 types. Optimize reading of integers using parse-integer
1186 rather than read-from-string.
1187 * */*.lisp: Merge clsql-base-sys and clsql-base packages
1188 into clsql-base package
1189 * classic/sql.lisp: Move large object support into base, leaving
1190 classic without any functionality that is provided in the clsql
1192 * classic/package.lisp: Rename clsql-classic-sys package to
1193 its former nickname of clsql-classic
1195 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1196 * Version 2.10.5: SQLite backend now passes all result-types tests
1197 * clsql-sqlite.asd: Depend on clsql-uffi system
1198 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
1199 for efficiency and code reuse.
1200 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
1201 for better cross-implementation compatibility.
1203 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1205 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
1207 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
1208 bug on SBCL in result-field-names function as reported by Marcus Pearce
1209 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
1210 manifest in SBCL testing
1212 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1214 * sql/database.lisp: Conform more to CommonSQL output
1215 for STATUS command [Marcus Pearce]
1216 * sql/sqlite-sql.lisp: Rework to use result-types
1217 * sql/sqlite-api-clisp.lisp: Add compatibility layer
1218 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
1219 be cleaned up of most clisp reader conditionals
1220 * sql/test-init.lisp: Now run field type tests on sqlite
1223 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1225 * base/basic-sql.lisp: Set default value of :result-types
1226 to :auto for more CommonSQL conformance.
1227 * test/test-fdml.lisp: Add tests for numeric value of fields
1230 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1231 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
1232 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
1233 Return field names as second value for QUERY. This can be overridden
1234 for efficiency with the new keyword :FIELD-NAMES set to NIL
1235 in the QUERY invocation.
1236 * test/test-fdml.lisp: Add tests for new field-name feature
1237 * sql/metaclass.lisp: Remove old Lispworks cruft
1238 and replace it with invocation of new code in kmr-mop.lisp
1239 which actually works with Lispworks 4.2
1240 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
1242 * base/db-interface.lisp: Document the multiple values
1243 returned by DATABASE-ATTRIBUTE-TYPE so matches the
1244 undocumented CommonSQL behavior.
1245 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
1246 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
1247 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
1248 Implement CACHE-TABLE-QUERIES.
1249 * db-odbc/odbc-sql.lisp: Fix attribute-type function
1250 * test/test-fddl.lisp: Add tests for attribute type
1251 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
1253 * base/classes.lisp: Add attribute-cache slot to database clas
1254 * base/initialize.lisp: initialize-database-type now automatically
1255 loads database-type backend as needed.
1256 * base/test-init.lisp: Utilize new initialize-database-type functionality.
1257 * TODO: remove items done
1259 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1261 * sql/objects.lisp: remove create/drop-sequence-from-class.
1262 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
1263 * sql/objects.lisp: improved CommonSQL compatibility for
1264 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
1265 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
1266 * sql/generics.lisp: move generics from objects.lisp to here.
1268 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1269 * Version 2.9.6-pre1
1270 * db-mysql/mysql-client-info.lisp: Add client version 4.1
1272 * sql/sql.lisp: Make *default-database* the default for
1275 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1277 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
1279 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
1280 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
1281 on a metaclass specialized from standard-db-class.
1284 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1285 * Version 2.9.4: Multiple changes to support Allegro's "modern"
1286 lisp which uses a lowercase reader and has case-sensitive symbols
1287 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
1288 exposed by case-sensitive mlisp.
1290 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1291 * Version 2.9.3: All tests now pass on all platforms!
1292 * LATEST-TEST-RESULTS: New file with summary of test results
1293 * sql/generics.lisp: New file for generic function definitions.
1294 * test/test-init.lisp: Display names of skipped tests.
1295 Use unwind-protect to ensure disconnect
1296 * sql/objects.lisp: Change database-type to database-underlying-type
1297 so that actual database engine is properly identified
1298 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
1299 return an ISO timestring for compatibility with other drivers.
1300 Workaround bug in MyODBC for LIST-TABLE-INDEXES
1301 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
1302 returns floating-point values for floor and truncate operations
1303 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
1304 * tests/test-basic.lisp: Port to regression tester
1305 * test/test-init.lisp: Output to *report-stream*
1306 * docs/appendix.xml: Document ODBC and SQLite backends.
1307 * sql/classes.lisp: Make output-sql require a database parameter.
1308 This allows SQL generation to have the proper case to support
1309 the differences in case handling between CommonSQL API,
1310 Postgresql, MySQL, Oracle.
1312 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1313 * Version 2.9.2: Improvments in database capability introspection
1314 and querying. Support transactions in MySQL where available.
1315 All tests now pass on MySQL and SQLite in addition to postgresql
1316 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
1317 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
1318 DATABASE-LIST-SEQUENCES.
1319 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
1320 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
1321 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
1322 * tests/*.lisp: Check database capabilities and remove tests which
1323 the database backend does not support
1324 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
1325 controls whether InnoDB tables will be created when supported on
1326 the underlying MySQL server.
1328 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1329 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
1330 supported by all database backends (except AODBC since
1331 AODBC doesn't support index querying)
1332 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
1333 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
1334 to support index queries
1335 * db-aodbc/aodbc-sql.lisp: Filter driver manager
1336 "information_schema" tables from LIST-TABLES
1337 * tests/test-basic.lisp: Remove table after testing
1338 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
1339 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
1340 which gets the underlying type of database -- required
1341 when dealing with ODBC databases and want to query
1342 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
1343 as first database-backend specific feature. Is T on
1344 :mysql, NIL on other backends. Change DROP-TABLE to
1347 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1348 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
1350 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1352 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
1353 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
1355 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1356 * Version 2.8.0: New API function: LIST-DATABASES
1357 * base/utils.lisp: Fix command-output on CMUCL/SBCL
1358 * db-*/*-sql.lisp: Add new database-list function
1359 * base/database.lisp: Add new LIST-DATABASES command
1361 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1363 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
1364 * db-sqlite/sqlite-api-uffi.lisp: Print error string
1367 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1369 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
1372 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1374 * base/objects.lisp, base/classes.lisp: Patch
1375 for db-kind from Eduardo Munoz
1377 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1379 * base/basic-sql.lisp: Fix FLATP in QUERY
1381 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1382 * Version 2.7.3: Implement RECONNECT
1384 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1385 * Version 2.7.2: Fix ODBC on Lispworks Windows
1387 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1388 * Version 2.7.1: Fix for new ODBC backend.
1389 clsql-odbc now works on SBCL, CMUCL, OpenMCL
1390 in addition to AllegroCL and Lispworks.
1392 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1393 * Version 2.7.0: New backend: ODBC. Tests as
1394 well as AODBC backend on Allegro,Lispworks.
1395 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
1396 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
1397 to explicitly set ODBC2 support. Add BIGINT support.
1398 Add result-types support. Added SQLTables.
1399 Fix array type in fetch-all-rows. Make width
1400 changable by database or query.
1401 * base/utils.lisp: Add process functions
1402 * base/package.lisp: Export utils to CLSQL-BASE-SYS
1403 * db-aodbc: Implement sequence functions,
1404 database-list-tables, database-list-attributes
1405 * tests/utils.lisp: Add support for ODBC backend,
1406 rework READ-SPECS to use +all-db-types+
1407 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
1410 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1411 * Version 2.6.13. Requires UFFI version 1.4.9
1412 * db-odbc/*.lisp: Further porting.
1413 Pre-alpha code! But, basic query is now working.
1415 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1417 * base/transactions.lisp: Add quote for macro
1418 expansion of WITH-TRANSACTIONS [Time Howe]
1419 * db-sqlite/sqlite-sql.lisp: Support memory database
1420 in database-probe [Ng Pheng Siong]
1421 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
1422 The DBI layer is not finished.
1424 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1426 * sql/objects.lisp: add :root-class functionality for
1427 list-classes and add duration type support [Marcus Pearce]
1428 * db-odbc: Add mid-level [DBI] layer
1430 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1432 * db-aodbc: Add methods for generic functions, some are
1433 not yet implemented.
1434 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1437 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1439 * base/package.lisp: Add missing symbols [Marcus Pearce]
1441 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1443 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1444 * utils/time.lisp: Multiple fixes [Marcus Pearce]
1445 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1447 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1449 * sql/*.lisp: Remove schema versioning cruft
1451 * Makefile: Add classic subdirectory
1453 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1455 * sql/sql.lisp: Fix TRUNCATE command, bug reported
1457 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1458 specific and easy for an application to directly support.
1459 Idea from Marcus Pearce.
1460 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
1461 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1462 Keep low-level interface for future optimization
1463 supporting LIST-ATTRIBUTE-TYPES command.
1464 * Makefile: Add to db-sqlite and test directories.
1465 Include them in top-level Makefile
1467 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1469 * sql/relations.lisp: Add missing file
1470 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1471 * test/test-time.lips: New file [Marcus Pearce]
1473 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1475 * test/test-init.lisp: Properly handle object
1476 creation. Close database after use.
1477 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
1478 function so can have methods specialized on
1479 table being a string or an sql-table object.
1480 * base/pool.lisp: Really fix CMUCL locking
1482 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1484 * test/test-init.lisp: Signal correctly
1485 if any errors occurred in any test suite
1486 * base/loop-extensions.lisp: Fix error
1487 introduced for Lispworks
1488 * base/pool.lisp: Fix locking for CMUCL
1489 * base/objects.lisp: Remove schema-version cruft
1491 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1492 * Version 2.6.2: New CLSQL API functions:
1493 DESCRIBE-TABLE AND TRUNCATE-DATABASE
1494 Currently, this are only supported on :postgresql
1495 and :postgresql-socket
1496 * base/database.lisp: automatically load ASDF system
1497 in CONNECT if not already loaded
1498 * base/tests.lisp: disconnect database after testing
1499 * base/*.lisp: Remove CLOSED-DATABASE type in favor
1500 of storing open/closed status in slot of database
1501 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
1502 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
1503 DATABASE-DESCRIBE-TABLE
1504 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
1505 * base/conditions: Remove duplicate condition
1506 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
1507 * base/recording.lisp: Add new :QUERY type for recording
1509 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1510 * Version 2.6.1: documentation fixes, merged
1511 classic-tests into tests
1513 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1514 * Version 2.6.0 released: New API functions
1515 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
1516 * doc/ref_clsql.xml: Document new functions
1517 * base/database.lisp: New API functions
1518 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
1519 * base/utils.lisp: Fix use of position-char.
1520 Add COMMAND-OUTPUT used by backends for running
1521 external programs. Fix parsing of SQL*NET-compatible
1523 * base/loop-extension.lisp: Simplify package use
1524 for Lispworks and Allegro
1525 * db-*/*-sql.lisp: Added DATABASE-CREATE,
1526 DATABASE-DESTORY, PROBE-DATABASE methods
1527 * tests/test-init.lisp, clasic-tests/tests.lisp:
1528 Use destroy-database and create-database to ensure
1529 testing with empty database
1530 * tests/test-connection.lisp: Add tests for
1531 parsing of string connection-specs
1532 * examples/run-tests.sh: New file for running
1533 test suite on all installed CL implementations
1534 * examples/clsql-tutorial.lisp: moved from
1536 * examples/dot.clsql-tests.config: New file
1537 giving an example test configuration
1538 * test/README: Add notes about rtest/ptester
1539 downloads and link to sample test configuration file.
1541 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1542 * Version 2.5.1 released:
1543 * tests/*.lisp: Rework so tests are run
1544 on multiple backends automatically based
1545 on the contents of ~/.clsql-tests.config.
1546 Reuse helper functions from classic-tests.
1547 * base/database.lisp: Support connection-spec
1548 as string for CONNECT
1549 * classic-tests/tests.lisp: Automatically
1550 load database backends as needed.
1552 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1553 * Version 2.5.0 released:
1554 All tests for CLSQL and CLSQL-CLASSIC pass
1556 * base/loop-extension.lisp: Add Lispworks
1557 loop-extension. Improve type specifying on
1560 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1561 * Version 2.4.2 released:
1562 loop extension now supported on Allegro, all
1563 CLSQL-TESTS pass on Allegro.
1564 * sql/metaclasses.lisp: Some optimization
1565 of compute-slots, be selective when
1566 ordered-class-slots needs to be called
1567 instead of class-slots
1568 * TODO: add URL with documentation on
1569 extending Lispworks LOOP form
1571 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1572 * Version 2.4.1 released: CLSQL-TESt suite passes
1573 all tests for postgresql and CMUCL, SBCL, OpenMCL.
1574 Allegro and Lispworks pass all tests except for
1575 FDML/LOOP/1 since the loop extension have not yet
1576 been ported to those implementions.
1577 * sql/metaclasses.lisp: Added new slot to standard-db-class
1578 to hold user-specified type. OpenMCL adjustments to compensate
1579 for its type-predicate function. Since AllegroCL, Lispworks,
1580 and OpenMCL have different slot orders, added compute-slots
1581 and ordered-class-slots functions so their slot order matches
1584 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1585 * Version 2.4.0 released: All tests for clsql-classic now finish
1586 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
1587 mysql, postgresql, postgresql-sockets, and sqlite backends.
1588 * db-mysql/mysql-sql.lisp: Fix array dereferencing
1589 * classic-tests/tests.lisp: Fix package name of
1590 number-to-sql-string.
1591 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
1592 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
1593 now passes tests on all support UFFI platforms.
1594 * db-postgresql-socket/postgresql-socket-api.list: Ported to
1596 * multiple: Finish renaming of :types keyword to :result-types for
1597 greater CommonSQL compatibility, including documentation
1598 * sql/basic-cmds.lisp: Remove obsolete file
1600 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1601 * Version 2.3.3 released
1602 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
1603 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
1604 * Fix for schema table [Marcus Pearce]
1605 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
1606 * Fixes to test suite [Marcus Pearce]
1608 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1609 * db-*/*-sql.lisp: Ensure that expr in
1610 database-query-result-set is a string
1611 * Documentation integration
1613 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1614 * With for Marcus Pearce's excellent work, I've merged
1615 his clsql-usql port into clsql. The original clsql
1616 interface is available in the clsql-classic package.
1618 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1619 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
1620 adding further support for providing backend for UncommonSQL
1622 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
1623 * Integrate patch from Aurelio Bignoli for SQLite backend
1625 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
1626 * Converted documentation to XML format
1627 * Made package installable with asdf-install
1629 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
1630 * Add for-each-row macro
1632 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
1633 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
1635 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
1636 * Add support for SBCL, OpenMCL, and SCL
1637 * Add *load-truename* to search path for clsql's
1640 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
1641 * Rework use of file types in .asd files
1643 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
1644 * Add .asd definition files for ASDF users
1646 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1647 * Restructure directories for Common Lisp Controller v3 compatibility
1649 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1650 * Also change case of logical host in loader files
1651 * Rework handling of logical pathnames
1653 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1654 * Change case of logical host
1656 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
1657 * clsql-base.system: Added base package that can be used without
1658 high-level SQL commands. Used for adding support for UncommonSQL.
1659 * *.system: Reworked logical pathnames to be more consistent with
1660 Common Lisp Controller.
1661 * debian/*: Completed initial Debian support
1663 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1665 * sql/transactions.cl:
1666 Added transaction support. Functions/macros added:
1667 with-transaction, commit-transaction, rollback-transaction,
1668 add-transaction-commit-hook, add-transaction-rollback-hook
1670 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1673 * sql/functional.cl:
1674 Added pool support in connect/disconnect and with-database.
1675 Removed with-db-from-pool as with-database can now works with the connections pool
1677 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1682 Completed connection pool.
1683 Added with-db-from-pool macro.
1685 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1687 Added initial support for connection pool
1688 * sql/transactions.cl
1689 Took transaction code from UncommonSQL and integrated
1690 into CLSQL code. See file for disclaimer about why this
1693 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1694 * interfaces/postgresql/postgresql-sql.cl:
1695 Fix keyword typo in database-read-large-object
1696 * interfaces/mysql/mysql-loader.cl
1697 Fix loading on Win32
1698 * test-suite/tester-clsql.cl
1699 Fix type coercion of double-float
1701 Added debian docbook catalog, made it the default
1703 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1704 * interface/postgresql/postgresql-api.cl:
1705 * interface/postgresql/postgresql-sql.cl:
1707 * sql/db-interface.cl:
1708 Added large objects support for postgresql.
1710 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1711 * src/postgresql-socket/postgresql-socket-api.cl:
1712 Fixed find-foreign-function call, eliminated crypt warning
1714 Multiple improvements
1716 Moved functionality from low-level interfaces to this file
1717 via generic functions
1718 * test-suite/tester.cl:
1719 Added test with acl-compat-tester, moved others to old-tests
1722 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1724 Reinstated commented out sections
1725 * interfaces/postgresql/postgresql-loader.cl:
1726 * interfaces/mysql/mysql-loader.cl:
1727 Updated find-forieign-library support.
1728 * interfaces/postgresql-socket/postgresql-socket-package.cl:
1729 Fixed require form for Lispworks (Thanks Marc Battyani!)
1730 * interfaces/postgresql-socket/postgresql-socket-api.cl:
1731 Fixed eval of def-function for crypt library.
1733 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1734 * Added interface to support USQL high-level rouines
1736 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1737 * Separated db-interface and conditions from sql/sql.cl
1738 * Improved foreign library loading testing
1739 * interfaces/postgresql/postgresql-api.cl
1740 Added PQisBusy function
1741 * interfaces/clsql-uffi/clsql-uffi.cl
1742 Fixed sign error for 64-bit processing
1744 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1745 * interfaces/postgresql-socket/postgresql-socket-api.cl:
1746 Fixes to read-double-from-socket. Added 64-bit integer support.
1747 * test-suite/xptest-clsql.cl
1748 Added testint for 64-bit integers
1749 * Additons to installation docs
1751 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1752 * interfaces/postgresql-socket/postgresql-socket-api.cl:
1753 Implemented direct socket reading for field type :double
1754 * Added usage information for :types to documentation
1755 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
1757 * interfaces/clsql-uffi: Created new directory. Split common
1758 interface routines that use UFFI into this package. Required
1759 especially to support direct reading of 64-bit integers into
1760 bignums and bypassing temporary strings.
1761 * test-clsql.cl: Updated to test postgresql-socket's
1762 read-double-from-socket function.
1763 * test-suite/xptest-clsql.cl
1764 Started work on test suite
1766 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1767 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
1768 mysql-fetch-field-direct Got :auto types working
1769 * interfaces/postgresql/postgresql-api.cl
1770 * interfaces/postgresql-socket/postgresql-socket-api.cl
1771 Added pgsql-field-types enum. Got :auto types working.
1773 Renamed :field-types to :types.
1775 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1776 * Added field-types parameter to query, database-query,
1777 database-query-result-set, map-query. Haven't added code
1778 to utilize field types, yet.
1779 * Changed postgresql-socket result set from cons to a structure
1780 * Updated test-clsql.cl to use automated testing with a config
1782 * Changed return types of field accessors from cstring to
1783 (* :unsigned-char). This prepares for being able to use specified
1784 type conversions when taking field data into lisp.
1785 * Added field-type processing for most interfaces. Not done yet.
1787 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1788 * doc/ref.sgml: Updated MAP-QUERY example to use
1789 *read-default-float-format* (John Foderaro)
1790 * Extensive work to foreign library loaders and .system files to
1791 check for successful loading of foreign libraries.
1792 * Modified test-clsql.cl to allow more modularity and
1793 automated testing in future release.
1794 * mysql/mysql-sql.lisp: Added field types
1796 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
1797 * mysql/mysql-sql.lisp:
1798 - Added support for Allegro CL and Lispworks using UFFI layer
1799 - Changed database-connect to use mysql-real-connect. This way,
1800 can avoid using double (unwind-protect)
1801 - Changed database-connect to have MySQL library allocate space
1802 for MYSQL structure. This will make the code more robust in
1803 the event that MySQL library changes the size of the mysql-mysql