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