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