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