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