fixed sqlite bug where sqlite-aref was called with incorrect args (thanks Zach)
[clsql.git] / ChangeLog
1 2014-12-03 Russ Tyndall <russ@acceleration.net>
2         * sqlite-sql.lisp
3         Added database arg to `canonicalize-result-types` so that it could
4         correctly call `sqlite-aref` with the required number of arguments
5         Thanks Zach Beane for the bug report.
6
7 2014-07-29 Russ Tyndall <russ@acceleration.net>
8         * mysql-api.lisp, mysql-sql.lisp, test-connection.lisp
9         Added code to the mysql backend to pull all result sets as
10         multiple args.  This fixes a bug in the mysql backend where trying
11         to query after executing a stored procedure (even on a pooled
12         connection) would raise an error about the connection being out of
13         sync.  The second result set for the stored procedure seems to be
14         empty, so not sure why we need to iterate past it.
15
16         patch / bugreport provided by: Ilya Khaprov deadtrickster@github
17
18 2014-06-11 Russ Tyndall <russ@acceleration.net>
19         * databases.lisp, sqlite3-sql.lisp
20         Similar to and overriding the patch 2014-01-30 937a3d, adds a
21         default-encoding variable uses that in places where a nil encoding
22         was being passed. Defaults to :utf-8.  This is mostly in place so
23         that uffi and cffi both work similarly (by moving the default into
24         clsql instead of clsql-uffi).  This allows my automated build
25         environment to do its job
26
27 2014-06-10 Russ Tyndall <russ@acceleration.net>
28
29         * db-mysql/Makefile - the results of dpkg-buildflags --get LDFLAGS
30         seem to have changed on my system and and sed was returning
31         invalid command line arguments to ld.  To resolve this I changed
32         sed to emit valid args, which seems to have resolved the issue.
33
34 2014-04-24 Russ Tyndall <russ@acceleration.net>
35         * oodml.lisp, test-oodml.lisp Better handling of view-slots of
36         type symbol/keyword.  Better handling of printing and reading
37         bindings (per mailing list request, always read and write in base
38         10)
39
40 2014-03-04  Kevin Rosenberg <kevin@rosenberg.net>
41         * Version 6.5.0: New release
42         * makefile.common: Check for /usr/bin/dpkg-buildflags
43         * {db-mysql,uffi}/Makefile: Use debian buildflags
44
45 2014-02-24 Russ Tyndall <russ@acceleration.net>
46         * oodml.lisp bind *print-length* to nil before printing
47         lists/arrays to the database.
48
49 2014-01-30 Russ Tyndall <russ@acceleration.net>
50         * sqlite3-sql.lisp specify :utf-8 as the default encoding if there
51         is not one (allows :clsql-cffi to be closer to working for this
52         backend).
53
54         I ran the test suite successfully once with :clsql-cffi, but there
55         after I got spurious errors and especially unrecoverable errors
56         while connecting about the database being locked
57
58 2014-01-30 Russ Tyndall <russ@acceleration.net>
59         * sqlite3-sql.lisp, fddl.lisp Dont compare database-identifiers
60         with invalid comparison operators
61
62 2014-01-30 Russ Tyndall <russ@acceleration.net>
63         * generic-odbc.lisp, ooddl.lisp, generic-postgresql.lisp,
64         test-init.lisp, ds-nodes.lisp, generic-odbc.lisp, odbc-sql.lisp
65
66         auto-increment-column support improvement (mssql esp, now will
67         auto-fill after insert). Use +auto-increment-names+ to determine
68         auto-increment-column-p.
69
70         This triggered much test failing as regards normalized classes /
71         autoincrement primary key stuff.
72
73         New odbc-postgresql-database sub-type
74
75         POSSIBLY BREAKING CHANGES:
76         1 ) Previously all classes in a normalized heirachy had their p-key
77         marked as "auto-increment".  Usually auto-increment means a key
78         supplied by the database system, so this was decidedly
79         non-standard usage (clsql is explicitly providing the key for all
80         normalized subclasses of any given parent see ds-nodes.lisp). Some
81         RDMS will not allow insertion/updates of autoincrement columns
82         without hoop jumping and, as it doesnt really make much sense, I
83         removed the "auto-increment" aspects of normalized sub-classes.
84         Now the primary keys are chained regardless. The parent-most key
85         can be autoincrement or not.
86
87         2 ) ODBC Postgresql connections are now both GENERIC-ODBC-DATABASE
88         and GENERIC-POSTGRESQL-DATABASE.  Probably not a widely used path,
89         but this change allows most of the previously failing tests to
90         pass on this backend (we now format stuff correctly for postgres).
91         I anticipate this probably is not perfect yet (IE: I probably
92         missed something)
93
94 2014-01-29 Russ Tyndall <russ@acceleration.net>
95         * oodml.lisp, generics.lisp - added
96         clsql-sys::view-classes-and-storable-slots generic (added method
97         previously).  Also added to-database-p keyword to allow overrides
98         to distinguish between the two situations. Mostly so that
99         clsql-helper:dirty-slots-mixin can filter slots when writing
100         values to the database but still allow all slots to be read from
101         the database
102
103 2014-01-17 Russ Tyndall <russ@acceleration.net>
104         * oodml.lisp, generics.lisp - added filter-select-list generic
105           to allow fine grained control of generated query/object mappings
106         
107 2014-01-07 Russ Tyndall <russ@acceleration.net>
108         * clsql-uffi.lisp, sqlite3 auto-increment support
109         * clsql-uffi.lisp, test-basic.lisp, fixes related to unsigned vs
110           signed ints (thanks Aaron Burrow)
111         * cleaning and testing
112
113 2013-09-27 Russ Tyndall <russ@acceleration.net>
114         * fixed bug converting to boolean in db-mysql/mysql-sql.lisp
115         from github user Sectoid https://github.com/UnwashedMeme/clsql/pull/1
116
117 2013-06-19 Russ Tyndall <russ@acceleration.net>
118         * sql/oodml.lisp, db-postgresql-socket3/sql.lisp,
119           db-mysql/mysql-objects.lisp, sql/generic-odbc.lisp
120         Refactored read-sql-value similar to the other recent refactorings
121
122         * the symbol case now uses intern instead of read-from-string
123           (which may not return a symbol and could have security issues
124           since read-eval was not being unset)
125
126         * read-eval is now off for all cases
127
128         * centralized logic into a single case statement, hopefully making
129           this more readable and debuggable
130
131         * TODO: make these refactorings to the oracle backend (I cannot
132           test against oracle and am loathe to change without testing
133
134 2013-06-19 Russ Tyndall <russ@acceleration.net>
135         * sql/mysql-objects.lisp
136         Found and refactored a way some more eql specified methods of
137         database-get-type-specifier in mysql
138
139 2013-06-18 Russ Tyndall <russ@acceleration.net>
140         * sql/oodml.lisp, sql/mysql-objects.lisp
141         refactored database-output-sql-as-type in a similar fashion to
142         the previous refactor of database-get-type-specifier (fewer
143         methods using case instead of eql specifiers)
144
145         * removed very strange definition of outputing floats as strings
146           for something sane (it was previously doing silly work like
147           setting the default read float type (which AFAICT doesnt affect
148           printing))
149
150         * half of the cases nil returned "" other times it returned nil,
151           now if we get a null value we return nil always
152
153         * removed odd-logic (seemingly untouched since the initial import),
154           that removed null characters from printed lists.  If we have #\null
155           in a printed list, we had probably better figure out what went wrong
156           there rather than destructively modifying the list output on the way
157           to the DB ;; removed (substitute-char-string escaped #\Null " ")
158
159 2013-06-18 Russ Tyndall <russ@acceleration.net>
160         * sql/generic-odbc.lisp, sql/generic-postgresql.lisp, sql/oodml.lisp
161           tests/test-fddl.lisp
162
163         refactored database-get-type-specifier for postgres and mssql
164
165         Single methods with a case on the symbol arg (similar to the recent
166         refactoring in oodml.lisp)
167
168         This reduces line count and generally makes it easier to find and
169         read all the backend-specific types
170
171 2013-06-10 Russ Tyndall <russ@acceleration.net>
172         * sql/oodml.lisp, sql/generic-postgresql.lisp, doc/ref-fddl.xml,
173           sql/packages.lisp
174
175         Updated get-database-type-specifier to handle text/longchar type
176         and refactored
177
178         * added a warning above defaulting to VARCHAR (since its probably
179         NOT what is expected on a bad type specifier).
180
181         * added a case where the specified type being a string, passes
182         that string directly (to better/more easily allow db-specific
183         data-types).
184
185         * added cases where longchar or text converts to text, and
186         exported those symbols (as this seemed type seemed to be missing
187         from fddl/oddl anyway).
188
189         * reorganized these default methods into a single method with a
190         case statement rather than many eql specified methods (about half
191         the code)
192
193          * updated the docs to use text instead of longchar since text is
194          a more standard db-type (pg,my,and ms all use text)
195
196 2013-11-23 Kiss Kalman <kami@zalaszam.hu>
197         * utils/sql.lisp: Commit patch adding ccl getenv support
198
199 2013-04-17 Kevin Rosenberg <kevin@rosenberg.net>
200         * Version 6.4.1
201         * sql/utils.lisp: Patch from Ben Hyde to add weak hash table
202         support for CCL.
203
204 2013-03-07 Ryan Davis <ryan@acceleration.net>
205         * db-postgresql-socket/postgresql-socket-api.lisp - bugfix to
206         adapt to changes in md5:md5sum-sequence. CLSQL now requires a
207         version of MD5 released on or after 2012-11-25 (the latest version
208         currenty in quicklisp). Thanks to Nicolas Neuss for the bug
209         report.
210         * db-odbc/odbc-sql.lisp - keep a reference to the original
211         connection spec used to create `odbc-database` connections
212
213 2013-01-09 Russ Tyndall <russ@acceleration.net>
214         sql/oodml.lisp - changed view-classes-and-storable-slots to a
215         method (as it was intended to be all along)
216
217 2012-12-19 Kevin Rosenberg <kevin@rosenberg.net>
218         * Version 6.4
219
220 2012-11-20 Russ Tyndall <russ@acceleration.net>
221         ## Large refactoring of sql/oodml.lisp and surrounding code
222         * cleaned up update-records-from-* to utilize a single codepath
223           previously there was much duplicate code
224         * tried to further unify direct/effective slot-defs
225         * cleaned up much of the normalized classes code to be more
226           consistent in how it operated, and the code it used (less
227           copy/paste more functions)
228         * tried to standardize iteration a bit, previously almost all
229           of the iteration constructs in CL were used. Tried to
230           standardize on loop for readability / cohesiveness
231         * made functions to more easily look up particular slots, since
232           this was being done differently in each function
233         * added more doc-strings and updated documentation about
234           normalized classes
235         * inner-joins that are referenced in where clauses are no longer
236           added to the select table list (since they are also referenced
237           in the join position and this led to sql errors)
238         * collect-table-references methods added for sql-ident-table and
239           list
240
241         ## Semantic changes
242         * disallow where-less updates from objects (ie cannot call
243           update-records-from* with a keyless object)
244         * ordered-class-direct-slots now returns direct-slot-definitions
245           instead of effective-slot-definitions (as per name)
246         * direct-slot-definitions now contain the db-info hash table (same
247           as effective slots)
248         * removed this-class arg from update-instance-from-records - used to
249           be used for normalized code, no longer needed for that.
250         * find-all - bug fixes in table references, previously where clauses
251           surrounded by a list would have none of their references added to
252           the select. This was being exploited by certain code paths.  Now
253           all where clauses are searched
254           - No longer includes order-by and distinct as columns in the select
255             list.  The values seemed to be ignored in every code path and distinct
256             seemed to be intended to be used as a boolean anyway
257
258
259 2012-11-20  Nathan Bird  <nathan@acceleration.net>
260
261         * update-objects-joins - changed the default of slot from t (which
262           used to mean :deferred) to :immediate (to match the default
263           behavior of other parts of the system).  It also seemed like a bad
264           default to pull all the slots that were explicitly specified to be
265           not pulled by default.  This function now accepts more special
266           values (:immediate, :deferred, :all, or a list of slots).  To get
267           the old behavior call with :slots :deferred.
268
269
270 2012-10-30  Russ Tyndall <russ@acceleration.net>
271         * sql/command-object.lisp - added dates/times to the parameter value
272         coersion and pulled this into a new generic prepare-sql-parameter
273
274 2012-09-04  Kevin Rosenberg  <kevin@rosenberg.net>
275         * Version 6.3 released
276
277 2012-09-04  Russ Tyndall <russ@acceleration.net>
278         * sql/expressions.lisp - Try to respect the casing of symbols
279         where it seems intentional (ie: is not default). This should fix
280         a failing test case, and I think behaves more understandibly.
281
282         If you specify a casing '|Foo Bar| lets treat that a string "Foo Bar"
283         and output it escaped
284
285 2012-08-28  Ryan Davis <ryan@acceleration.net>
286         * db-sqlite3/sqlite3-api.lisp - allow pathnames in the connection
287         settings, so '("/db/my.sqlite") and '(#P"/db/my.sqlite") are
288         equivalent. Updated the docs to match.
289
290 2012-08-17  Russ Tyndall  <russ@acceleration.net>
291         * db-postgresql-socket3/package.lisp - shadow
292         postgresql-notification for compatibility with new
293         cl-postgres (Thanks Zach)
294
295 2012-07-09  Russ Tyndall  <russ@acceleration.net>
296         * sql/oodml.lisp - fixed a bug where the order by was being
297         destructively modified, causing odd caching issues when the
298         selected object was not statically known (eg unreferenced tables
299         could show up in the query if they were cached by a previous call
300         through this function.  I replaced this code with a
301         non-destructive variant which should solve this.
302
303         Thanks to Philipp Marek for the bug report
304
305 2012-06-25  Russ Tyndall  <russ@acceleration.net>
306         * sql/util.lisp, sql/metaclasses.lisp
307         Dequote database-identifiers if needed (passed a quoted symbol)
308         Metaclass args come through unquoted, so this eases interactions
309         with them
310
311 2012-06-22  Russ Tyndall  <russ@acceleration.net>
312         * sql/metaclasses.lisp: Changed compute-effective-slot-definition
313         to correctly copy the autoincrement-sequence slot to the ESD
314         previously it was being skipped (seemingly by accident).  Thanks
315         to flip214 on #lisp for the bug report
316
317 2012-04-26  Kevin Rosenberg  <kevin@rosenberg.net>
318         * Version 6.2 released: thanks to all the contributors!
319
320 2012-04-25  Nathan Bird  <nathan@acceleration.net>
321
322         * doc/threading-warnings.txt: Adding some notes from J.T.Klein
323         about the current state of thread-safety in clsql. This should be
324         incorporated into the main docs at some point.
325
326 2012-04-25  Russ Tyndall <russ@acceleration.net>
327         * sql/expressions.lisp (output-sql): on rendering update/insert
328         expression values, ensure that *in-subselect* is bound to T
329         so that the values will be correctly paren delimited
330
331 2012-04-24  Nathan Bird  <nathan@acceleration.net>
332
333         * sql/expressions.lisp (output-sql): on mysql CREATE TABLE
334         statements use 'ENGINE=innodb' instead of 'Type=InnoDB'. This has
335         apparently been preferred since mysql 4.1 and mysql 5.5 removed
336         type as a valid keyword.
337
338 2012-03-28  Russ Tyndall <russ@acceleration.net>
339
340         * sql/sequences.lisp: [A Patch FROM 2011-07-28 changed sequences.
341         They were previously prefixed with _CLSQL_SEQ_ but are now
342         suffixed with _CLSQL_SEQ. This is likely to break existing
343         implementations using the default sequence names
344
345         setting *old-sequence-names* to T, should force using the older
346         naming scheme
347
348 2012-03-27  Ryan Davis  <ryan@acceleration.net>
349
350         * sql/expressions.lisp: Fixed bug with subqueries in the where
351         clause of update-records and delete-records generating invalid
352         SQL. Previously subselects in where clauses would not have enough
353         parentheses, for example: "WHERE Id IN SELECT foo_id FROM bar"
354         vs. "WHERE Id IN (SELECT foo_id FROM bar)"
355         * tests/test-syntax.lisp: Added tests for using subqueries in the
356         where clause in update-records and delete-records. Moved asserts
357         in the test-output-sql/sql-ident-table function into the standard
358         test framework.
359         * doc/appendix.xml: added :connection-string to the information on
360         ODBC connection specs, and added example code connecting to ODBC
361         databases.
362
363 2012-01-05  Nathan Bird  <nathan@acceleration.net>
364
365         * db-odbc/odbc-dbi.lisp: handle sql decimal type in the same way
366         as numeric type-- read into a double float.
367
368 2011-01-04  Russ Tyndall  <russ@acceleration.net>
369         * sql/operations.lisp
370
371         Fixed bug reported by JTK related to the not-null sql-expression
372         especially as used in conjunction with the is operator.
373
374         Made null called with more than one argument throw an exception
375         instead of silently discarding all arguments past the first
376
377 2012-01-04  Nathan Bird  <nathan@acceleration.net>
378
379         * db-odbc/odbc-api.lisp (%sql-driver-connect): in the call to
380         odbc's SQLDriverConnect default the WindowHandle argument to a null ptr so
381         that connecting with :connection-string will work in the default
382         case of SQL_DRIVER_NOPROMPT.
383
384         I.e. you can now do things like:
385         (clsql:connect '("DsnName" "UserName" "" :connection-string
386         "DRIVER={FreeTDS};SERVER=...;DATABASE=...;UID=...;PWD=...;PORT=1433;TDS_Version=8.0;APP=clsql")
387         :database-type :odbc)
388
389         I believe the DsnName and Username at that point are only used when
390         printing the connection information.
391
392 2011-12-20  Kevin Rosenberg <kevin@rosenberg.net>
393         * Version 6.1.1
394         * db-oracle/oracle.lisp: Typo correction (Elias Martenson)
395
396 2011-12-19  Kevin Rosenberg <kevin@rosenberg.net>
397         * Version 6.1.0
398         * db-oracle/oracle.lisp: Change length function to
399         uffi:foreign-string-length to handle foreign encodings.
400         Thanks to Elias Martenson.
401
402 2011-11-28  Russ Tyndall  <russ@acceleration.net>
403         * db-odbc/odbc-api.lisp, tests/test-time.lisp
404
405         In ODBC backend, avoid going through the common lisp
406         universal-time type (because it lacks support for historic dates)
407
408         *time-conversion-function* renamed to *time-format*
409
410         Patch from: Francisco Vides Fernandez
411
412 2011-10-18  Russ Tyndall  <russ@acceleration.net>
413         * db-odbc/odbc-api.lisp
414
415         Added type specifier so MSSQL nvarchar fields can make it through
416
417 2011-09-12  Russ Tyndall  <russ@acceleration.net>
418         * sql/fddl.lisp sql/generic-postgres.lisp db-mysql/mysql-sql.lisp
419         sql/generic-odbc.lisp sql/odbc-api.lisp sql/odbc-dbi.lisp
420
421         Fix bugs in list-attribute(s|-types) where passing an escaped,
422         instead of unescaped column name, caused these functions to return
423         less data than they should have.
424
425 2011-08-03  Kevin Rosenberg <kevin@rosenberg.net>
426         * CLSQL 6.0.0 released
427
428 2011-07-28  Russ Tyndall  <russ@acceleration.net>
429
430         * db-postgresql-socket3/: Added a backend that utilized postgres
431         socket api version 3.  Uses the cl-postgres project (from
432         postmodern) to handle this.  Allows use of parameterized /
433         prepared queries using clsql:command-object
434
435         * sql/{expressions,fddl, generic-postgresql, ooddl}.lisp:
436         Change how database identifiers are emitted to hopefully make this
437         less brittle, and more easily intuitable.
438
439         Previously every code path that wanted to emit a
440         database identifier was responsible for coercing what was provided
441         into a correctly escaped string.  Sometimes two or three functions
442         in a row were trying to correctly quote and output that string.  I
443         have tried to centralize this type coercion and logic into a
444         single code path.
445
446         everything should now call (escaped-database-identifier thing)
447         immediately before splicing a database identifier into string being
448         sent to the database
449
450         * sql/oodml.lisp: added method choose-database-for-instance, which
451         allows overriding which database connections are used based on
452         object type.  Can be used to prevent connection conflicts in
453         multi-threaded environments
454
455         * sql/syntax.lisp: [foo bar] and [foo.bar] read into the same
456         clsql expression now (they used to be output the same, but after
457         the above database-identifier change, they were output separately
458
459         * test/: Better, more tests, better type coercion in tests and
460         throughout (%get-int)
461
462        [edit 2012-03-28 - RT]
463         * sql/sequences.lisp: Sequences were previously prefixed with
464         _CLSQL_SEQ_ but are now suffixed with _CLSQL_SEQ. This is likely
465         to break existing implementations using the default sequence names
466
467         setting *old-sequence-names* to T, should force using the older
468         naming scheme
469
470
471 2011-07-16  Kevin Rosenberg <kevin@rosenberg.net>
472         * Version 5.4.0 release
473
474 2011-06-27  Nathan Bird  <nathan@acceleration.net>
475         * db-odbc/: memory management improvements: leak slower
476         * MSSQL: TOP + DISTINCT work together
477
478 2011-06-20  Nathan Bird  <nathan@acceleration.net>
479
480         * sql/time.lisp: Handle parsing already parsed objects.
481         * sql/oodml.lisp: raise exception if we generate an update with no
482         where clause; incorporate Ryszard Szopa's patch for functional
483         expressions in :order-by
484         * sql/expressions.lisp: (listify nil) => nil instead of (nil).
485         * db-odbc/: bugfixes for working with older versions of FreeTDS;
486         support for bigints that works on mssql and postgres
487         * MSSQL improvements: use top instead of limit, IDENTITY can be a
488         column constraint, clsql:date becomes 'smalldatetime'
489
490 2011-06-20  Nathan Bird  <nathan@acceleration.net>
491
492         * Version 5.3.4
493         * db-postgresql-socket/postgresql-socket-api.lisp: Addendum
494         to Otto Diesenbacher's patch that had a spurious write a 0
495         byte (to terminate string) that should have been just CCL.
496
497 2011-06-12  Kevin Rosenberg <kevin@rosenberg.net>
498         * Version 5.3.3
499         * db-postgresql-socket/postgresql-socket-api.lisp:
500         Patch from Otto Diesenbacher for UTF8 encoded strings
501         for CCL. FIXME: The best patch would be to use the
502         user-set encoding from the database object and use
503         UFFI's encoding strings to/from octet vectors rather
504         than SB-UNICODE and CCL specific code in this file.
505
506 2011-04-21  Kevin Rosenberg <kevin@rosenberg.net>
507         * sql/generics.lisp: Add defgeneric for new
508         database-last-auto-increment-id
509
510 2011-04-01  Kevin Rosenberg <kevin@rosenberg.net>
511         * Version 5.3.2
512         * db-mysql/mysql-client-info.lisp: Add recognition of
513         version 6 of MySQL client library.
514         * sql/metaclass.lisp: Fix the fix in the reader conditional
515
516 2011-03-30  Kevin Rosenberg <kevin@rosenberg.net>
517         * Version 5.3.1
518         * sql/metaclasses.lisp: Fix previous patch to work
519         on non-SBCL systems
520
521 2011-03-29  Kevin Rosenberg <kevin@rosenberg.net>
522         * Version 5.3.0
523         * sql/metaclasses.lisp: Apply one-line patch to fix
524         for newer SBCL (thanks to Nikodemus Siivola)
525         * many_files: Applied multiple patches from Holger Schauer
526         to improve autoincrement capability.
527
528 2010-10-24  Kevin Rosenberg <kevin@rosenberg.net>
529         * Version 5.2.0
530         * db-odbc/odbc-api.lisp: Change from SBCL-specific
531         to UFFI version of octets-to-strings. Reported by
532         Daniel Brunner <daniel@dbrunner.de>
533         * sql/oodml.lisp: Apply patch from Rupert Swarbrick
534         <rswarbrick@gmail.com>: Fix behaviour with auto-inc
535         primary keys.
536         * sql/expressions.lisp, tests/test-syntax.lisp: Apply
537         patch from Russ Tyndall to quote identifiers with space
538         or special character.
539
540 2010-09-20  Kevin Rosenberg <kevin@rosenberg.net>
541         * Version 5.1.4
542         * sql/{pool,database}.lisp: Pass encoding argument to
543         connections made from pool and with reconnect.
544
545 2010-08-16  Kevin Rosenberg <kevin@rosenberg.net>
546         * Version 5.1.3
547         * db-odbc/odbc-{api,dbi}.lisp: Commit patch from
548         Memet Bilgin to fix issue with unicode and ODBC.
549
550 2010-08-16  Kevin Rosenberg <kevin@rosenberg.net>
551         * Version 5.1.2
552         * uffi/clsql-uffi.lisp: Commit patch from JT Klein fixing
553         invocation of uffi:convert-from-foreign-string macro. When
554         time allows, I'll investigate changing UFFI's macro to
555         a function call and then revert this patch.
556
557 2010-06-15  Kevin Rosenberg <kevin@rosenberg.net>
558         * Version 5.1.1
559         * clsql-{uffi,mysql}.asd: Modify operation-done-p functions
560         to guard against change introduced in new ASDF traversing.
561
562 2010-04-20  Kevin Rosenberg <kevin@rosenberg.net>
563         * Version 5.1.0 [DEPENDENCY UPGRADE: UFFI 2.x needed]
564         * clsql-uffi.asd: Depend on UFFI version >= 2.0
565         to support foreign encoding of strings.
566
567 2010-04-16  Kevin Rosenberg <kevin@rosenberg.net>
568         * Version 5.0.6
569         * db-postgresql.lisp, sql/fddl.lisp: Fix typos [Thanks to
570         Walter C. Pelissero]
571         * sql/metaclasses.lisp: Work around type-check-function being set
572         during defclass expansion in SBCL [Thanks to Walter C. Pelissero]
573         * uffi/clsql-uffi.lisp: In call to uffi:convert-from-foreign-string,
574         Set null-terminated-p to T when length not specified.
575         [Thanks to Walter C. Pelissero]
576
577 2010-03-21  Kevin Rosenberg <kevin@rosenberg.net>
578         * Version 5.0.5
579         * sql/fdml.lisp: Fix DO-QUERY to actually return the last value of
580         the body.
581
582 2010-03-02  Nathan Bird  <nathan@acceleration.net>
583         * doc/: Added a README on how to build doc; now builds on Ubuntu.
584         * sql/oodml.lisp: READ-SQL-VALUE now has explicit method for
585         handling double-floats and the default method will no longer
586         attempt to convert values that have already been converted.
587         * sql/syntax.lisp: Introduce file-enable-sql-reader-syntax which
588         enables the syntax for the scope of the file without trying to
589         keep track of the current syntax state.
590         * sql/pool.lisp: Introduce
591         clsql-sys:*db-pool-max-free-connections* which is a heuristic
592         threshold for when to disconnect a connection rather than
593         returning it to the pool.
594         * sql/pool.lisp: Check connections for validity before returning
595         to the user.
596
597 2010-03-01  Kevin Rosenberg <kevin@rosenberg.net>
598         * db-mysql/mysql-api.lisp: Remove spurious enumeration
599
600 2010-02-16  Kevin Rosenberg <kevin@rosenberg.net>
601         * Version 5.0.4
602         * db-mysql/mysql-api.lisp: Fix mysql_options UFFI parameter list
603         * doc/ref-connect.xml: Document the MySQL options parameter as
604         part of the connection-spec.
605
606 2010-02-15  Kevin Rosenberg <kevin@rosenberg.net>
607         * db-mysql/mysql-{api,sql}.lisp: Support sending options
608         to MySQL using mysql_options, which occurs between the API calls
609         of mysql_init and mysql_real_connect.
610
611 2010-02-11  Kevin Rosenberg <kevin@rosenberg.net>
612         * Version 5.0.3
613         * multiple-files: Further internationalization. Change
614         UFFI:CONVERT-RAW-FIELD and UFFI:CONVERT-FROM-FOREIGN-STRINGS
615         invocations to use the foreign character set encoding of the
616         database object. Requires UFFI v.1.8.6
617         * Makefile.common: Fix OS_DARWIN64 setting
618
619 2010-02-11  Nathan Bird  <nathan@acceleration.net>
620         * MSSQL: better support for fddl 'date type.
621
622 2010-02-11  Kevin Rosenberg <kevin@rosenberg.net>
623         * Makefile.common, uffi/Makefile, db-mysql/Makefile:
624         Better support OS X Snow Leopard by building universal
625         (x86_64,i386) dylib bundles
626
627 2010-02-08  Kevin Rosenberg <kevin@rosenberg.net>
628         * Version 5.0.2
629         * sql/database.lisp: Fix missing slot-accessor 
630         (Thanks to Stelian Ionescu)
631         * sql/generics.lisp: Add missing keyword to defgeneric
632         (Thanks to Stelian Ionescu)
633
634 2010-02-07  Kevin Rosenberg <kevin@rosenberg.net>
635         * Version 5.0.1
636         * sql/{base-classes,database}.lisp: Add encoding slot for 
637         non-ASCII strings.
638         * db-mysql/mysql-sql.lisp: Use UFFI:FOREIGN-ENCODED-OCTET-COUNT.
639         Requires UFFI version 1.8.2 or above.
640
641 2010-02-06  Kevin Rosenberg <kevin@rosenberg.net>
642         * Version 5.0.0: First release of CLSQL to formally and
643         consistently support non-ASCII strings with encoding of external
644         formats for SQL strings. UFFI version 1.8.1 is higher is required.
645
646         This change may introduce some differences in string handling for
647         people who are using non-ASCII encoded characters.  Thus, because
648         of the risk of BACKWARD INCOMPATIBILITY, the major version number
649         was incremented with this release.
650
651 2010-02-06  Kevin Rosenberg <kevin@rosenberg.net>
652         * tests/test-i18n.lisp: Bind UFFI:*DEFAULT-EXTERNAL-FORMAT*
653         for testing multibyte encodings.
654         * uffi/clsql-uffi.lisp: Changes for UFFI 1.7.4's new support
655         for encoding foreign strings with a specified external format.
656
657 2010-02-06  Kevin Rosenberg <kevin@rosenberg.net>
658         * sql/metaclasses.lisp: If no declared slot type in
659         compute-lisp-type-from-specified-type, then use t as lisp type.
660         Issue noted when testing Clozure CL 1.4.
661
662 2010-02-06  Kevin Rosenberg <kevin@rosenberg.net>
663         * tests/test-init.lisp: Turn off the benign console notices for
664         testing on postgres.
665
666 2010-02-05  Kevin Rosenberg <kevin@rosenberg.net>
667         * clsql-test.asd, tests/{test-i18n,test-init}.lisp:
668         Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
669         not present in cl:*features*. This requires UFFI 1.7.2 or above.
670
671 2010-02-05  Kevin Rosenberg <kevin@rosenberg.net>
672         * sql/utils.lisp: Reading #\no-break_space causes an
673         error for non-unicode SBCL. Conditionalize read of
674         #\no-break_space for non-unicode SBCL and 8-bit string
675         Allegro.
676
677 2010-02-03  Kevin Rosenberg <kevin@rosenberg.net>
678         * tests/test-init.lisp: Add *test-report-width* variable
679         and word-wrap skipped test reason field.
680
681 2010-01-29  Kevin Rosenberg <kevin@rosenberg.net>
682         * Version 4.3.3
683         * clsql-cffi.asd: New file that causes CLSQL to use
684         CFFI-UFFI-COMPAT library rather than UFFI. Perform 'asdf:load-op
685         on CLSQL-CFFI rather than CLSQL system to use CFFI-UFFI-COMPAT.
686
687 2010-01-29  Nathan Bird  <nathan@acceleration.net>
688         * tests/*.lisp: A lot more tests and test setup tweaks.
689         * sql/expressions.lisp: output-sql on sql-relational-exp does
690         better arity checking now. (apply #'sql-and some-list) gives
691         better results.
692
693 29 Jan 2009  Kevin Rosenberg <kevin@rosenberg.net>
694         * sql/oodml.lisp: Fix for UPDATE-RECORD-FROM-SLOTS for normalized
695         view classes
696
697 28 Jan 2009  Kevin Rosenberg <kevin@rosenberg.net>
698         * Version 4.3.2
699         * Change "normalise" from British spelling for consistency with
700         other American spellings in CLSQL.
701
702 28 Jan 2009  Kevin Rosenberg <kevin@rosenberg.net>
703         * db-mysql/Makefile: Add directory for Fedora 11/12 on 64-bit
704         platform (Thanks to Michael Pheasant) and remove a 32-bit directory
705
706 28 Jan 2009  Kevin Rosenberg <kevin@rosenberg.net>
707         * Version 4.3.1
708         * sql/utils.lisp: Ensure Lispworks 6 lock is created in sharing mode
709
710 20 Jan 2009  Nathan Bird <nathan@acceleration.net>
711         * Version 4.3.0
712         * Rewrite tests to use datasets
713
714 07 Jan 2009  Kevin Rosenberg <kevin@rosenberg.net>
715         * sql/utils.lisp: Changes to support Lispworks 6
716
717 10 Dec 2009  Kevin Rosenberg <kevin@rosenberg.net>
718         * Version 4.2.0
719         * doc/ref-ooddl.lisp: Add needed CDATA escapes
720         * doc/clsql.pdf, doc/html.tar.gz: Build new manuals with
721         normalized view classes.
722
723 10 Dec 2009  Kevin Rosenberg <kevin@rosenberg.net>
724         Large patch from Thijs Oppermann <thijso+clsql@gmail.com> to add
725         support for normalized view classes.  When having view class that
726         inherit from others, CLSQL by default builds tab all the columns
727         from the parent in the child. This patch is meant to normali so
728         that a join is done on the primary keys of the concerned tables to
729         get a set.
730
731 10 Dec 2009  Kevin Rosenberg <kevin@rosenberg.net>
732         * sql/time.lisp: Patch from Oleg Tihonov to SYNTAX-PARSE-ISO-8601
733         to properly parse fractions of seconds.
734
735 10 Dec 2009  Kevin Rosenberg <kevin@rosenberg.net>
736         * sql/time.lisp: Patch from Oleg Tihonov to roll function
737         to properly use USEC argument.
738
739 21 Nov 2009  Kevin Rosenberg <kevin@rosenberg.net>
740         * Version 4.1.2
741         * Makefiles: On 64-bit Linux systems, try to build both 32 and 64-bit
742         interface libraries. This requires the installation of multiarch build tools
743         as well as 32-bit support libraries (libc, libz and libmysqlclient).
744
745 04 Sep 2009  Kevin Rosenberg <kevin@rosenberg.net>
746         * Version 4.1.1
747         * sql/fdml.lisp: Rework do-query to use supplied database
748         parameter when passed a sql-object-query
749         (thanks to JTK <jetmonk@gmail.com>)
750         * sql/generic-postgresql.lisp: Allow optional connect
751         parameters for postgresql databases (thanks to Stephen Compall)
752         * doc/ref-{clsql,connect}.xml, sql/db-interfaces.lisp:
753         Fix transposed letters (thanks to Stephen Compall)
754         * db-mysql/Makefile: Add directory for MacPorts mysql5 port
755         (thanks to Stephen Compall)
756         * sql/database.lisp: Have database-type default be
757         *default-database-type* (thanks to Desmond O. Chang)
758         * sql/transactions.lisp: Improved handlining of nested
759         transactions (thanks to Eli Naeher)
760         * sql/time.lisp: Commit patch to fix parse-iso-8601-duration
761         (thanks to Stephen Compall)
762         * sql/database.lisp: Use :verbose nil for asdf:operate
763         invocation (Thanks to Mackram Raydan)
764         * sql/metaclasses.lisp: Rework initialize-instance for
765         view-class-direct-slot-definition (thanks to Stephen Compall)
766
767 31 Aug 2009  Kevin Rosenberg <kevin@rosenberg.net>
768         * sql/db-interface.lisp: Fix spelling error (thanks to
769         David Thompson)
770         * clsql-mysql.asd/db-mysql/mysql-loader.lisp: Commit
771         patch from Andreas Franke to honor windows drive letter
772         when loading clsql_mysql C library.
773
774 31 Aug 2009  Kevin Rosenberg <kevin@rosenberg.net>
775         * Version 4.1.0
776         * db-mysql/mysql-{sql,api}.lisp,db-mysql/clsql_mysql.c:
777         Latest version of mysqlclient once again changed the C
778         structures from which the mysql backend reads data.
779         Rather than adding yet another structure definition which
780         is enabled by the client version as read by mysql-client-info.lisp,
781         the mysql backend has been re-written to ignore in the internal
782         C structures. Instead, C wrapper functions for slot access have
783         been added to clsql_mysql.c and are used by mysql-sql.lisp to
784         access the internals of C structures. This adds a bit of overhead,
785         but completely separates the lisp code from trying to keep up
786         with the continually changing internal C structure of mysql.
787         All tests in the test suite executed correctly with this change.
788
789 31 Aug 2009  Kevin Rosenberg <kevin@rosenberg.net>
790         * Version 4.0.6
791         * sql/database.lisp: Fix syntax on process-lock (thanks to
792         Stian Sletner)
793         * db-mysql/mysql-sql.lisp: Allow use of database parameter
794         in database-list function (thanks to Michael Pheasant)
795         * sql/oodml.lisp: Allow NULL values for floating-point fields
796         (thanks to Jan Rychter)
797
798 02 Jun 2009  Kevin Rosenberg <kevin@rosenberg.net>
799         * Version 4.0.5
800         * sql/database.lisp: Add process-lock for deleting database from
801         a pool (thanks to Ralf Mattes).
802
803 25 Feb 2008  Kevin Rosenberg <kevin@rosenberg.net>
804         * Version 4.0.4
805         * sql/expressions.lisp: Remove stray form (thanks to Samuel Ward)
806
807 12 Dec 2007  Kevin Rosenberg <kevin@rosenberg.net>
808         * sql/expressions.lisp: Bind *in-subselect* when outputting
809         selections (patch from unknown source).
810         
811 11 Dec 2007  Kevin Rosenberg <kevin@rosenberg.net>
812         * Version 4.0.3
813         * sql/metaclasses.lisp: Unify base-table processing by extracting 
814         the correct code from initialize-instance :around into the helper
815         function set-view-table-slot. Call that function also in
816         reinitialize-instance :around replacing erroneous code discovered
817         by Josh Feinstein.
818         
819 17 Nov 2007  Kevin Rosenberg <kevin@rosenberg.net>
820         * BUGS: Add note about benefit of using configure file to create
821         Makefiles (suggestion from Joe Corneli)
822         
823 22 Oct 2007  Kevin Rosenberg <kevin@rosenberg.net>
824         * Version 4.0.2
825         * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
826         Andrew Golding suggestion for more informative :error-id slot.
827         
828 17 Sep 2007  Kevin Rosenberg <kevin@rosenberg.net>
829         * Version 4.0.1
830         * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
831         Albert Krewinkel).
832         * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
833         
834 14 Sep 2007  Kevin Rosenberg <kevin@rosenberg.net>
835         * Version 4.0.0: Major version increase to warn of potential
836         backwards incompatibility.
837         * NEWS: Document potentional backward incompatible changes
838         * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
839         after connecting. This may break compatibility with some applications
840         who are using non-ANSI features with MySQL. This change is required to
841         properly support view-classes using a string as their :base-table
842         attribute. This allows users to specify the case of table names. 
843         This is feature is even more essential for MySQL itself since MySQL
844         uses case-sensitive table names. Use connection-based database-create
845         and database-destroy rather than trying to invoke command-line mysql 
846         utility. Remove automatic upcasing of strings from list-indices. 
847         * db-postgresql/postgresql-sql.lisp: Use connection-based 
848         database-create and database-destroy rather than trying to invoke
849         command-line utilities.
850         * db-postgresql-socket/postgresql-socket-sql.lisp: Use
851         database-execute-command rather than execute-command for
852         database-{create,destroy}. Connect to postgres database
853         rather than template1 for those database creation/deletion.
854         * sql/metaclasses.lisp: Store the string value of :base-table if a 
855         string is provided. Perform sql-escape at time of view-table name
856         creation.
857         * tests/test-init.lisp: Use "ej_join" as a string, rather than a 
858         symbol, since "ej_join" is specified as :base-table. Clear the
859         expression output-cache in case the code for generating sql output
860         has changed.
861         * test/test-oodml.lisp: whitespace fix
862         * sql/ooddl.lisp: Use quoted string for primary key constraint if
863         table name is specified as a string.
864         * sql/oodml.lisp: Don't convert a string view-table name to database's 
865         default case.
866         * sql/expressions.lisp: Properly handle table and attribute identifiers
867         when they are a string. Do not change case of symbols to match database
868         default case.
869         * sql/operations.lisp: Change multiword symbols to upper case.
870         * sql/fddl.lisp: Quote base-table if a string to preserve case
871         for drop-table and create-table.
872         * tests/test-syntax.lisp: Add tests of low-level string attribute
873         identifiers.
874         
875 20 Jul 2007  Kevin Rosenberg <kevin@rosenberg.net>
876         * Version 3.8.6
877         * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
878         (problem noted on clsql-devel by icardo Boccato Alves)
879         * sql/pool.lisp: Remove incorrect keyword
880         * sql/database.lisp: Rework WITH-DATABASE to not make the database the
881         default database (reported by Saurabh Nanda and Chaitanya Gupta)
882         * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
883         emphasis that make-default has a default value of nil.
884         * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
885         SQL Server. (patch from Nathan Bird)
886         * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
887         of trouble with def-view-class compilations (patch from Nathan Bird)
888         
889 15 Jul 2007  Kevin Rosenberg <kevin@rosenberg.net>
890         * Version 3.8.5
891         * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
892         not dynamically loaded on Windows
893         
894 22 Jun 2007  Kevin Rosenberg <kevin@rosenberg.net>
895         * Version 3.8.4
896         * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
897         that library is dymically linked to clsql-mysql library. Thus, the mysql
898         library will be automatically loaded. This has only been tested on Linux,
899         thus far.
900
901 29 May 2007  Kevin Rosenberg <kevin@rosenberg.net>
902         * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
903         reported by Ricardo Boccato Alves
904
905 02 May 2007  Kevin Rosenberg <kevin@rosenberg.net>
906         * sql/database.lisp: Add ability of WITH-DATABASE to return
907         multiple values (patch from Liam Healy)
908         
909 25 Apr 2007  Kevin Rosenberg <kevin@rosenberg.net>
910         * Version 3.8.3
911         * doc/connect.xml: variable description fix by Liam Healy
912         * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
913         Apply patches from Marcus Pierce to reduce load-time warnings
914         * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
915
916 23 Mar 2007  Kevin Rosenberg <kevin@rosenberg.net>
917         * Version 3.8.2
918         * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
919         disable wide characters for crypt salt sequence on SBCL, based
920         on patch from Lars Nostdal.
921
922 26 Jan 2007  Kevin Rosenberg <kevin@rosenberg.net>
923         * Version 3.8.1
924         * sql/pool.lisp: Test pooled connection when popped from
925         the pool to ensure the connection still works. Currently, implemented
926         only for MySQL.
927
928 17 Jan 2007  Kevin Rosenberg <kevin@rosenberg.net>
929         * db-mysql/Makefile: Add potential mysql directories
930
931 31 Dec 2006  Kevin Rosenberg <kevin@rosenberg.net>
932         * sql/metaclasses.lisp: Remove usused saved-initargs
933         * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
934         push search libraries)
935         
936 30 Dec 2006  Kevin Rosenberg <kevin@rosenberg.net>
937         * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
938         * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
939         Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
940         POSTGRESQL package name. CLSQL's new package will be PGSQL, however
941         on non-Lispworks platforms, the nickname POSTGRESQL will still be
942         available. Applications directly using low-level POSTGRESQL package
943         are recommended to use the new PGSQL name.
944         * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
945         Apply patch from Edi Weitz to reduce compiler warnings.
946         
947 28 Dec 2006  Kevin Rosenberg <kevin@rosenberg.net>
948         * Version 3.7.9
949         * sql/expressions.lisp: Commit patch from Edi Weitz to
950         use *default-database* for SQL-OUTPUT if no database is
951         explicitly passed to function.
952         * uffi/clsql-uffi-loader.lisp: Change load order to first try
953         plain name/type before attempting user-specified paths (patch
954         from Edi Weitz)
955         * uffi/ptrbits.c: New file to return number of bits in an pointer
956         * uffi/Makefile: use intbits to name .so file based on bit size.
957         Build both 32-bit and 64-bit libraries on 64-bit platform.
958         
959 30 Nov 2006  Kevin Rosenberg <kevin@rosenberg.net>
960         * Version 3.7.8
961         * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
962         error display
963
964 16 Oct 2006  Kevin Rosenberg <kevin@rosenberg.net>
965         * Version 3.7.7
966         * db-postgresql/postgresql-sql.lisp: Remove 
967         uffi:convert-foreign-to-native wrapper since using cstring for
968         PQresultErrorField
969
970 16 Oct 2006  Kevin Rosenberg <kevin@rosenberg.net>
971         * Version 3.7.6
972         * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
973         PQresultErrorField foreign function.
974
975 16 Oct 2006  Kevin Rosenberg <kevin@rosenberg.net>
976         * Version 3.7.5
977         * doc/intro.xml: Update supported platforms.
978         * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
979         changes from Andew Golding to use a more-specific error code
980         from PostgreSQL than the generic fatal error code of the result set.
981
982 03 Oct 2006  Kevin Rosenberg <kevin@rosenberg.net>
983         * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
984         readtable modifications
985
986 02 Oct 2006  Kevin Rosenberg <kevin@rosenberg.net>
987         * sql/syntax.lisp: Check that original reader syntax functions
988         stored before trying to restore them.
989         
990 20 Sep 2006  Kevin Rosenberg <kevin@rosenberg.net>
991         * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
992         display sql reader syntax.
993
994 06 Sep 2006  Kevin Rosenberg <kevin@rosenberg.net>
995         * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
996         to decide on 64-bit platform and check size of most-positive-fixnum instead.
997         Needed to support clisp amd64.
998
999 03 Sep 2006  Kevin Rosenberg <kevin@rosenberg.net>
1000         * Version 3.7.1
1001         * sql/metaclasses.lisp: Rework slot type's to be more AMOP
1002         compatibile. Add warning for a metaclass condition that should
1003         not occur.
1004         * sql/time.lisp: Fixed symbol case inconsistency causing problem
1005         in AllegroCL's modern lisp. First sign of bug noted by
1006         Joel Reymond on clsql-devel.
1007         * clsql.asd: Make time.lisp depend on utils.lisp
1008
1009 31 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
1010         * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push 
1011         *library-file-dir* to CLSQL's library path.
1012
1013 30 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
1014         * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
1015         CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
1016         latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
1017         * Makefile.common: Add OS detection
1018         * uffi/make.sh, db-mysql/make.sh: Remove files
1019         * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
1020         Refactor to remove need to make.sh shell scripts. 
1021         * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
1022         * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS 
1023         package rather than CL-USER. Add support for ansi-loop on clisp. 
1024         * sql/ansi-loop.lisp: New file to support iteration on clisp. 
1025         * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
1026         longer exist in the mysql client library.
1027         * doc/ref-fdml.lisp: Correct default field-type.
1028         * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
1029         Fixed bug with noted with MySQL 5.0.24 and boolean values.
1030         
1031 28 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
1032         * Version 3.6.7
1033         * sql/oodml.lisp: Remove high debugging level declaration
1034
1035 14 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
1036         * Version 3.6.6
1037         * sql/generic-postgresql.lisp: Fix assumption that postgres user id
1038         is always 1. Fixes problem noted with PostgreSQL 8.1.
1039
1040 12 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
1041         * Version 3.6.5
1042         * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
1043         lazily cache if pg_roles tables exist. Selectively use SQL from
1044         Joel's previous patch if pg_roles table exists. Should now work
1045         with both postgresql 7.4 and 8.x.
1046         
1047 12 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
1048         * Version 3.6.4
1049         * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
1050         local initialization file
1051         * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
1052         as name candidates.
1053         * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
1054         that generates incorrect integer return type
1055         * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
1056         it fails on versions of postgresql that lack the pg_role table
1057         
1058 07 Jul 2006  Kevin Rosenberg <kevin@rosenberg.net>
1059         * Version 3.6.3
1060         * sql/transactions.lisp: Important typo fix from Alexey Antipov
1061         for database-start-transaction
1062         
1063 04 Jul 2006  Kevin Rosenberg <kevin@rosenberg.net>
1064         * Version 3.6.2
1065         * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
1066         to close connection when failing to connect to database.
1067         * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
1068         to avoid dropping system views.
1069         * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
1070         a nil value [patch sponsored by Flektor]
1071         * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
1072         for netbsd compilation
1073         
1074 15 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
1075         * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
1076         slots for def-view-class macro [as reported missing by Thomas Fischbacher].
1077         
1078 09 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
1079         * db-postgresql-socket/postgresql-socket-api.lisp:
1080         Apply patch from Marko Kocic adding the socket creation
1081         function needed for CLISP.
1082
1083 08 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
1084         * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
1085         * db-oracle/metaclasses.lisp: Patch from James Bielman for
1086         checking slot constraints.
1087         * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
1088         saved openmcl images (based on patch from James Bielman)
1089
1090 06 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
1091         * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
1092         
1093 03 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
1094         * Version 3.5.7
1095         * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
1096         duration parsing and unparsing to include year and month.
1097         * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
1098         improving library search on Windows platform.
1099         * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
1100         Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
1101
1102 20 Mar 2006  Kevin Rosenberg <kevin@rosenberg.net>
1103         * Version 3.5.6
1104         * clsql-postgresql-socket.asd, 
1105         * db-postgresql-socket/postgresql-socket-package.lisp: 
1106         Use the cl-md5 package on all platforms. Based on report 
1107         from Alan Caulkins.
1108         
1109 09 Mar 2006  Kevin Rosenberg <kevin@rosenberg.net>
1110         * Version 3.5.5
1111         * uffi/make.sh, db-mysql/make.sh: Add GNU uname
1112         
1113 28 Feb 2006  Kevin Rosenberg <kevin@rosenberg.net>
1114         * Version 3.5.4
1115         * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
1116         fix accessor for new versions of SBCL
1117         * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
1118         to improving parsing of time.
1119         * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
1120         by Harold Lee.
1121         * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
1122         as noted by Russ Tyndall.
1123         
1124 16 Jan 2006  Kevin Rosenberg <kevin@rosenberg.net>
1125         * Version 3.5.3
1126         * sql/time.lisp: Commit patch from Aleksandar Bakic
1127         to properly handle destructive flag
1128         * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
1129         from Steven Harris for socket files with SBCL.
1130         * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
1131         new connections added to the pool do not become the *default-database*
1132         * sql/connect.lisp: Optionally set *default-database* for pooled
1133         connection when make-default is generalized true.
1134         
1135 23 Dec 2005  Kevin Rosenberg <kevin@rosenberg.net>
1136         * Version 3.5.1
1137         * sql/expressions.lisp: Ensure table names are properly escaped
1138         before comparing -- fixes bug reported by Asbjørn Bjørnstad
1139         on CLSQL-Devel.
1140
1141 02 Dec 2005  Kevin Rosenberg <kevin@rosenberg.net>
1142         * sql/generic-postgresql.lisp: improved decoding of table attribute
1143           parameters [from Vladimir Sekissov]
1144         * sql/metaclasses.lisp: check that metaclass is standard-db-class or
1145           it's subclass to prevent adding standard-db-object to supers if
1146           somebody in the path has it already when metaclass inherited from
1147           standard-db-class. [from Vladimir Sekissov]
1148         
1149 26 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1150         * Version 3.5.0
1151         * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp, 
1152         * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
1153         * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
1154         * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
1155         * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
1156         * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
1157         Commit patch from Dominic Robinson providing support for 
1158         Microsoft SQL Server
1159         * doc/csql.lisp: Fix typo in slot name
1160         
1161 24 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1162         * Version 3.4.7
1163         * sql/time.lisp: Commit patch from Aleksandar Bakic for
1164         correct handling of decode-time usec value  
1165         * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
1166         correct the name of the shared library file.
1167         
1168 16 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1169         * version 3.4.6
1170         * sql/metaclasses.lisp: Avoid calling change-class on
1171         effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
1172         changes.
1173         
1174 15 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1175         * Version 3.4.5
1176         * sql/expressions.lisp: Patch from James Biel to add subselects
1177
1178 14 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1179         * Version 3.4.4 [ Requires UFFI 1.5.7+] 
1180         * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1181         to fix lifetime of foreign strings for Oracle calls
1182
1183 13 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1184         * Version 3.4.3
1185         * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1186         to improve performance
1187         
1188 12 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1189         * Version 3.4.2
1190         * clsql-uffi.asd: Patch from James Biel improving loading
1191         * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1192         to support 64-bit lisps
1193         
1194 12 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1195         * Version 3.4.1
1196         * sql/expressions.lisp: Escape numbers to SQL strings
1197         at expression level.
1198         
1199 11 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1200         * Version 3.4: Add MySQL 5 support
1201         * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
1202         * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
1203         * doc/mysql-macosx-notes.txt: New document from Martin Brooks
1204         
1205 7 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1206         * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
1207         function.
1208         * BUGS: Added report for update-object-joins by Aleksandar Bakic
1209         
1210 4 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
1211         * Version 3.3.4 [UFFI >= 1.5.5 needed]
1212         * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
1213         to add missing #\' character.
1214         * clsql.asd: Add support for CLSQLINIT environmental variable,
1215         based on patch from Yaroslav Kavenchcuk. New version of UFFI
1216         required.
1217         
1218 30 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
1219         * Version 3.3.3
1220         * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
1221         update-objects-joins when using the :target-slot attribute
1222         
1223 26 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
1224         * Version 3.3.2
1225         * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
1226         as noted by Harald Hanche-Olsen.
1227         * tests/test-syntax.lisp: Add test for multiple field group-by
1228         
1229 25 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
1230         * Version 3.3.1
1231         * sql/time.lisp: Commit patch from Alan Shields to
1232         display escape string on wall-time display only when *print-escape*
1233         is true.
1234         
1235 11 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
1236         * sql/metaclasses.lisp: Commit patch from Will to
1237         properly set db-reader slot in effective-slot-definition
1238         * sql/expressions.lisp: Commit patch from Alan Shields
1239         adding make-load-form for sql-relational-exp
1240         * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
1241         adding support for new NUMBER type
1242         
1243 17 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
1244         * Version 3.3.0
1245         * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
1246         * doc/ref-ooddl.xml: Documentation of new type
1247         * notes/add-type-hints.txt: New file from Alan Shields
1248         * sql/fddl.lisp: Add owner keyword to drop-table as suggested
1249         by Francis Leboutte
1250         * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
1251         as noted by Francis Leboutte. Similar fix applied to db-mysql and
1252         db-postgresql.
1253         * sql/expressions.lisp: Allow string table names for output as
1254         contributed by Francis Leboutte.
1255         * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted 
1256         by Francis Leboutte
1257         
1258 08 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
1259         * Version 3.2.4
1260         * doc/into.xml: Change download from ftp to http protocol
1261
1262 08 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
1263         * Version 3.2.3
1264         * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
1265         Edi Weitz
1266
1267 08 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
1268         * Version 3.2.2
1269         * db-oracle/oracle-sql.lisp: Add check for zero increment as
1270         suggested by Edi Weitz. Add missing database-sequence-last function
1271         as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
1272         in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
1273         stmthp object when query cursor is freed with OCI.
1274
1275 22 Aug 2005  Kevin Rosenberg <kevin@rosenberg.net>
1276         * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
1277         display search path when error occurs loading foreign library.
1278         
1279 05 Jul 2005  Kevin Rosenberg <kevin@rosenberg.net>
1280         * Version 3.2.1
1281         * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
1282         with changes to support case-sensitive lisp implementations. Add
1283         paragraph on using /etc/clsql-init.lisp site initialization file.
1284         * clsql.asd: Load file /etc/clsql-init.lisp, if it
1285         exists, after package is loaded to set site-specific configuration
1286         
1287 2005-06-24  Edi Weitz  <edi@agharta.de>
1288         * sql/db-interface.lisp: Added new special variable
1289         *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
1290         manipulate it.
1291         * sql/package.lisp: Export these.
1292         * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
1293         libs.
1294         * db-mysql/mysql-loader.lisp: Changed order of libs.
1295
1296 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1297         * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
1298         * clsql-mysql.asd: Renamed clsql/mysql interface library from
1299         mysql to clsql_mysql
1300         * clsql-uffi.asd: Renamed clsql/uffi interface library from
1301         mysql to clsql_uffi
1302         * uffi/clsql_uffi.c: Renamed from uffi.c
1303         * db-mysql/clsql_mysql.c: Renamed from mysql.c
1304         * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
1305         * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
1306         * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
1307         absolute pathnames when searching for foreign libraries.
1308         foreign library loading.
1309         
1310 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1311         * Version 3.1.16
1312         * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
1313         to support UTF-8 on sbcl unicode.
1314         
1315 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1316         * Version 3.1.15
1317         * sql/time.lisp: Fix bug in roll that caused failure in test suite
1318
1319 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1320         * Version 3.1.14
1321         * sql/oodml.lisp: Properly handle when db-writer is NIL
1322
1323 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1324         * sql/expressions.lisp: Avoid using simple-string declaration when
1325         a non-simple string may be encountered. [issue noted by 
1326         will@cesmail.net] Add a simple-string declaration for a local
1327         string generated.
1328         
1329 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1330         * sql/oodml.lisp: Change db-writer and db-reader processing to accept
1331         a symbol as well as function to serve as a function designator
1332         [issue noted by will@cesmail.net]
1333
1334 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1335         * Version 3.1.13
1336         * sql/time.lisp: Fix error in submitted patch which caused error
1337         in timestrings with 19 or less characters.
1338         
1339 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1340         * Version 3.1.12
1341         * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
1342         to fix read-socket-sequence on non-sb-unicode sbcl.
1343         
1344 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1345         * Version 3.1.12
1346         * sql/time.lisp: Commit patch from Daniel Lowe which adds support
1347         for fractional seconds which is required by PostgreSQL
1348         * db-postgresql/postgresql-loader.lisp: Add library path for Windows
1349         
1350 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1351         * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
1352         
1353 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1354         * Version 3.1.11
1355         * sql/syntax: Commit patch from Alan Shields to supress reader
1356         macros when *read-supress* is T.
1357         
1358 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1359         * Version 3.1.10
1360         * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1361         from Janis Dzerins to support unicode on SBCL
1362         * sql/syntax: Commit patch from Alan Shields to improve reporting
1363         of invalid syntax statements.
1364         
1365 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1366         * Version 3.1.9
1367         * db-mysql/mysql-sql.lisp: Add port to connection specification
1368         based on patch from Dave Watson
1369         * doc/appendix.xml: Document MySQL port parameter to connection spec
1370
1371 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1372         * Version 3.1.8
1373         * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
1374         
1375 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1376         * sql/oodml.lisp: Add missing database argument [Patch from
1377         Alan Caulkins]
1378         
1379 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1380         * sql/oodml.lisp: Improve database priority in 
1381         update-records-from-instance [Patch from Walter C. Pelissero]
1382         
1383 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1384         * Version 3.1.7
1385         * sql/package.lisp: Export database-reconnect from clsql-sys
1386
1387 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1388         * sql/oodml.lisp: Use explicit database in fault-join-target-slot
1389         [Patch from Walter Pelissero]
1390         
1391 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1392         * db-postgresql/postgresql-loader.lisp: Add additional
1393         directories to Fink on darwin [patch from Cyrus Harmon].
1394         
1395 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1396         * Version 3.1.6
1397         * sql/oodml.lisp: Clear view instance cache when delete-instance-records
1398         is invoked [suggested by Alan Shutko].
1399         * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
1400         * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
1401         to def-view-class [fix suggested by Fred Gilham].
1402         
1403 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1404         * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
1405         suggestion.
1406         * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
1407         * doc/*.xml: Fix spelling of Vladimir
1408         
1409 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1410         * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
1411         now that LispWorks is an independant company [noted by
1412         Martin Thornquist]
1413         
1414 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1415         * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
1416         Better support for 64 bit environments
1417
1418 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1419         * Version 3.1.5
1420         * sql/metaclass.lisp: Make t the default value of :set
1421         [noted by Cyrus Harmon]
1422
1423 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1424         * Version 3.1.4
1425         * uffi/clsql-uffi.lisp: Add support for unsigned integers
1426         * db-mysql/mysql-sql.lisp: Add support for detecting/marking
1427         unsigned integers. Apply patch from Yannick Gingras to
1428         implement database-sequence-last.
1429         
1430 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1431         * doc/ref-fdml.lisp: Fix variable tag name to varname
1432         [noted by Eduardo Munoz]
1433         * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
1434         
1435 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1436         * Version 3.1.2
1437         * sql/ooddl.lisp: Accept patch from Klaus Harbo for
1438         update-object-joins.
1439         * sql/metaclass.lisp: Remove unnecssary (and runtime error
1440         causing) change-class invocation when running on CLISP.
1441         * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
1442         to fix structure name.
1443         * sql/database.lisp: More specific error message with trying
1444         to use a database value of NIL.
1445         * sql/expressions.lisp: Accept a string for the table name
1446         in (sql-output sql-delete database) [suggested by Ed Symanzik].
1447         
1448 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1449         * Version 3.1.1
1450         * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
1451         ignore columns which have been dropped.
1452         * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
1453         Use sb-md5 package on SBCL, recommended by Chris Capel
1454         
1455 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1456         * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
1457         * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
1458         * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
1459         
1460 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1461         * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
1462
1463 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1464         * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
1465         contributed by Aurelio Bignoli
1466
1467 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1468         * sql/oodml.lisp: Commit patch from Walter Pelis
1469         to use an object's database for a select on its slot.
1470         
1471 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1472         * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
1473         Aurelio Bignoli to fix negative 64-bit integers
1474         
1475 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1476         * db-mysql/mysql.c: Fix parameters in bind_param call
1477
1478 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1479         * uffi/clsql-uffi.lisp: Add support for :blob result-type
1480         * db-mysql/mysql-sql.lisp: Add support for :blob
1481         result-type
1482         
1483 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1484         * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
1485         missing quotes for types in code that is still in development
1486         (thanks to Joerg Hoehle)
1487         
1488 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1489         * Version 3.0.8 released
1490         * db-sqlite/sqlite-*.lisp: Apply patch from
1491         Aurelio Bignoli with improvements
1492         
1493 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1494         * multiple: Apply patch from Joerg Hoehle with multiple
1495         improvements.
1496         
1497 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1498         * Version 3.0.7 released
1499         * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
1500         Add support for mediumint.
1501         * sql/metaclass.lisp: Rework CLISP MOP handling
1502         * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
1503         
1504 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1505         * sql/metaclass.lisp: Support CLISP's attribute name
1506         for the type field in direct class slots
1507         
1508 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1509         * Version 3.0.6 released
1510         * BUGS: New file. Document suspected SIGPIPE
1511         interaction between SBCL and libpq used in
1512         postgresql backend.
1513         * doc/ref-fdml.lisp: Document the :caching and :refresh
1514         keywords of the SELECT function.
1515         * doc/ref-ooddml.lisp: Document the new *default-caching*
1516         variable.
1517         * sql/package.lisp: Export *default-caching*
1518         * sql/oodml.lisp: Use *default-caching* to 
1519         control default caching behavior.
1520         
1521 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1522         * Version 3.0.5 release
1523         * doc/appendix.xml: Add note about loading Oracle8 version
1524         * db-oracle/oracle-loader.lisp: Support Oracle8 based on
1525         data from David Young.
1526
1527 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1528         * doc/Makefile, doc/catalog-darwin.xml: Apply
1529         patch from Cyrus Harmon for building docs on Mac OS X
1530         * sql/package.lisp: Add new (pre-release) clisp MOP package     
1531         
1532 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1533         * Version 3.0.4 Release
1534         * multiple: Remove superfluous quotes in UFFI def-type
1535         and def-foreign-type forms.
1536         
1537 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1538         * Version 3.0.3 Release
1539         * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1540         from Tagore Smith to call force-output after sending authentication
1541         * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
1542         * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
1543         to a database of that type so that functions that indicate capabilities of
1544         database are available.
1545         
1546 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1547         * db-odbc/odbc-api.lisp: More conversions to ODBC v3
1548         
1549 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1550         * Version 3.0.2 Release
1551         * TODO: Add note about ODBC on Windows
1552         * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
1553         search directories
1554         * db-odbc/odbc-ff-interface.lisp: Change the return type 
1555         of SQLSetEnvAttr to :short
1556         
1557 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1558         * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
1559         slot of the employee View Class definition [reported by Franz Deuzer]. 
1560
1561 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1562         * Version 3.0.1 Release
1563         * tests/test-init.lisp: Add second join class to employee-address
1564         to test a class with two join slots.
1565         * sql/oodml.lisp: Fix find-all function for a class with multiple
1566         join slots
1567         * TODO: Remove need to test/fix multiple join classes
1568         
1569 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1570         * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
1571         from Jon Buffington for file locations on Darwin.
1572         
1573 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1574         * sql/db-interface.lisp: Improve messages when functions
1575         are passed a database object, but the method is not specialized
1576         for that database type.
1577         * sql/metaclasses.lisp: Fix inline declaration (reported by
1578         Cyrus Harmon)
1579         
1580 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1581         * TODO: Add bug report about SQL generation with a table
1582         containing two join slots.
1583         * sql/oodml.lisp: Add optional size to VARCHAR type
1584         
1585 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1586         * Version 3.0.0 Release
1587         * sql/expressions.lisp: Change declaration that
1588         caused error on openmcl
1589         * db-aodbc/aodbc-sql.lisp: Fix storage location
1590         of odbc connection. Specialize database-query since
1591         dbi's :types keyword is different than generic-odbc's
1592         :result-types keyword
1593         * sql/db-interface.lisp: Add warnings for methods
1594         not specialized by a db backends
1595         * tests/test-fddl.lisp: Fix case of symbols to support
1596         case-sensitive Allegro 
1597         * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
1598         * tests/test-init.lisp: Note that odbc driver for postgresql
1599         doesn't properly handle table ownership
1600         * LATEST-TEST-RESULTS: update with version 3.0.0
1601         
1602 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1603         * sql/expressions.lisp: conditionalise escaping of backslash in 
1604         generated SQL strings on backend. 
1605         * tests/test-fdml.lisp: test for escaping of backslash. 
1606         * sql/oodml.lisp: minor tidying in FIND-ALL. 
1607
1608 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1609         * NEWS: Initial 3.0 announcement draft
1610         * README: Expand acknowledgements of incorporated projects
1611         * CONTRIBUTORS: Further document Marcus Pearce contributions
1612         
1613 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1614         * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
1615         to print floats with the exponent markers removed. 
1616         * tests/test-oodml.lisp: add tests for updating records with floats. 
1617
1618 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1619         * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for 
1620         CommonSQL compatibility. 
1621         * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since 
1622         this column constraint syntax is not supported. 
1623         * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
1624         from EMPLID to LAST_NAME since Oracle complains that EMPLID is already 
1625         indexed. 
1626
1627 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1628         * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES. 
1629         * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES. 
1630         * doc/ref-ooddl.xml: minor changes to syntax and examples entries 
1631         for uniformity. 
1632         * doc/ref-oodml.xml: add examples for OODML. 
1633         * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument 
1634         to FIND-ALL. 
1635         * sql/metaclasses.lisp: update docstrings. 
1636         * tests/test-init.lisp: change :db-constraints for emplid to 
1637         (:not-null :unique) as a temporary test for multiple column constraints 
1638         in DEF-VIEW-CLASS. 
1639         * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and 
1640         return type of (SETF SLOT-VALUE-USING-CLASS). 
1641         * TODO, doc/TODO: remove items done. 
1642         * README: fix typo. 
1643         
1644 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1645         * sql/oodml.lisp: on Lispworks, use weak valued hash tables for 
1646         object caching. 
1647         * sql/expressions.lisp: Fix SQL generation for the symbol NIL. 
1648
1649 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1650         * sql/expressions.lisp: reactivate caching of generated SQL strings. 
1651         Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY 
1652         here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT, 
1653         OUTPUT-SQL and DATABASE-OUTPUT-SQL. 
1654         * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move 
1655         methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to 
1656         sql/expressions.lisp. 
1657         * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in 
1658         DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT. 
1659         * sql/generics.lisp: add docstrings. 
1660
1661 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1662         * Version 2.11.16
1663         * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
1664         code in favor of fixing UFFI with James Bielman's patch
1665         
1666 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1667         * Version 2.11.15
1668         * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
1669         from James Bielman
1670         
1671 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1672         * README, INSTALL: update URLs. Minor updates to descriptions. 
1673         * tests/README: remove stuff about editing contexts. 
1674
1675 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1676         * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to 
1677         *default-string-length*
1678         
1679 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1680         * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping 
1681         of single quotes. 
1682         * tests/test-fddl.lisp: add tests for column and table constraints 
1683         in CREATE-TABLE. Add test for OWNER keyword parameter to 
1684         LIST-TABLES (assuming same underlying machinery in other FDDL 
1685         functions). 
1686         * tests/test-init.lisp: restrict above test to postgresql and oracle. 
1687         
1688 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1689         * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio 
1690         Bignoli.
1691
1692 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1693         * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
1694         
1695 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1696         * Version 2.11.14
1697         * doc/*.xml: documentation additionals and fixes so
1698         that docbook passes xmllint.
1699         
1700 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1701         * Version 2.11.13
1702         * sql/fdml.lisp: Apply patch from Kim Minh Kaplan 
1703         to change escaping of single quotes. Mild optimizations
1704         for escaped string output.
1705         * doc/ref-ooddl.lisp: documentation additions
1706         * doc/ref-oodml.lisp: Add purpose to functions
1707         * TODO: Add need to test single quote escaping
1708         
1709 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1710         * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
1711         * sql/ooddl.lisp: Added SMALLINT type
1712         * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
1713         * db-mysql/mysql-objects.lisp: Added SMALLINT type
1714         * sql/package.lisp: Export SMALLINT
1715         * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
1716         db-constraints
1717         
1718 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1719         * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the 
1720         recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS 
1721         View Class slot option. 
1722         * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class 
1723         slot option accepting a list of constraints [reported by Travis Cross]. 
1724         * doc/ref-fddl.xml: add some examples of specifying column and 
1725         table constraints to the documentation for CREATE-TABLE. 
1726         * TODO: add note about adding tests for table/column constraints. Add 
1727         optimisation note about using cached attribute types in insert/update
1728         operations. 
1729         
1730 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1731         * doc/appendix.xml: add notes about idiosyncrasies/unsupported 
1732         features and so on the documentation for each backend. 
1733         * doc/TODO: remove items done. 
1734         * doc/ref-transaction.xml: add note in introduction about 
1735         autocommit mode as a difference from CommonSQL. 
1736         * doc/ref-syntax.xml: add notes about SQL syntax state functions 
1737         being macros in CLSQL. Add note about SQL operators which are 
1738         CLSQL extensions. 
1739
1740 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1741         * Version 2.11.12 released
1742         * doc/ref-recording.xml: document SQL I/O recording. 
1743         * doc/ref-prepared.xml: new file for documenting prepared statements. 
1744         * doc/clsql.xml: comment out include for large object and CLSQL-SYS 
1745         documentation. 
1746         * doc/ref-conditions.xml: complete documentation of condition system. 
1747         * doc/global-index.xml: add symbols from condition system and remove
1748         those from LOB and prepared statement APIs. 
1749         * doc/ref-fdml.xml: complete documentation of FDML.
1750         * doc/glossary.xml: add View Class. 
1751         * doc/TODO: remove items done. 
1752         * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR. 
1753         * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export 
1754         additional slot accessors for condition classes. 
1755
1756 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1757         * doc/ref-ooddl.lisp: Add documentation
1758         * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
1759         and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
1760         * doc/oodml.lisp: Rename references to new name of
1761         *DEFAULT-STRING-LENGTH*
1762
1763 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1764         * doc/ref-transaction.xml: document transaction handling. 
1765         * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and 
1766         START-TRANSACTION return NIL as per the CommonSQL spec. Modify 
1767         ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is 
1768         passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
1769         Added docstrings. 
1770
1771 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1772         * doc/ref-fdml.xml: document the FDML. 
1773         * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here. 
1774         * sql/ooddl.lisp: moved *default-varchar-length* to here from 
1775         oodml.lisp and renamed to *default-string-length*
1776         
1777 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1778         * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
1779         to allow specifying transactionless table creation
1780         * doc/ref-oodml.lisp: Add new keyword to signature of 
1781         DEF-VIEW-FROM-CLASS     
1782         
1783 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1784         * Version 2.11.11
1785         * sql/expressions.lisp: when removing duplicate table identifiers 
1786         in the FROM clause of a query, check both table name and alias 
1787         are equivalent. 
1788         * sql/fdml.lisp: remove DESCRIBE-TABLE. 
1789         * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and 
1790         DATABASE-DESCRIBE-TABLE. 
1791         * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE 
1792         and LIST-TABLE-INDEXES. 
1793         * sql/generic-postgresql.lisp: add reader conditional #+nil for 
1794         DATABASE-DESCRIBE-TABLE and comment about its uses for 
1795         re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query 
1796         returning type info for all attributes. 
1797         Fix DATABASE-SEQUENCE-LAST. 
1798         * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine 
1799         LIST-INDEXES with additional keyword parameter :ON. 
1800         * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3 
1801         with LIST-INDEXES (with :ON parameter). 
1802         * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES. 
1803         * doc/ref-connect.xml: minor tidying. 
1804         * doc/ref-fddl.xml: document the FDDL. 
1805         * doc/TODO: removed items done. Moved note about transaction handling 
1806         from TODO to here. 
1807         * TODO: move note about transaction handling to doc/TODO. Added 
1808         optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES. 
1809         
1810 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1811         * Version 2.11.10
1812         * sql/syntax.lisp: updated docstrings. 
1813         * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL 
1814         package.
1815         * sql/database.lisp: add docstrings for CREATE-DATABASE, 
1816         DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace 
1817         CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR. 
1818         * doc/ref-syntax.xml, doc/global-index.xml: minor tidying. 
1819         * doc/ref-connect.xml: document connection/initialisation. 
1820         * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here. 
1821         * doc/TODO: remove items done. 
1822         * Makefile: add db-oracle to to SUBDIRS. 
1823
1824 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1825         * sql/oodml.lisp: Add new serialization functions:
1826         WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1827         * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1828         from a table that has more than one primary index.
1829         * sql/conditions.lisp: Fix printing of closed-database error
1830         
1831 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1832         * Version 2.11.9
1833         * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1834         * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1835
1836 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1837         * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses 
1838         of SQL-EXPRESSION from CLSQL-SYS. 
1839         * sql/syntax.lisp: make error signalled in SQL-OPERATION an 
1840         SQL-USER-ERROR. Make SQL-OPERATOR return just one value. 
1841         * doc/Makefile: added Mandrake linux. 
1842         * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files. 
1843         * doc/appendix.xml: fixed little typo (adsf). 
1844         * doc/glossary.xml: removed closed-database and note about 
1845         sql-expression, added some entries. 
1846         * doc/ref-syntax.xml: documented the symbolic SQL syntax. 
1847
1848 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1849         * Version 2.11.8
1850         * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1851         * multiple: Add generalized-boolean type as requested by
1852         Edi Weitz
1853         * TODO: Added need for test of generalized-boolean
1854         
1855 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1856         * Version 2.11.7 released
1857         * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1858         for loading with clc-register-user-package. Remove personal
1859         directory from path lisp.
1860         * db-mysql/mysql-loader.lisp: Similar changes
1861         
1862 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1863         * Version 2.11.6 released
1864         * sql/oodml.lisp: Commit patch from Edi Weitz
1865         to fix symbol writing/reading
1866         * TODO: Add need for symbol slot test
1867         
1868 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1869         * sql/package.lisp: remove duplicate export of 
1870         *CACHE-TABLE-QUERIES-DEFAULT*. 
1871         * doc/ref-*.xml, doc/global-index.xml: new files documenting 
1872         the CommonSQL compatible api. 
1873         * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to 
1874         reflect changes in return values of WITH-TRANSACTION. 
1875
1876 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1877         * tests/README: Fix filename [reported by Bill Clementson]
1878         * sql/transactions.lisp: Apply return value patch from
1879         Edi Weitz for WITH-TRANSACTION
1880         * tests/README: Remove ptester package requirement (as noted
1881         by Bill Clementson)
1882         
1883 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1884         * Version 2.11.5 released
1885         * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1886         Select connection-spec based on connection type. Bugs reported by
1887         Bill Clementson.
1888         * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1889         * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1890         name on Windows, add \bin\ directory to search path
1891         
1892 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
1893         * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in 
1894         DATABASE-CONNECT. 
1895         * sql/operations.lisp: substr now generates SUBSTR for use on 
1896         Oracle; added a new operator SUBSTRING for use elsewhere. minus 
1897         now generates MINUS for use on Oracle. Nvl signals an error if 
1898         not called with exactly 2 arguments. Add concat function for use 
1899         instead of the || operator on MySQL and Oracle. 
1900         * sql/syntax.lisp: changed internal symbol for the || operator to 
1901         CONCAT-OP. 
1902         * sql/expressions.lisp: removed redundant and unused functions 
1903         GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1904         (cf. MAKE-CONSTRAINTS-DESCRIPTION). 
1905         * sql/generics.lisp: removed generic function for 
1906         DATABASE-CONSTRAINT-DESCRIPTION (see above). 
1907         * tests/test-syntax.lisp: modified/added tests according to changes
1908         in sql/operations.lisp. 
1909         * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test 
1910         :fdml/select/21.  
1911         * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP 
1912         and SQL-USERENV to the shared exports list. Removed 
1913         ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION, 
1914         DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION, 
1915         TRANSACTION-LEVEL, TRANSACTION,  RECORD-SQL-COMMAND and 
1916         RECORD-SQL-RESULT from shared exports list. 
1917         
1918 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1919         * db-postgresql/postgresl-sql.lisp: Avoid computing
1920         result-types lisp when nil result-types. Return only
1921         one value when field-types nil.
1922         * db-mysql/mysql-sql.lisp: Simple queries now
1923         working with prepared statements.
1924         
1925 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1926         * Version 2.11.4: MySQL 4.1 now passes all tests
1927         * sql/package.lisp: Add API for prepared statments.
1928         * sql/fdml.lisp: Change implicit flatp processing
1929         for string map-query for greater CommonSQL conformance.
1930         Add high-high API for prepared statements.
1931         * tests/test-basic.lisp: Add test for map-query and
1932         single argument.
1933         * sql/transactions.lisp: Change name/semantics of
1934         autocommit to set-autocommit.
1935         * sql/generic-postgresql.lisp: Add support for
1936         prepared statements. 
1937         * tests/test-internal.lisp: New file
1938         * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1939         * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1940         Controller invocation.
1941         * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1942         * sql/expressions.lisp: Avoid emitting double parenthesis when a
1943         function contains a subselect. 
1944         
1945 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1946         * Version 2.11.3
1947         * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1948         type (setf slot-value-using-class)
1949         * TODO: add not that need a test case for the above fix
1950         * db-sqlite: Remove clisp support since clisp can not run CLSQL
1951         with its MOP usage
1952         * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as 
1953         introduced in Oracle8. Leave older code selectable by a reader macro
1954         for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1955         uses OCILogon and does not the more complex session management.
1956         
1957 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1958         * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1959         * test/test-init.lisp: Add universal-time slot to person.
1960         * test/test-fddl.lisp: Add tests of universal-time slot
1961         * test/test-ooddl.lisp: Test universal-time slot in an object
1962         * TODO: Remove need for universal-time test     
1963         * debian/rules, debian/control: Add cl-sql-oracle binary package
1964         * doc/appendix.xml: Add Oracle backend information
1965         * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1966         universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1967         * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1968         * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1969         for map-query to reflect changed in arguments to be CommonSQL compatible.
1970         Updated old clsql conditions to new CommonSQL compatible conditions.
1971         
1972 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1973         * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1974         type. Added *default-varchar-length* rather than previous hard-coded
1975         varchar length. Remove 'simple-string and 'simple-base-string since they
1976         are subtypes of 'string.
1977         * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1978         local hard-coded value.
1979         * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1980         type string. Convert specified-type (CHAR n) to string. Convert specified-type
1981         CHAR to lisp type character.
1982         * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1983         * sql/operations.lisp: Add userenv
1984         * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1985         slot tests
1986         * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1987         * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1988         * test/test-init.lisp: Add large table with bigint slot
1989         
1990 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1991         * Version 2.11.1 released: Much simpler Oracle client library loading.
1992         Now uses ORACLE_HOME environmental variable as well as tests default
1993         path for Oracle Instant Client. 
1994         
1995 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1996         * Version 2.11.0 released: Full Oracle support. All tests pass
1997         * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1998         * tests/test-init.lisp: capitalize odbc backend name in banner
1999         * CONTRIBUTORS: Add note about Marcus' excellent work
2000         * sql/oodml.lisp: Removed old stub function     
2001         * clsql.asd: Use module names in current package rather than keyword package
2002         * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
2003         in setting sequence position. Make autocommits more efficient.
2004         * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax 
2005         * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
2006         strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
2007         and read-sql-value for NUMBER and CHAR.
2008         * sql/base-classes.lisp: Add autocommit slot
2009         * sql/transaction.lisp: Added autocommit processing, mild cleaning.
2010         * doc/intro.xml: Add Oracle
2011         
2012 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk) 
2013         * db-postgresql-socket/postgresql-socket-sql.lisp: replace 
2014         CLSQL-SIMPLE-WARNING with SQL-WARNING. 
2015         * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with 
2016         SQL-WARNING. 
2017         * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR. 
2018         * clsql.asd: reworked module structure in package definition and 
2019         file names to better reflect component functionality. 
2020         * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to 
2021         exports list. Removed duplicate and obsolete exports. Exported 
2022         remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT, 
2023         SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and 
2024         according to whether they are specified by CommonSQL or CLSQL 
2025         extensions. 
2026         * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with 
2027         SQL-WARNING. 
2028         * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND 
2029         here from basic-sql.lisp. 
2030         * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted). 
2031         * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted). 
2032         * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
2033         (both deleted). 
2034         * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted). 
2035         * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted). 
2036         
2037 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2038         * Version 2.10.22 released
2039         * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
2040         has reversed class slots, change the default for ordered-class-slots so that slots
2041         are now in the same order an in the def-view-class.
2042         * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
2043         * test/test-fddl.lisp: Add two tests for mixed case names
2044         * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
2045         for computed fields, this will require some adjustment to the test suite which
2046         in many cases expects integers.
2047         * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
2048         
2049 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2050         * Version 2.10.21 released
2051         * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
2052         db-odbc, and db-aodbc.
2053         * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
2054         DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
2055         * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
2056         * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to 
2057         sql/generic-odbc.lisp
2058         * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp: 
2059         Move common code to  sql/generic-postgresql.lisp
2060         * sql/classes.lisp: honor case of string tables when outputting queries 
2061         * sql/objects.lisp: Add database type to default database-get-type-specifier method
2062         * sql/sql.lisp:  Add database type to default database-abort-transaction method
2063         * db-mysql/mysql-objects.lisp: New file
2064         * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
2065         * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
2066         from environment
2067         * test/test-fdml.lisp: String table names are now case sensitive, so convert to
2068         default db case for FDML/SELECT/25
2069
2070 22 May 2004 Kevin Rosenberg
2071         * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
2072         * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
2073         and string identifiers with non-default case
2074         * sql/table.lisp: Don't convert string table name to a symbol.
2075         * sql/classes.lisp: Honor case of string identifiers
2076         * sql/sql.lisp: Ensure recyclebin is purged for Oracle in 
2077         TRUNCATE-DATABASE
2078         * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
2079         of owner phrases. Obtain server and client versions.
2080         * db-oracle/oracle-objects.lisp: Fix type specifiers
2081         * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
2082         * tests/test-init.lisp: Properly get username from Oracle connection-spec
2083         
2084 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2085         * sql/generics.lisp: reworked docstrings. Remove generics for 
2086         ADD-TO-RELATION and REMOVE-FROM-RELATION. 
2087         * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS 
2088         to UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
2089         * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS 
2090         for CommonSQL compatibility. Remove ADD-TO-RELATION and 
2091         REMOVE-FROM-RELATION. 
2092         * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to 
2093         UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
2094         * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS. 
2095         * sql/conditions.lisp: add documentation for conditions. Add 
2096         SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility. 
2097
2098 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2099         * sql/basic-sql.lisp: reworked docstrings. 
2100         * sql/transactions.lisp: reworked docstrings. 
2101         * sql/sql.lisp: reworked docstrings. 
2102         * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE 
2103         sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility. 
2104         * sql/database.lisp: reworked docstrings. 
2105         * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P 
2106         and FDML extensions and database extensions. 
2107
2108 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2109         * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
2110         * db-oracle/make9.sh: add makefile for building with Oracle 9 client
2111         libraries
2112         * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
2113         Oracle versions with the PURGE option required for drop table. This needs
2114         to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
2115
2116 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2117         * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE. 
2118         * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION. 
2119         * sql/table.lisp: reworked docstrings. 
2120         * sql/objects.lisp: moved *default-update-objects-max-len* here from 
2121         table.lisp. 
2122         * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE, 
2123         DROP-VIEW and DROP-INDEX and the use of the :transactions and 
2124         :constraints keyword args to CREATE-TABLE. 
2125         * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now 
2126         CommonSQL compatible with respect to column constraints. 
2127
2128 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2129         * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
2130         Requires UFFI 1.5.0 or higher
2131         
2132 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2133         * Version 2.10.19
2134         * sql/conditions.lisp: Fix cerror
2135         
2136 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2137         * Version 2.10.18 released: New condition hierarchy to be compatible
2138         with CommonSQL -- not backward compatible with previous CLSQL.
2139         * sql/db-interface.lisp: Add more default methods
2140         * sql/objects.lisp: Add explicit table name to order-by parameters
2141         in find-all when only one table to avoid selecting a duplicate row.
2142         Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
2143         as previous logic was adding two fields (foo asc) to SELECT query.
2144         Make :result-types :auto be the default for object selections.
2145         Properly handle caching key when using multiple order-by with asc/desc
2146         directions.
2147         * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
2148         
2149 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2150         * sql/recording.lisp: reworked docstrings. 
2151         * sql/syntax.lisp: reworked docstrings. 
2152         * doc/TODO: added notes about extensions to SQL-RECORDING-P and the 
2153         SQL syntax state functions being macros. 
2154
2155 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2156         * sql/package.lisp: Export initialize-database-type and
2157         *initialize-database-types* from CLSQL package.
2158         * sql/conditions.lisp: Add new CommonSQL compatible conditions,
2159         remove old CLSQL conditions.
2160         * sql/loop-extensions.lisp: Make errors of type sql-user-error
2161         * */*.lisp: Convert to from old to new conditions
2162         
2163 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2164         * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
2165         To handle this difference, will need to add a new database-drop-table
2166         generic function.
2167         * db-oracle/oracle-sql.lisp: Move server-version and
2168         major-version-number to database object to allow multiple connections
2169         to Oracle servers of different versions.
2170         
2171 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2172         * TODO: moved notes about backends to doc/TODO. 
2173         * doc/TODO: added notes about backends and select extensions. 
2174         * sql/base-classes.lisp: remove obsolete schema slot in database 
2175         class. 
2176         
2177 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2178         * db-oracle/oracle-api: Add OCIServerVersion
2179         * db-oracle/oracle-sql: Query and store server version on connect
2180         * sql/db-interface.lisp: Add new db-type-has-bigint? generic
2181         function to handle OCI's lack of bigint support
2182         * test/test-basic.lisp: Separate bigint testing
2183         * test/test-utils.lisp: Add oracle to specs and list of backends
2184         * doc/TODO: New file
2185         * test/test-fdml.lisp: Added FDML/SELECT/34 to test
2186         run-time instantiation of variables in reader macros.
2187         * TODO: Remove item already complete. Add note about
2188         condition variances
2189         
2190 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2191         * sql/syntax.lisp: added condition to the reader macro to treat [*] 
2192         as a column identifier (rather than an operation) for CommonSQL 
2193         compatibility. 
2194         * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION 
2195         keword args to SELECT, [*] as column identifier, new MAP-QUERY 
2196         behaviour and the ANY and ALL operators in subqueries. 
2197         * tests/test-init.lisp: add set-operation and subquery tests to 
2198         appropriate skip lists. 
2199         * sql/objects.lisp: remove redundant and non CommonSQL compatible 
2200         ORDER-BY-DESCENDING keyword argument for SELECT. 
2201         * sql/classes.lisp: remove redundant and non CommonSQL compatible 
2202         ORDER-BY-DESCENDING keyword argument for SELECT. 
2203         * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT 
2204         with object queries. 
2205
2206 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2207         * sql/db-interface.lisp: Add new db-type-has-union? 
2208         since Mysql 3.23 does not support unions.
2209         * sql/test-init.lisp: Don't try union tests on database
2210         backends which do not support it.
2211         * db-oracle/*.lisp: initial port to UFFI
2212         * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
2213         implement REFRESH for SELECT.
2214         * tests/test-oodml.lisp: Add tests for deferred retrieval,
2215         caching, refresh, and update-object-joins
2216         * tests/test-init.lisp: Add deferred-employee-address class
2217         
2218 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2219         * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add 
2220         COALESCE operator and make NVL a synonym for this. Make ANY, SOME, 
2221         ALL and EXISTS generate function expressions so they output the 
2222         correct SQL. 
2223         * sql/classes.lisp: SELECT now generates appropriate SQL when 
2224         passed the SET-OPERATION and ALL keyword arguments. 
2225         * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now 
2226         accepts ordering constraints as pairs of the form (column direction) 
2227         where direction may be :ASC or :DESC. 
2228         * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL. 
2229         Correct tests for ANY, SOME, ALL and EXISTS. 
2230         * tests/test-fdml.lisp: added test for COALESCE. 
2231         * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION 
2232         using funcall unless QUERY-EXPRESSION returns one column and its 
2233         FLATP slot is not nil in which case apply is used. 
2234         * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the 
2235         changes. 
2236         * TODO: remove items done. 
2237         * db-postgresql/postgresql-sql.lisp: no need to reverse results in 
2238         DATABASE-LIST-ATTRIBUTES. 
2239         * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
2240         results in DATABASE-LIST-ATTRIBUTES.    
2241         
2242 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2243         * sql/classes.lisp: SELECT now accepts table identifiers as strings 
2244         for CommonSQL compliance. Add support for qualified sql identifiers 
2245         with aliased table names. 
2246         * tests/test-fdml.lisp: added tests for table identifiers as strings 
2247         in SELECT and for aliased definitions. 
2248         * tests/test-syntax.lisp: added tests for alias definitions. 
2249         
2250 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2251         * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and 
2252         field-names set to nil. 
2253         * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly 
2254         with null attribute values. 
2255         * sql/operations.lisp: modify SQL concatenation operator to accept 
2256         unescaped || symbol.  
2257         * sql/syntax.lisp: modify sql reader macro function to accept 
2258         unescaped sql concatenation operator. 
2259         * tests/test-fdml.lisp: unescape sql concatenation operator. 
2260         * tests/test-syntax.lisp: unescape sql concatenation operator. 
2261         * TODO: remove items done. Add notes about SQLITE/MYSQL backends. 
2262         Note to add test for universal-time. Note about difference from 
2263         CommonSQL in transaction handling. 
2264
2265 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2266         * tests/test-init.lisp: Add deferred-employee-address
2267         class
2268         * tests/test-oodml.lisp: Add deferred retrieval testgs
2269         
2270 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2271         * Version 2.10.17
2272         * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
2273         * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
2274         * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
2275         * *: Fix minor style warnings
2276         * clsql-classic: Remove system and subdirectory
2277         * clsql-base: Remove system and subdirectory and
2278         fold into clsql system
2279         * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
2280         as supported platform.
2281         
2282 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2283         * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
2284         * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
2285         Allegro 7.0beta AMD64
2286         * db-odbc/*.lisp: Add a layer of indirection to foreign-type
2287         of ODBC longs since this type can vary on 64-bit platforms depending
2288         upon the compilation options of unixODBC.
2289         * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
2290         structures found by testing with AllegroCL 7.0b AMD64.
2291         * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
2292         * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
2293         Initial caching support for SELECT
2294         * tests/test-oodml.lisp: Avoid using cache when testing select.
2295         * sql/kmr-mop.lisp: Explicitly check slot order and
2296         store as a cl:*feature*
2297         * sql/recording.lisp: Remove additional types to
2298         increase CommonSQL conformance.
2299         * tests/test-init.lisp: Change a :column attribute
2300         to test symbols as value
2301         * sql/relations.lisp: Remove functions since they don't support
2302         many to many relationships.
2303         * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
2304         of add-to-relations function and replace with explicit field settings.
2305         * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
2306         
2307 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2308         * Version 2.10.15
2309         * LATEST-TEST-RESULTS: results with current version
2310         * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
2311         since cmu19 has opposite order of class slots.
2312         * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
2313         * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
2314         a previous test
2315         * tests/test-init.lisp: Check test-database-underlying-type for
2316         ODBC/MySQL tests
2317         
2318 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2319         * sql/operations.lisp: complete remaining operations for the sql 
2320         syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT, 
2321         UNION, INTERSECT, BETWEEN. 
2322         * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION, 
2323         SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION. 
2324         * tests/test-syntax.lisp: add tests for new operations. 
2325         * tests/test-fdml.lisp: add tests for queries based on new operations. 
2326         * tests/test-init.lisp: add select/20 to tests skipped for sqlite and 
2327         select/20, query/5, query/7 and query/8 to tests skipped by mysql. 
2328         * TODO: removed entries done. 
2329
2330 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2331         * tests/benchmarks.lisp: Add immediate vs. deferred
2332         join test.
2333         
2334 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2335         * Version 2.10.13: Now works on openmcl 0.14.2 
2336         * sql/objects.lisp: Add :retrieval :immediate for
2337         object selections
2338         * tests/test-init.lisp: Add non-index fields for testing 
2339         join class employee-addresss
2340         * test/test-oodml.lisp: Add tests for retrieval immediate
2341         * sql/metaclasses.lisp: Handle differences in direct-slot-definition 
2342         values which are now listifed by openmcl 14.2.
2343         * sql/objects.lisp: more framework for supporing immediate retrieval 
2344
2345 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2346         * docs/intro.xml: Upload location of a README file
2347         * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
2348         changing the type-specifier. Use a lisp type of (OR NULL FOO)
2349         for a specified-type of FOO unless :db-constraints :not-null.
2350         No need to specialize finalize-inheritance for openmcl.
2351         * tests/test-*.lisp: Rename fields so that joins occur on
2352         fields with different names. This ensures that join code is
2353         selecting the proper name.
2354         * test/test-init.lisp: Add :base-table for employee-address
2355         view class for testing.
2356         * sql/objects.lisp: Use view-table rather than name of table
2357         in a number of places to fix errors noted with using :base-table.
2358
2359 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2360         * sql/objects.lisp: replace *update-records-on-make-instance* with 
2361         *db-auto-sync* which also controls both automatic creation of 
2362         new records on creation of new instance and updating of record 
2363         fields on setting of instance slots (as suggested by Edi Weitz). 
2364         * tests/test-init.lisp: replace *update-records-on-make-instance* 
2365         with *db-auto-sync*. 
2366         * sql/package.lisp: replace *update-records-on-make-instance* 
2367         with *db-auto-sync*. 
2368         * TODO: replace *update-records-on-make-instance* with *db-auto-sync*. 
2369         * sql/objects.lisp: remove redundant rebindings of *db-initializing* 
2370         and *default-database* in FIND-ALL. 
2371         * sql/package.lisp: import time functions from CLSQL-BASE. 
2372         * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
2373         * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
2374         * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
2375         * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with 
2376         CLSQL. 
2377
2378 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2379         * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
2380         now return a sql-object-query type rather than directly performing a query.
2381         This improves CommonSQL conformance.
2382         * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
2383         from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
2384         depend on sql-object-query-type.
2385         * sql/loop-extensions.lisp: Move from base package
2386         * classic/package.lisp: remove references to map-query and do-query
2387
2388 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2389         * TODO: New section on optimizations, especially optimizing JOINs.
2390         * sql/objects.lisp: Have :target-slot return of list of lists rather
2391         than a list of cons pairs to be conformant with CommonSQL.
2392         Make :target-slot much more efficient by using a SQL inner join
2393         statement and just requiring one SQL query. Add :retrieval :deferrred
2394         to target-slot joins. Add placeholder for update-objects-join.
2395         * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
2396         and process them for query output-sql. 
2397
2398 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2399         * Version 2.10.11
2400         * base/basic-sql.lisp: Avoid multiple evaluation
2401         of query-expression in DO-QUERY
2402         * sql/objects.lisp: Make SELECT a normal function.
2403         SELECT now accepts type-modified database identifiers, such as
2404         [foo :string] which means that the values in column foo are returned 
2405         as Lisp strings. Add new *update-records-on-make-instance* special
2406         variable controlling automatic creation of new instances. Add missing
2407         RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
2408         * sql/packages.lisp: Export *update-records-on-make-instance* 
2409         * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
2410         selections.
2411         * test/test-fdml.lisp: Add tests for type-modified
2412         database identifiers.
2413         * test/test-init.lisp: Stop using add-relation since implementing
2414         many-to-many joins. Use *update-records-on-make-instance* 
2415         to automatically store records on instance creation. Add many-to-many
2416         employee-address view-class.
2417         
2418 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2419         * Version 2.10.10
2420         * base/loop.lisp: Add object iteration. Use :result-type
2421         :auto for result-set. Remove 
2422         duplicate (and non-correct) code for non-list variables by
2423         simply making an atom variable into a list. 
2424         * sql/package.lisp: Remove unnecessary clsql-sys package
2425         and replace it with clsql.
2426         * sql/metaclasses.lisp: Properly store specified-type from
2427         direct-slot-definition and then store translated type in
2428         effective-slot-definition
2429         * sql/classes.lisp: Don't output type in sql-output
2430         for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
2431         [foo :integer] as fields in SELECT.
2432         * sql/query.lisp: Set default for :result-types to :auto in
2433         FDML QUERY.
2434         * sql/objects.lisp: Use specified-type when invocating 
2435         database-get-type-specifier. def-view-class macro now returns
2436         the class instance.
2437         * base/basic-sql.lisp: Make :AUTO the default value for
2438         :RESULT-TYPES for MAP-QUERY and DO-QUERY.
2439         * sql/objects.lisp: Add bigint type
2440         * test/tests-basic.lisp: Add tests for :result-types for
2441         MAP-QUERY and DO-QUERY
2442         * test/test-fdml.lisp: Add test for result-types in LOOP
2443         and also using single symbol rather than a list for variables.
2444         Add test that default :result-types is auto for FDML QUERY.
2445         * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
2446         of SQL-IDENT-ATTRIBUTE.
2447         * test/test-oodml.lisp: Enable OO loop iteration test,
2448         modify it so it doesn't depend on boolean where.
2449         
2450 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2451         * Version 2.10.9
2452         * sql/objects.lisp: added derived type specifier for universal time. 
2453         * sql/package.lisp: added #:universal-time to clsql-sys exports. 
2454         * tests/test-oodml.lisp: added test for translation of boolean slots 
2455         in SELECT with object queries. 
2456         
2457 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2458         * db-odbc/odbc-api.lisp: Fix changing nil to "NIL" 
2459         for odbc/postgresql backend.
2460         * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
2461         it can handle NIL values from the ODBC driver
2462         * tests/benchmarks.lisp: New file with initial
2463         benchmark suite
2464         * sql/relations.lisp: fix to add subclassing support,
2465         minor optimizations [Edi Weitz]
2466         
2467 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2468         * Version 2.10.8        
2469         * base/conditions.lisp: Add *backend-warning-behavior*
2470         special variable.
2471         * db-postgresql-socket/postgresql-socket-sql.lisp:
2472         Honor value of *backend-warning-behavior*
2473         * tests/test-fdml.lisp: Remove test of raw boolean value
2474         since different backends handle this differently. Add
2475         test for :column attribute.
2476         * tests/test-oodml.lisp: Add tests for boolean slot value
2477         and for :void-value attribute
2478         * tests/test-init.lisp: Use *backend-warning-behavior*
2479         to suppress warnings from postgresql about implicitly
2480         creating primary key in tables. Add new address table.
2481         
2482 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2483         * Version 2.10.7
2484         * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
2485         result-types is :auto
2486         * sql/objects.lisp: Properly handled writing/reading Boolean
2487         values from SQL database when retrieving objects.
2488         * test/test-fdml.lisp: Add another test for boolean results
2489         * test/utils.lisp: Fix incorrect declaration
2490         
2491 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2492         * Version 2.10.6
2493         * sql/generics.lisp: add generic function for SELECT. 
2494         * sql/objects.lisp: make SELECT a method specialisation. 
2495         * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections 
2496         referred to are View Classes. 
2497         * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the 
2498         query-expression arg evaluates to a list, then we have an object 
2499         query. 
2500         * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with 
2501         object queries. 
2502         * TODO: remove items done and add a todo for SELECT. 
2503         * sql/objects.lisp: SELECT takes a :field-names arg to pass on to 
2504         QUERY. 
2505         * sql/sql.lisp: add :field-names arg to QUERY. 
2506         * tests/test-fdml.lisp: minor rework to use :field-names arg to 
2507         SELECT. 
2508
2509 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2510         * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2 
2511         or more View Classes. 
2512         * sql/objects.lisp: make the :flatp argument to SELECT work with 
2513         object queries. 
2514         * sql/objects.lisp: make SELECT accept a :result-types argument 
2515         (defaults to :auto) which is passed on to QUERY.  
2516         * sql/objects.lisp: SELECT returns field-names as a second value. 
2517         * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate. 
2518         * tests/test-fdml.lisp: add flatp/result-types arguments to calls 
2519         to SELECT and take only first value as appropriate.
2520         * tests/test-fdml.lisp: add two new tests for query result coercion 
2521         and the field-names returned as a second value from SELECT. 
2522         * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate. 
2523         
2524 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2525         * Version 2.10.6-pre1
2526         * sql/metaclasses.lisp: Add void-value slot
2527         * doc/csql.xml: Update def-view-class documentation
2528         * test/test-init.lisp: Change old :db-type to :db-kind.
2529         Remove old :nulls-ok attributes.
2530         * sql/objects.lisp: Add new universal-time and bigint
2531         types. Optimize reading of integers using parse-integer
2532         rather than read-from-string.
2533         * */*.lisp: Merge clsql-base-sys and clsql-base packages
2534         into clsql-base package
2535         * classic/sql.lisp: Move large object support into base, leaving
2536         classic without any functionality that is provided in the clsql
2537         system.
2538         * classic/package.lisp: Rename clsql-classic-sys package to
2539         its former nickname of clsql-classic
2540         
2541 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2542         * Version 2.10.5: SQLite backend now passes all result-types tests
2543         * clsql-sqlite.asd: Depend on clsql-uffi system
2544         * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
2545         for efficiency and code reuse. 
2546         * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
2547         for better cross-implementation compatibility.
2548
2549 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2550         * Version 2.10.4
2551         * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
2552         [Marcus Pearce]
2553         * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
2554         bug on SBCL in result-field-names function as reported by Marcus Pearce
2555         * db-sqlite/sqlite-sql.lisp: Fix  in database-store-next-row
2556         manifest in SBCL testing
2557         
2558 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2559         * Version 2.10.3
2560         * sql/database.lisp: Conform more to CommonSQL output
2561         for STATUS command [Marcus Pearce]
2562         * sql/sqlite-sql.lisp: Rework to use result-types
2563         * sql/sqlite-api-clisp.lisp: Add compatibility layer
2564         with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
2565         be cleaned up of most clisp reader conditionals
2566         * sql/test-init.lisp: Now run field type tests on sqlite
2567         backend
2568         
2569 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2570         * Version 2.10.2
2571         * base/basic-sql.lisp: Set default value of :result-types 
2572         to :auto for more CommonSQL conformance. 
2573         * test/test-fdml.lisp: Add tests for numeric value of fields
2574         
2575
2576 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2577         * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
2578         * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
2579         Return field names as second value for QUERY. This can be overridden
2580         for efficiency with the new keyword :FIELD-NAMES set to NIL
2581         in the QUERY invocation.
2582         * test/test-fdml.lisp: Add tests for new field-name feature
2583         * sql/metaclass.lisp: Remove old Lispworks cruft
2584         and replace it with invocation of new code in kmr-mop.lisp
2585         which actually works with Lispworks 4.2
2586         * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
2587         QUERY function
2588         * base/db-interface.lisp: Document the multiple values
2589         returned by DATABASE-ATTRIBUTE-TYPE so matches the
2590         undocumented CommonSQL behavior. 
2591         * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
2592         *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
2593         LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
2594         Implement CACHE-TABLE-QUERIES.
2595         * db-odbc/odbc-sql.lisp: Fix attribute-type function
2596         * test/test-fddl.lisp: Add tests for attribute type     
2597         * db-mysql/mysql-sql.lisp: Mild optimization in accessing
2598         field structures.
2599         * base/classes.lisp: Add attribute-cache slot to database clas
2600         * base/initialize.lisp: initialize-database-type now automatically
2601         loads database-type backend as needed.
2602         * base/test-init.lisp: Utilize new initialize-database-type functionality.
2603         * TODO: remove items done
2604         
2605 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2606         * Version 2.9.6
2607         * sql/objects.lisp: remove create/drop-sequence-from-class. 
2608         * sql/objects.lisp: add INSTANCE-REFRESHED generic function. 
2609         * sql/objects.lisp: improved CommonSQL compatibility for
2610         UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
2611         UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS. 
2612         * sql/generics.lisp: move generics from objects.lisp to here. 
2613         
2614 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2615         * Version 2.9.6-pre1
2616         * db-mysql/mysql-client-info.lisp: Add client version 4.1
2617         detection
2618         * sql/sql.lisp: Make *default-database* the default for
2619         TRUNCATE-DATABASE
2620         
2621 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2622         * Version 2.9.5
2623         * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
2624         detection
2625         * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying 
2626         :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes 
2627         on a metaclass specialized from standard-db-class.
2628
2629         
2630 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2631         * Version 2.9.4: Multiple changes to support Allegro's "modern"
2632         lisp which uses a lowercase reader and has case-sensitive symbols
2633         * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
2634         exposed by case-sensitive mlisp. 
2635
2636 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2637         * Version 2.9.3: All tests now pass on all platforms!
2638         * LATEST-TEST-RESULTS: New file with summary of test results
2639         * sql/generics.lisp: New file for generic function definitions.
2640         * test/test-init.lisp: Display names of skipped tests.
2641         Use unwind-protect to ensure disconnect
2642         * sql/objects.lisp: Change database-type to database-underlying-type
2643         so that actual database engine is properly identified
2644         * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
2645         return an ISO timestring for compatibility with other drivers.
2646         Workaround bug in MyODBC for LIST-TABLE-INDEXES
2647         * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
2648         returns floating-point values for floor and truncate operations 
2649         * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
2650         * tests/test-basic.lisp: Port to regression tester
2651         * test/test-init.lisp: Output to *report-stream*
2652         * docs/appendix.xml: Document ODBC and SQLite backends.
2653         * sql/classes.lisp: Make output-sql require a database parameter.
2654         This allows SQL generation to have the proper case to support
2655         the differences in case handling between CommonSQL API,
2656         Postgresql, MySQL, Oracle.
2657         
2658 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2659         * Version 2.9.2: Improvments in database capability introspection
2660         and querying. Support transactions in MySQL where available.
2661         All tests now pass on MySQL and SQLite in addition to postgresql
2662         and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
2663         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
2664         DATABASE-LIST-SEQUENCES.
2665         * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
2666         * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
2667         HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
2668         * tests/*.lisp: Check database capabilities and remove tests which
2669         the database backend does not support
2670         * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
2671         controls whether InnoDB tables will be created when supported on
2672         the underlying MySQL server.
2673         
2674 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2675         * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
2676         supported by all database backends (except AODBC since
2677         AODBC doesn't support index querying)
2678         * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
2679         * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
2680         to support index queries
2681         * db-aodbc/aodbc-sql.lisp: Filter driver manager
2682         "information_schema" tables from LIST-TABLES
2683         * tests/test-basic.lisp: Remove table after testing
2684         * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
2685         * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
2686         which gets the underlying type of database -- required
2687         when dealing with ODBC databases and want to query
2688         database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
2689         as first database-backend specific feature. Is T on
2690         :mysql, NIL on other backends. Change DROP-TABLE to
2691         query this.
2692         
2693 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2694         * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
2695
2696 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2697         * Version 2.8.1
2698         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function 
2699         * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function 
2700
2701 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2702         * Version 2.8.0: New API function: LIST-DATABASES
2703         * base/utils.lisp: Fix command-output on CMUCL/SBCL
2704         * db-*/*-sql.lisp: Add new database-list function
2705         * base/database.lisp: Add new LIST-DATABASES command
2706         
2707 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2708         * Version 2.7.9
2709         * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
2710         * db-sqlite/sqlite-api-uffi.lisp: Print error string
2711         correctly.
2712         
2713 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2714         * Version 2.7.7
2715         * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
2716         from Eduardo Munoz.
2717         
2718 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2719         * Version 2.7.6
2720         * base/objects.lisp, base/classes.lisp: Patch
2721         for db-kind from Eduardo Munoz
2722         
2723 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2724         * Version 2.7.5
2725         * base/basic-sql.lisp: Fix FLATP in QUERY
2726
2727 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2728         * Version 2.7.3: Implement RECONNECT
2729
2730 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2731         * Version 2.7.2: Fix ODBC on Lispworks Windows
2732
2733 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2734         * Version 2.7.1: Fix for new ODBC backend.
2735         clsql-odbc now works on SBCL, CMUCL, OpenMCL
2736         in addition to AllegroCL and Lispworks.
2737
2738 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2739         * Version 2.7.0: New backend: ODBC. Tests as
2740         well as AODBC backend on Allegro,Lispworks.
2741         SBCL and CMUCL don't work quite yet.  Requires UFFI v1.4.11+
2742         * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
2743         to explicitly set ODBC2 support. Add BIGINT support.
2744         Add result-types support. Added SQLTables.
2745         Fix array type in fetch-all-rows. Make width
2746         changable by database or query.
2747         * base/utils.lisp: Add process functions
2748         * base/package.lisp: Export utils to CLSQL-BASE-SYS
2749         * db-aodbc: Implement sequence functions,
2750         database-list-tables, database-list-attributes
2751         * tests/utils.lisp: Add support for ODBC backend,
2752         rework READ-SPECS to use +all-db-types+
2753         * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
2754         for SEQUENCE-NEXT
2755         
2756 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2757         * Version 2.6.13. Requires UFFI version 1.4.9
2758         * db-odbc/*.lisp: Further porting.
2759         Pre-alpha code! But, basic query is now working.
2760
2761 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2762         * Version 2.6.12
2763         * base/transactions.lisp: Add quote for macro
2764         expansion of WITH-TRANSACTIONS [Time Howe]
2765         * db-sqlite/sqlite-sql.lisp: Support memory database
2766         in database-probe [Ng Pheng Siong]
2767         * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
2768         The DBI layer is not finished.
2769         
2770 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2771         * Version 2.6.11
2772         * sql/objects.lisp: add :root-class functionality for
2773         list-classes and add duration type support [Marcus Pearce]
2774         * db-odbc: Add mid-level [DBI] layer
2775
2776 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2777         * Version 2.6.10
2778         * db-aodbc: Add methods for generic functions, some are
2779         not yet implemented.
2780         * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
2781         support
2782
2783 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2784         * Version 2.6.9
2785         * base/package.lisp: Add missing symbols [Marcus Pearce]
2786
2787 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2788         * Version 2.6.8
2789         * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
2790         * utils/time.lisp: Multiple fixes [Marcus Pearce]
2791         * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
2792         
2793 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2794         * Version 2.6.7
2795         * sql/*.lisp: Remove schema versioning cruft
2796         [Marcus Pearce]
2797         * Makefile: Add classic subdirectory
2798         
2799 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2800         * Version 2.6.6
2801         * sql/sql.lisp: Fix TRUNCATE command, bug reported
2802         by Marcus Pearce
2803         * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
2804         specific and easy for an application to directly support.
2805         Idea from Marcus Pearce.
2806         * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level 
2807         API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
2808         Keep low-level interface for future optimization
2809         supporting LIST-ATTRIBUTE-TYPES command.
2810         * Makefile: Add to db-sqlite and test directories.
2811         Include them in top-level Makefile
2812         
2813 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2814         * Version 2.6.5
2815         * sql/relations.lisp: Add missing file
2816         * utils/time.lisp: Fixes/extensions [Marcus Pearce]
2817         * test/test-time.lips: New file [Marcus Pearce]
2818         
2819 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2820         * Version 2.6.4
2821         * test/test-init.lisp: Properly handle object
2822         creation. Close database after use.
2823         * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2824         function so can have methods specialized on
2825         table being a string or an sql-table object.
2826         * base/pool.lisp: Really fix CMUCL locking
2827         
2828 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2829         * Version 2.6.3
2830         * test/test-init.lisp: Signal correctly
2831         if any errors occurred in any test suite
2832         * base/loop-extensions.lisp: Fix error
2833         introduced for Lispworks
2834         * base/pool.lisp: Fix locking for CMUCL
2835         * base/objects.lisp: Remove schema-version cruft
2836         
2837 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2838         * Version 2.6.2: New CLSQL API functions:
2839         DESCRIBE-TABLE AND TRUNCATE-DATABASE
2840         Currently, this are only supported on :postgresql
2841         and :postgresql-socket
2842         * base/database.lisp: automatically load ASDF system
2843         in CONNECT if not already loaded
2844         * base/tests.lisp: disconnect database after testing 
2845         * base/*.lisp: Remove CLOSED-DATABASE type in favor
2846         of storing open/closed status in slot of database
2847         * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2848         * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2849         DATABASE-DESCRIBE-TABLE
2850         * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2851         * base/conditions: Remove duplicate condition
2852         * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2853         * base/recording.lisp: Add new :QUERY type for recording
2854         
2855 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2856         * Version 2.6.1: documentation fixes, merged
2857         classic-tests into tests
2858
2859 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2860         * Version 2.6.0 released: New API functions
2861         CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2862         * doc/ref_clsql.xml: Document new functions
2863         * base/database.lisp: New API functions
2864         * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2865         * base/utils.lisp: Fix use of position-char.
2866         Add COMMAND-OUTPUT used by backends for running
2867         external programs. Fix parsing of SQL*NET-compatible
2868         connection-specs.
2869         * base/loop-extension.lisp: Simplify package use
2870         for Lispworks and Allegro
2871         * db-*/*-sql.lisp: Added DATABASE-CREATE,
2872         DATABASE-DESTORY, PROBE-DATABASE methods
2873         * tests/test-init.lisp, clasic-tests/tests.lisp:
2874         Use destroy-database and create-database to ensure 
2875         testing with empty database
2876         * tests/test-connection.lisp: Add tests for
2877         parsing of string connection-specs
2878         * examples/run-tests.sh: New file for running
2879         test suite on all installed CL implementations
2880         * examples/clsql-tutorial.lisp: moved from
2881         doc directory
2882         * examples/dot.clsql-tests.config: New file
2883         giving an example test configuration
2884         * test/README: Add notes about rtest/ptester
2885         downloads and link to sample test configuration file.
2886         
2887 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2888         * Version 2.5.1 released:
2889         * tests/*.lisp: Rework so tests are run
2890         on multiple backends automatically based
2891         on the contents of ~/.clsql-tests.config.
2892         Reuse helper functions from classic-tests.
2893         * base/database.lisp: Support connection-spec
2894         as string for CONNECT
2895         * classic-tests/tests.lisp: Automatically
2896         load database backends as needed. 
2897         
2898 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2899         * Version 2.5.0 released:
2900         All tests for CLSQL and CLSQL-CLASSIC pass
2901         on all platforms.
2902         * base/loop-extension.lisp: Add Lispworks
2903         loop-extension. Improve type specifying on
2904         other platforms.
2905         
2906 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2907         * Version 2.4.2 released:
2908         loop extension now supported on Allegro, all
2909         CLSQL-TESTS pass on Allegro.
2910         * sql/metaclasses.lisp: Some optimization
2911         of compute-slots, be selective when
2912         ordered-class-slots needs to be called
2913         instead of class-slots
2914         * TODO: add URL with documentation on
2915         extending Lispworks LOOP form
2916         
2917 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2918         * Version 2.4.1 released: CLSQL-TESt suite passes
2919         all tests for postgresql and CMUCL, SBCL, OpenMCL.
2920         Allegro and Lispworks pass all tests except for
2921         FDML/LOOP/1 since the loop extension have not yet
2922         been ported to those implementions.
2923         * sql/metaclasses.lisp: Added new slot to standard-db-class
2924         to hold user-specified type. OpenMCL adjustments to compensate
2925         for its type-predicate function. Since AllegroCL, Lispworks,
2926         and OpenMCL have different slot orders, added compute-slots
2927         and ordered-class-slots functions so their slot order matches
2928         SBCL/CMUCL.
2929
2930 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2931         * Version 2.4.0 released: All tests for clsql-classic now finish
2932         correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2933         mysql, postgresql, postgresql-sockets, and sqlite backends.
2934         * db-mysql/mysql-sql.lisp: Fix array dereferencing
2935         * classic-tests/tests.lisp: Fix package name of
2936         number-to-sql-string. 
2937         * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2938         * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2939         now passes tests on all support UFFI platforms.
2940         * db-postgresql-socket/postgresql-socket-api.list: Ported to 
2941         SBCL and OpenMCL
2942         * multiple: Finish renaming of :types keyword to :result-types for
2943         greater CommonSQL compatibility, including documentation
2944         * sql/basic-cmds.lisp: Remove obsolete file
2945         
2946 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2947         * Version 2.3.3 released
2948         * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2949         * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2950         * Fix for schema table [Marcus Pearce]
2951         * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2952         * Fixes to test suite [Marcus Pearce]
2953
2954 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2955         * db-*/*-sql.lisp: Ensure that expr in
2956         database-query-result-set is a string
2957         * Documentation integration
2958         
2959 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2960         * With for Marcus Pearce's excellent work, I've merged
2961         his clsql-usql port into clsql. The original clsql
2962         interface is available in the clsql-classic package.
2963
2964 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2965         * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2966         adding further support for providing backend for UncommonSQL
2967
2968 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2969         * Integrate patch from Aurelio Bignoli for SQLite backend
2970
2971 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2972         * Converted documentation to XML format
2973         * Made package installable with asdf-install
2974
2975 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2976         * Add for-each-row macro
2977
2978 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2979         * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2980         
2981 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2982         * Add support for SBCL, OpenMCL, and SCL
2983         * Add *load-truename* to search path for clsql's
2984         compiled libraries.
2985
2986 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2987         * Rework use of file types in .asd files
2988
2989 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2990         * Add .asd definition files for ASDF users
2991
2992 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2993         * Restructure directories for Common Lisp Controller v3 compatibility
2994
2995 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2996         * Also change case of logical host in loader files
2997         * Rework handling of logical pathnames
2998         
2999 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
3000         * Change case of logical host
3001         
3002 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
3003         * clsql-base.system: Added base package that can be used without
3004         high-level SQL commands. Used for adding support for UncommonSQL.
3005         * *.system: Reworked logical pathnames to be more consistent with
3006         Common Lisp Controller.
3007         * debian/*: Completed initial Debian support
3008         
3009 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3010         * sql/classes.cl:
3011         * sql/transactions.cl:
3012         Added transaction support. Functions/macros added:
3013         with-transaction, commit-transaction, rollback-transaction,
3014         add-transaction-commit-hook, add-transaction-rollback-hook
3015
3016 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3017         * sql/sql.cl:
3018         * sql/pool.cl:
3019         * sql/functional.cl:
3020         Added pool support in connect/disconnect and with-database.
3021         Removed with-db-from-pool as with-database can now works with the connections pool
3022
3023 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3024         * sql/sql.cl:
3025         * sql/pool.cl:
3026         * sql/classes.cl:
3027         * sql/package.cl:
3028         Completed connection pool.
3029         Added with-db-from-pool macro.
3030         
3031 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3032         * Multiple files:
3033         Added initial support for connection pool
3034         * sql/transactions.cl
3035         Took transaction code from UncommonSQL and integrated
3036         into CLSQL code. See file for disclaimer about why this
3037         was added.
3038
3039 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3040         * interfaces/postgresql/postgresql-sql.cl:
3041         Fix keyword typo in database-read-large-object
3042         * interfaces/mysql/mysql-loader.cl
3043         Fix loading on Win32
3044         * test-suite/tester-clsql.cl
3045         Fix type coercion of double-float
3046         * doc/*
3047         Added debian docbook catalog, made it the default
3048         
3049 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3050         * interface/postgresql/postgresql-api.cl:
3051         * interface/postgresql/postgresql-sql.cl:
3052         * sql/sql.cl:
3053         * sql/db-interface.cl:
3054         Added large objects support for postgresql.
3055
3056 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3057         * src/postgresql-socket/postgresql-socket-api.cl:
3058         Fixed find-foreign-function call, eliminated crypt warning
3059         * Makefiles:
3060         Multiple improvements
3061         * sql/usql.cl:
3062         Moved functionality from low-level interfaces to this file
3063         via generic functions
3064         * test-suite/tester.cl:
3065         Added test with acl-compat-tester, moved others to old-tests
3066         directory.
3067         
3068 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3069         * src/usql.cl:
3070         Reinstated commented out sections
3071         * interfaces/postgresql/postgresql-loader.cl:
3072         * interfaces/mysql/mysql-loader.cl:
3073         Updated find-forieign-library support.
3074         * interfaces/postgresql-socket/postgresql-socket-package.cl:
3075         Fixed require form for Lispworks (Thanks Marc Battyani!)
3076         * interfaces/postgresql-socket/postgresql-socket-api.cl:
3077         Fixed eval of def-function for crypt library.
3078                 
3079 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3080         * Added interface to support USQL high-level rouines
3081         
3082 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3083         * Separated db-interface and conditions from sql/sql.cl
3084         * Improved foreign library loading testing
3085         * interfaces/postgresql/postgresql-api.cl
3086         Added PQisBusy function
3087         * interfaces/clsql-uffi/clsql-uffi.cl
3088         Fixed sign error for 64-bit processing
3089         
3090 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3091         * interfaces/postgresql-socket/postgresql-socket-api.cl:
3092         Fixes to read-double-from-socket. Added 64-bit integer support.
3093         * test-suite/xptest-clsql.cl
3094         Added testint for 64-bit integers
3095         * Additons to installation docs
3096         
3097 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3098         * interfaces/postgresql-socket/postgresql-socket-api.cl:
3099         Implemented direct socket reading for field type :double
3100         * Added usage information for :types to documentation
3101         * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
3102         atol, atof calls
3103         * interfaces/clsql-uffi: Created new directory. Split common
3104         interface routines that use UFFI into this package. Required
3105         especially to support direct reading of 64-bit integers into
3106         bignums and bypassing temporary strings.
3107         * test-clsql.cl: Updated to test postgresql-socket's
3108         read-double-from-socket function.
3109         * test-suite/xptest-clsql.cl
3110         Started work on test suite
3111
3112 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3113         * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
3114         mysql-fetch-field-direct Got :auto types working
3115         * interfaces/postgresql/postgresql-api.cl
3116         * interfaces/postgresql-socket/postgresql-socket-api.cl
3117         Added pgsql-field-types enum. Got :auto types working.
3118         * multiple-files
3119         Renamed :field-types to :types.
3120         
3121 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3122         * Added field-types parameter to query, database-query,
3123         database-query-result-set, map-query. Haven't added code
3124         to utilize field types, yet.
3125         * Changed postgresql-socket result set from cons to a structure
3126         * Updated test-clsql.cl to use automated testing with a config
3127         file
3128         * Changed return types of field accessors from cstring to
3129         (* :unsigned-char).  This prepares for being able to use specified
3130         type conversions when taking field data into lisp.
3131         * Added field-type processing for most interfaces. Not done yet.
3132         
3133 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3134         * doc/ref.sgml: Updated MAP-QUERY example to use
3135         *read-default-float-format* (John Foderaro)
3136         * Extensive work to foreign library loaders and .system files to
3137         check for successful loading of foreign libraries.
3138         * Modified test-clsql.cl to allow more modularity and
3139         automated testing in future release.
3140         * mysql/mysql-sql.lisp: Added field types
3141         
3142 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
3143         * mysql/mysql-sql.lisp:
3144         - Added support for Allegro CL and Lispworks using UFFI layer
3145         - Changed database-connect to use mysql-real-connect. This way,
3146           can avoid using double (unwind-protect)
3147         - Changed database-connect to have MySQL library allocate space
3148           for MYSQL structure. This will make the code more robust in
3149           the event that MySQL library changes the size of the mysql-mysql
3150           structure.