r9758: Add tests for syntax and fddl.
[clsql.git] / ChangeLog
1 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
2         * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping 
3         of single quotes. 
4         * tests/test-fddl.lisp: add tests for column and table constraints 
5         in CREATE-TABLE. Add test for OWNER keyword parameter to 
6         LIST-TABLES (assuming same underlying machinery in other FDDL 
7         functions). 
8         * tests/test-init.lisp: restrict above test to postgresql and oracle. 
9         
10 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
11         * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio 
12         Bignoli.
13
14 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
15         * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
16         
17 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
18         * Version 2.11.14
19         * doc/*.xml: documentation additionals and fixes so
20         that docbook passes xmllint.
21         
22 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
23         * Version 2.11.13
24         * sql/fdml.lisp: Apply patch from Kim Minh Kaplan 
25         to change escaping of single quotes. Mild optimizations
26         for escaped string output.
27         * doc/ref-ooddl.lisp: documentation additions
28         * doc/ref-oodml.lisp: Add purpose to functions
29         * TODO: Add need to test single quote escaping
30         
31 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
32         * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
33         * sql/ooddl.lisp: Added SMALLINT type
34         * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
35         * db-mysql/mysql-objects.lisp: Added SMALLINT type
36         * sql/package.lisp: Export SMALLINT
37         * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
38         db-constraints
39         
40 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
41         * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the 
42         recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS 
43         View Class slot option. 
44         * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class 
45         slot option accepting a list of constraints [reported by Travis Cross]. 
46         * doc/ref-fddl.xml: add some examples of specifying column and 
47         table constraints to the documentation for CREATE-TABLE. 
48         * TODO: add note about adding tests for table/column constraints. Add 
49         optimisation note about using cached attribute types in insert/update
50         operations. 
51         
52 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
53         * doc/appendix.xml: add notes about idiosyncrasies/unsupported 
54         features and so on the documentation for each backend. 
55         * doc/TODO: remove items done. 
56         * doc/ref-transaction.xml: add note in introduction about 
57         autocommit mode as a difference from CommonSQL. 
58         * doc/ref-syntax.xml: add notes about SQL syntax state functions 
59         being macros in CLSQL. Add note about SQL operators which are 
60         CLSQL extensions. 
61
62 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
63         * Version 2.11.12 released
64         * doc/ref-recording.xml: document SQL I/O recording. 
65         * doc/ref-prepared.xml: new file for documenting prepared statements. 
66         * doc/clsql.xml: comment out include for large object and CLSQL-SYS 
67         documentation. 
68         * doc/ref-conditions.xml: complete documentation of condition system. 
69         * doc/global-index.xml: add symbols from condition system and remove
70         those from LOB and prepared statement APIs. 
71         * doc/ref-fdml.xml: complete documentation of FDML.
72         * doc/glossary.xml: add View Class. 
73         * doc/TODO: remove items done. 
74         * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR. 
75         * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export 
76         additional slot accessors for condition classes. 
77
78 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
79         * doc/ref-ooddl.lisp: Add documentation
80         * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
81         and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
82         * doc/oodml.lisp: Rename references to new name of
83         *DEFAULT-STRING-LENGTH*
84
85 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
86         * doc/ref-transaction.xml: document transaction handling. 
87         * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and 
88         START-TRANSACTION return NIL as per the CommonSQL spec. Modify 
89         ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is 
90         passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
91         Added docstrings. 
92
93 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
94         * doc/ref-fdml.xml: document the FDML. 
95         * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here. 
96         * sql/ooddl.lisp: moved *default-varchar-length* to here from 
97         oodml.lisp and renamed to *default-string-length*
98         
99 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
100         * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
101         to allow specifying transactionless table creation
102         * doc/ref-oodml.lisp: Add new keyword to signature of 
103         DEF-VIEW-FROM-CLASS     
104         
105 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
106         * Version 2.11.11
107         * sql/expressions.lisp: when removing duplicate table identifiers 
108         in the FROM clause of a query, check both table name and alias 
109         are equivalent. 
110         * sql/fdml.lisp: remove DESCRIBE-TABLE. 
111         * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and 
112         DATABASE-DESCRIBE-TABLE. 
113         * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE 
114         and LIST-TABLE-INDEXES. 
115         * sql/generic-postgresql.lisp: add reader conditional #+nil for 
116         DATABASE-DESCRIBE-TABLE and comment about its uses for 
117         re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query 
118         returning type info for all attributes. 
119         Fix DATABASE-SEQUENCE-LAST. 
120         * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine 
121         LIST-INDEXES with additional keyword parameter :ON. 
122         * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3 
123         with LIST-INDEXES (with :ON parameter). 
124         * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES. 
125         * doc/ref-connect.xml: minor tidying. 
126         * doc/ref-fddl.xml: document the FDDL. 
127         * doc/TODO: removed items done. Moved note about transaction handling 
128         from TODO to here. 
129         * TODO: move note about transaction handling to doc/TODO. Added 
130         optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES. 
131         
132 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
133         * Version 2.11.10
134         * sql/syntax.lisp: updated docstrings. 
135         * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL 
136         package.
137         * sql/database.lisp: add docstrings for CREATE-DATABASE, 
138         DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace 
139         CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR. 
140         * doc/ref-syntax.xml, doc/global-index.xml: minor tidying. 
141         * doc/ref-connect.xml: document connection/initialisation. 
142         * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here. 
143         * doc/TODO: remove items done. 
144         * Makefile: add db-oracle to to SUBDIRS. 
145
146 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
147         * sql/oodml.lisp: Add new serialization functions:
148         WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
149         * sql/expressions.lisp: Avoid duplicate FROM names when selecting
150         from a table that has more than one primary index.
151         * sql/conditions.lisp: Fix printing of closed-database error
152         
153 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
154         * Version 2.11.9
155         * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
156         * sql/transactions.lisp: Correctly set slots of SQL-WARNING
157
158 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
159         * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses 
160         of SQL-EXPRESSION from CLSQL-SYS. 
161         * sql/syntax.lisp: make error signalled in SQL-OPERATION an 
162         SQL-USER-ERROR. Make SQL-OPERATOR return just one value. 
163         * doc/Makefile: added Mandrake linux. 
164         * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files. 
165         * doc/appendix.xml: fixed little typo (adsf). 
166         * doc/glossary.xml: removed closed-database and note about 
167         sql-expression, added some entries. 
168         * doc/ref-syntax.xml: documented the symbolic SQL syntax. 
169
170 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
171         * Version 2.11.8
172         * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
173         * multiple: Add generalized-boolean type as requested by
174         Edi Weitz
175         * TODO: Added need for test of generalized-boolean
176         
177 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
178         * Version 2.11.7 released
179         * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
180         for loading with clc-register-user-package. Remove personal
181         directory from path lisp.
182         * db-mysql/mysql-loader.lisp: Similar changes
183         
184 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
185         * Version 2.11.6 released
186         * sql/oodml.lisp: Commit patch from Edi Weitz
187         to fix symbol writing/reading
188         * TODO: Add need for symbol slot test
189         
190 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
191         * sql/package.lisp: remove duplicate export of 
192         *CACHE-TABLE-QUERIES-DEFAULT*. 
193         * doc/ref-*.xml, doc/global-index.xml: new files documenting 
194         the CommonSQL compatible api. 
195         * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to 
196         reflect changes in return values of WITH-TRANSACTION. 
197
198 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
199         * tests/README: Fix filename [reported by Bill Clementson]
200         * sql/transactions.lisp: Apply return value patch from
201         Edi Weitz for WITH-TRANSACTION
202         * tests/README: Remove ptester package requirement (as noted
203         by Bill Clementson)
204         
205 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
206         * Version 2.11.5 released
207         * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
208         Select connection-spec based on connection type. Bugs reported by
209         Bill Clementson.
210         * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
211         * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
212         name on Windows, add \bin\ directory to search path
213         
214 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
215         * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in 
216         DATABASE-CONNECT. 
217         * sql/operations.lisp: substr now generates SUBSTR for use on 
218         Oracle; added a new operator SUBSTRING for use elsewhere. minus 
219         now generates MINUS for use on Oracle. Nvl signals an error if 
220         not called with exactly 2 arguments. Add concat function for use 
221         instead of the || operator on MySQL and Oracle. 
222         * sql/syntax.lisp: changed internal symbol for the || operator to 
223         CONCAT-OP. 
224         * sql/expressions.lisp: removed redundant and unused functions 
225         GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
226         (cf. MAKE-CONSTRAINTS-DESCRIPTION). 
227         * sql/generics.lisp: removed generic function for 
228         DATABASE-CONSTRAINT-DESCRIPTION (see above). 
229         * tests/test-syntax.lisp: modified/added tests according to changes
230         in sql/operations.lisp. 
231         * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test 
232         :fdml/select/21.  
233         * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP 
234         and SQL-USERENV to the shared exports list. Removed 
235         ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION, 
236         DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION, 
237         TRANSACTION-LEVEL, TRANSACTION,  RECORD-SQL-COMMAND and 
238         RECORD-SQL-RESULT from shared exports list. 
239         
240 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
241         * db-postgresql/postgresl-sql.lisp: Avoid computing
242         result-types lisp when nil result-types. Return only
243         one value when field-types nil.
244         * db-mysql/mysql-sql.lisp: Simple queries now
245         working with prepared statements.
246         
247 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
248         * Version 2.11.4: MySQL 4.1 now passes all tests
249         * sql/package.lisp: Add API for prepared statments.
250         * sql/fdml.lisp: Change implicit flatp processing
251         for string map-query for greater CommonSQL conformance.
252         Add high-high API for prepared statements.
253         * tests/test-basic.lisp: Add test for map-query and
254         single argument.
255         * sql/transactions.lisp: Change name/semantics of
256         autocommit to set-autocommit.
257         * sql/generic-postgresql.lisp: Add support for
258         prepared statements. 
259         * tests/test-internal.lisp: New file
260         * sql/odbc-api.lisp: Update to using ODBC V3 protocol
261         * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
262         Controller invocation.
263         * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
264         * sql/expressions.lisp: Avoid emitting double parenthesis when a
265         function contains a subselect. 
266         
267 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
268         * Version 2.11.3
269         * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
270         type (setf slot-value-using-class)
271         * TODO: add not that need a test case for the above fix
272         * db-sqlite: Remove clisp support since clisp can not run CLSQL
273         with its MOP usage
274         * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as 
275         introduced in Oracle8. Leave older code selectable by a reader macro
276         for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
277         uses OCILogon and does not the more complex session management.
278         
279 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
280         * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
281         * test/test-init.lisp: Add universal-time slot to person.
282         * test/test-fddl.lisp: Add tests of universal-time slot
283         * test/test-ooddl.lisp: Test universal-time slot in an object
284         * TODO: Remove need for universal-time test     
285         * debian/rules, debian/control: Add cl-sql-oracle binary package
286         * doc/appendix.xml: Add Oracle backend information
287         * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
288         universal-time. Convert BIGINT CLSQL type to CHAR SQL type
289         * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
290         * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
291         for map-query to reflect changed in arguments to be CommonSQL compatible.
292         Updated old clsql conditions to new CommonSQL compatible conditions.
293         
294 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
295         * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
296         type. Added *default-varchar-length* rather than previous hard-coded
297         varchar length. Remove 'simple-string and 'simple-base-string since they
298         are subtypes of 'string.
299         * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
300         local hard-coded value.
301         * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
302         type string. Convert specified-type (CHAR n) to string. Convert specified-type
303         CHAR to lisp type character.
304         * sql/generic-postgresql.lisp: (string n) => (CHAR n)
305         * sql/operations.lisp: Add userenv
306         * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
307         slot tests
308         * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
309         * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
310         * test/test-init.lisp: Add large table with bigint slot
311         
312 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
313         * Version 2.11.1 released: Much simpler Oracle client library loading.
314         Now uses ORACLE_HOME environmental variable as well as tests default
315         path for Oracle Instant Client. 
316         
317 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
318         * Version 2.11.0 released: Full Oracle support. All tests pass
319         * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
320         * tests/test-init.lisp: capitalize odbc backend name in banner
321         * CONTRIBUTORS: Add note about Marcus' excellent work
322         * sql/oodml.lisp: Removed old stub function     
323         * clsql.asd: Use module names in current package rather than keyword package
324         * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
325         in setting sequence position. Make autocommits more efficient.
326         * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax 
327         * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
328         strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
329         and read-sql-value for NUMBER and CHAR.
330         * sql/base-classes.lisp: Add autocommit slot
331         * sql/transaction.lisp: Added autocommit processing, mild cleaning.
332         * doc/intro.xml: Add Oracle
333         
334 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk) 
335         * db-postgresql-socket/postgresql-socket-sql.lisp: replace 
336         CLSQL-SIMPLE-WARNING with SQL-WARNING. 
337         * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with 
338         SQL-WARNING. 
339         * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR. 
340         * clsql.asd: reworked module structure in package definition and 
341         file names to better reflect component functionality. 
342         * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to 
343         exports list. Removed duplicate and obsolete exports. Exported 
344         remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT, 
345         SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and 
346         according to whether they are specified by CommonSQL or CLSQL 
347         extensions. 
348         * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with 
349         SQL-WARNING. 
350         * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND 
351         here from basic-sql.lisp. 
352         * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted). 
353         * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted). 
354         * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
355         (both deleted). 
356         * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted). 
357         * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted). 
358         
359 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
360         * Version 2.10.22 released
361         * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
362         has reversed class slots, change the default for ordered-class-slots so that slots
363         are now in the same order an in the def-view-class.
364         * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
365         * test/test-fddl.lisp: Add two tests for mixed case names
366         * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
367         for computed fields, this will require some adjustment to the test suite which
368         in many cases expects integers.
369         * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
370         
371 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
372         * Version 2.10.21 released
373         * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
374         db-odbc, and db-aodbc.
375         * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
376         DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
377         * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
378         * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to 
379         sql/generic-odbc.lisp
380         * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp: 
381         Move common code to  sql/generic-postgresql.lisp
382         * sql/classes.lisp: honor case of string tables when outputting queries 
383         * sql/objects.lisp: Add database type to default database-get-type-specifier method
384         * sql/sql.lisp:  Add database type to default database-abort-transaction method
385         * db-mysql/mysql-objects.lisp: New file
386         * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
387         * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
388         from environment
389         * test/test-fdml.lisp: String table names are now case sensitive, so convert to
390         default db case for FDML/SELECT/25
391
392 22 May 2004 Kevin Rosenberg
393         * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
394         * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
395         and string identifiers with non-default case
396         * sql/table.lisp: Don't convert string table name to a symbol.
397         * sql/classes.lisp: Honor case of string identifiers
398         * sql/sql.lisp: Ensure recyclebin is purged for Oracle in 
399         TRUNCATE-DATABASE
400         * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
401         of owner phrases. Obtain server and client versions.
402         * db-oracle/oracle-objects.lisp: Fix type specifiers
403         * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
404         * tests/test-init.lisp: Properly get username from Oracle connection-spec
405         
406 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
407         * sql/generics.lisp: reworked docstrings. Remove generics for 
408         ADD-TO-RELATION and REMOVE-FROM-RELATION. 
409         * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS 
410         to UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
411         * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS 
412         for CommonSQL compatibility. Remove ADD-TO-RELATION and 
413         REMOVE-FROM-RELATION. 
414         * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to 
415         UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
416         * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS. 
417         * sql/conditions.lisp: add documentation for conditions. Add 
418         SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility. 
419
420 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
421         * sql/basic-sql.lisp: reworked docstrings. 
422         * sql/transactions.lisp: reworked docstrings. 
423         * sql/sql.lisp: reworked docstrings. 
424         * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE 
425         sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility. 
426         * sql/database.lisp: reworked docstrings. 
427         * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P 
428         and FDML extensions and database extensions. 
429
430 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
431         * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
432         * db-oracle/make9.sh: add makefile for building with Oracle 9 client
433         libraries
434         * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
435         Oracle versions with the PURGE option required for drop table. This needs
436         to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
437
438 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
439         * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE. 
440         * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION. 
441         * sql/table.lisp: reworked docstrings. 
442         * sql/objects.lisp: moved *default-update-objects-max-len* here from 
443         table.lisp. 
444         * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE, 
445         DROP-VIEW and DROP-INDEX and the use of the :transactions and 
446         :constraints keyword args to CREATE-TABLE. 
447         * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now 
448         CommonSQL compatible with respect to column constraints. 
449
450 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
451         * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
452         Requires UFFI 1.5.0 or higher
453         
454 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
455         * Version 2.10.19
456         * sql/conditions.lisp: Fix cerror
457         
458 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
459         * Version 2.10.18 released: New condition hierarchy to be compatible
460         with CommonSQL -- not backward compatible with previous CLSQL.
461         * sql/db-interface.lisp: Add more default methods
462         * sql/objects.lisp: Add explicit table name to order-by parameters
463         in find-all when only one table to avoid selecting a duplicate row.
464         Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
465         as previous logic was adding two fields (foo asc) to SELECT query.
466         Make :result-types :auto be the default for object selections.
467         Properly handle caching key when using multiple order-by with asc/desc
468         directions.
469         * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
470         
471 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
472         * sql/recording.lisp: reworked docstrings. 
473         * sql/syntax.lisp: reworked docstrings. 
474         * doc/TODO: added notes about extensions to SQL-RECORDING-P and the 
475         SQL syntax state functions being macros. 
476
477 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
478         * sql/package.lisp: Export initialize-database-type and
479         *initialize-database-types* from CLSQL package.
480         * sql/conditions.lisp: Add new CommonSQL compatible conditions,
481         remove old CLSQL conditions.
482         * sql/loop-extensions.lisp: Make errors of type sql-user-error
483         * */*.lisp: Convert to from old to new conditions
484         
485 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
486         * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
487         To handle this difference, will need to add a new database-drop-table
488         generic function.
489         * db-oracle/oracle-sql.lisp: Move server-version and
490         major-version-number to database object to allow multiple connections
491         to Oracle servers of different versions.
492         
493 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
494         * TODO: moved notes about backends to doc/TODO. 
495         * doc/TODO: added notes about backends and select extensions. 
496         * sql/base-classes.lisp: remove obsolete schema slot in database 
497         class. 
498         
499 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
500         * db-oracle/oracle-api: Add OCIServerVersion
501         * db-oracle/oracle-sql: Query and store server version on connect
502         * sql/db-interface.lisp: Add new db-type-has-bigint? generic
503         function to handle OCI's lack of bigint support
504         * test/test-basic.lisp: Separate bigint testing
505         * test/test-utils.lisp: Add oracle to specs and list of backends
506         * doc/TODO: New file
507         * test/test-fdml.lisp: Added FDML/SELECT/34 to test
508         run-time instantiation of variables in reader macros.
509         * TODO: Remove item already complete. Add note about
510         condition variances
511         
512 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
513         * sql/syntax.lisp: added condition to the reader macro to treat [*] 
514         as a column identifier (rather than an operation) for CommonSQL 
515         compatibility. 
516         * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION 
517         keword args to SELECT, [*] as column identifier, new MAP-QUERY 
518         behaviour and the ANY and ALL operators in subqueries. 
519         * tests/test-init.lisp: add set-operation and subquery tests to 
520         appropriate skip lists. 
521         * sql/objects.lisp: remove redundant and non CommonSQL compatible 
522         ORDER-BY-DESCENDING keyword argument for SELECT. 
523         * sql/classes.lisp: remove redundant and non CommonSQL compatible 
524         ORDER-BY-DESCENDING keyword argument for SELECT. 
525         * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT 
526         with object queries. 
527
528 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
529         * sql/db-interface.lisp: Add new db-type-has-union? 
530         since Mysql 3.23 does not support unions.
531         * sql/test-init.lisp: Don't try union tests on database
532         backends which do not support it.
533         * db-oracle/*.lisp: initial port to UFFI
534         * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
535         implement REFRESH for SELECT.
536         * tests/test-oodml.lisp: Add tests for deferred retrieval,
537         caching, refresh, and update-object-joins
538         * tests/test-init.lisp: Add deferred-employee-address class
539         
540 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
541         * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add 
542         COALESCE operator and make NVL a synonym for this. Make ANY, SOME, 
543         ALL and EXISTS generate function expressions so they output the 
544         correct SQL. 
545         * sql/classes.lisp: SELECT now generates appropriate SQL when 
546         passed the SET-OPERATION and ALL keyword arguments. 
547         * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now 
548         accepts ordering constraints as pairs of the form (column direction) 
549         where direction may be :ASC or :DESC. 
550         * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL. 
551         Correct tests for ANY, SOME, ALL and EXISTS. 
552         * tests/test-fdml.lisp: added test for COALESCE. 
553         * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION 
554         using funcall unless QUERY-EXPRESSION returns one column and its 
555         FLATP slot is not nil in which case apply is used. 
556         * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the 
557         changes. 
558         * TODO: remove items done. 
559         * db-postgresql/postgresql-sql.lisp: no need to reverse results in 
560         DATABASE-LIST-ATTRIBUTES. 
561         * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
562         results in DATABASE-LIST-ATTRIBUTES.    
563         
564 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
565         * sql/classes.lisp: SELECT now accepts table identifiers as strings 
566         for CommonSQL compliance. Add support for qualified sql identifiers 
567         with aliased table names. 
568         * tests/test-fdml.lisp: added tests for table identifiers as strings 
569         in SELECT and for aliased definitions. 
570         * tests/test-syntax.lisp: added tests for alias definitions. 
571         
572 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
573         * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and 
574         field-names set to nil. 
575         * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly 
576         with null attribute values. 
577         * sql/operations.lisp: modify SQL concatenation operator to accept 
578         unescaped || symbol.  
579         * sql/syntax.lisp: modify sql reader macro function to accept 
580         unescaped sql concatenation operator. 
581         * tests/test-fdml.lisp: unescape sql concatenation operator. 
582         * tests/test-syntax.lisp: unescape sql concatenation operator. 
583         * TODO: remove items done. Add notes about SQLITE/MYSQL backends. 
584         Note to add test for universal-time. Note about difference from 
585         CommonSQL in transaction handling. 
586
587 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
588         * tests/test-init.lisp: Add deferred-employee-address
589         class
590         * tests/test-oodml.lisp: Add deferred retrieval testgs
591         
592 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
593         * Version 2.10.17
594         * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
595         * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
596         * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
597         * *: Fix minor style warnings
598         * clsql-classic: Remove system and subdirectory
599         * clsql-base: Remove system and subdirectory and
600         fold into clsql system
601         * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
602         as supported platform.
603         
604 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
605         * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
606         * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
607         Allegro 7.0beta AMD64
608         * db-odbc/*.lisp: Add a layer of indirection to foreign-type
609         of ODBC longs since this type can vary on 64-bit platforms depending
610         upon the compilation options of unixODBC.
611         * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
612         structures found by testing with AllegroCL 7.0b AMD64.
613         * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
614         * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
615         Initial caching support for SELECT
616         * tests/test-oodml.lisp: Avoid using cache when testing select.
617         * sql/kmr-mop.lisp: Explicitly check slot order and
618         store as a cl:*feature*
619         * sql/recording.lisp: Remove additional types to
620         increase CommonSQL conformance.
621         * tests/test-init.lisp: Change a :column attribute
622         to test symbols as value
623         * sql/relations.lisp: Remove functions since they don't support
624         many to many relationships.
625         * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
626         of add-to-relations function and replace with explicit field settings.
627         * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
628         
629 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
630         * Version 2.10.15
631         * LATEST-TEST-RESULTS: results with current version
632         * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
633         since cmu19 has opposite order of class slots.
634         * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
635         * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
636         a previous test
637         * tests/test-init.lisp: Check test-database-underlying-type for
638         ODBC/MySQL tests
639         
640 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
641         * sql/operations.lisp: complete remaining operations for the sql 
642         syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT, 
643         UNION, INTERSECT, BETWEEN. 
644         * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION, 
645         SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION. 
646         * tests/test-syntax.lisp: add tests for new operations. 
647         * tests/test-fdml.lisp: add tests for queries based on new operations. 
648         * tests/test-init.lisp: add select/20 to tests skipped for sqlite and 
649         select/20, query/5, query/7 and query/8 to tests skipped by mysql. 
650         * TODO: removed entries done. 
651
652 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
653         * tests/benchmarks.lisp: Add immediate vs. deferred
654         join test.
655         
656 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
657         * Version 2.10.13: Now works on openmcl 0.14.2 
658         * sql/objects.lisp: Add :retrieval :immediate for
659         object selections
660         * tests/test-init.lisp: Add non-index fields for testing 
661         join class employee-addresss
662         * test/test-oodml.lisp: Add tests for retrieval immediate
663         * sql/metaclasses.lisp: Handle differences in direct-slot-definition 
664         values which are now listifed by openmcl 14.2.
665         * sql/objects.lisp: more framework for supporing immediate retrieval 
666
667 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
668         * docs/intro.xml: Upload location of a README file
669         * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
670         changing the type-specifier. Use a lisp type of (OR NULL FOO)
671         for a specified-type of FOO unless :db-constraints :not-null.
672         No need to specialize finalize-inheritance for openmcl.
673         * tests/test-*.lisp: Rename fields so that joins occur on
674         fields with different names. This ensures that join code is
675         selecting the proper name.
676         * test/test-init.lisp: Add :base-table for employee-address
677         view class for testing.
678         * sql/objects.lisp: Use view-table rather than name of table
679         in a number of places to fix errors noted with using :base-table.
680
681 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
682         * sql/objects.lisp: replace *update-records-on-make-instance* with 
683         *db-auto-sync* which also controls both automatic creation of 
684         new records on creation of new instance and updating of record 
685         fields on setting of instance slots (as suggested by Edi Weitz). 
686         * tests/test-init.lisp: replace *update-records-on-make-instance* 
687         with *db-auto-sync*. 
688         * sql/package.lisp: replace *update-records-on-make-instance* 
689         with *db-auto-sync*. 
690         * TODO: replace *update-records-on-make-instance* with *db-auto-sync*. 
691         * sql/objects.lisp: remove redundant rebindings of *db-initializing* 
692         and *default-database* in FIND-ALL. 
693         * sql/package.lisp: import time functions from CLSQL-BASE. 
694         * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
695         * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
696         * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
697         * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with 
698         CLSQL. 
699
700 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
701         * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
702         now return a sql-object-query type rather than directly performing a query.
703         This improves CommonSQL conformance.
704         * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
705         from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
706         depend on sql-object-query-type.
707         * sql/loop-extensions.lisp: Move from base package
708         * classic/package.lisp: remove references to map-query and do-query
709
710 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
711         * TODO: New section on optimizations, especially optimizing JOINs.
712         * sql/objects.lisp: Have :target-slot return of list of lists rather
713         than a list of cons pairs to be conformant with CommonSQL.
714         Make :target-slot much more efficient by using a SQL inner join
715         statement and just requiring one SQL query. Add :retrieval :deferrred
716         to target-slot joins. Add placeholder for update-objects-join.
717         * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
718         and process them for query output-sql. 
719
720 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
721         * Version 2.10.11
722         * base/basic-sql.lisp: Avoid multiple evaluation
723         of query-expression in DO-QUERY
724         * sql/objects.lisp: Make SELECT a normal function.
725         SELECT now accepts type-modified database identifiers, such as
726         [foo :string] which means that the values in column foo are returned 
727         as Lisp strings. Add new *update-records-on-make-instance* special
728         variable controlling automatic creation of new instances. Add missing
729         RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
730         * sql/packages.lisp: Export *update-records-on-make-instance* 
731         * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
732         selections.
733         * test/test-fdml.lisp: Add tests for type-modified
734         database identifiers.
735         * test/test-init.lisp: Stop using add-relation since implementing
736         many-to-many joins. Use *update-records-on-make-instance* 
737         to automatically store records on instance creation. Add many-to-many
738         employee-address view-class.
739         
740 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
741         * Version 2.10.10
742         * base/loop.lisp: Add object iteration. Use :result-type
743         :auto for result-set. Remove 
744         duplicate (and non-correct) code for non-list variables by
745         simply making an atom variable into a list. 
746         * sql/package.lisp: Remove unnecessary clsql-sys package
747         and replace it with clsql.
748         * sql/metaclasses.lisp: Properly store specified-type from
749         direct-slot-definition and then store translated type in
750         effective-slot-definition
751         * sql/classes.lisp: Don't output type in sql-output
752         for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
753         [foo :integer] as fields in SELECT.
754         * sql/query.lisp: Set default for :result-types to :auto in
755         FDML QUERY.
756         * sql/objects.lisp: Use specified-type when invocating 
757         database-get-type-specifier. def-view-class macro now returns
758         the class instance.
759         * base/basic-sql.lisp: Make :AUTO the default value for
760         :RESULT-TYPES for MAP-QUERY and DO-QUERY.
761         * sql/objects.lisp: Add bigint type
762         * test/tests-basic.lisp: Add tests for :result-types for
763         MAP-QUERY and DO-QUERY
764         * test/test-fdml.lisp: Add test for result-types in LOOP
765         and also using single symbol rather than a list for variables.
766         Add test that default :result-types is auto for FDML QUERY.
767         * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
768         of SQL-IDENT-ATTRIBUTE.
769         * test/test-oodml.lisp: Enable OO loop iteration test,
770         modify it so it doesn't depend on boolean where.
771         
772 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
773         * Version 2.10.9
774         * sql/objects.lisp: added derived type specifier for universal time. 
775         * sql/package.lisp: added #:universal-time to clsql-sys exports. 
776         * tests/test-oodml.lisp: added test for translation of boolean slots 
777         in SELECT with object queries. 
778         
779 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
780         * db-odbc/odbc-api.lisp: Fix changing nil to "NIL" 
781         for odbc/postgresql backend.
782         * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
783         it can handle NIL values from the ODBC driver
784         * tests/benchmarks.lisp: New file with initial
785         benchmark suite
786         * sql/relations.lisp: fix to add subclassing support,
787         minor optimizations [Edi Weitz]
788         
789 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
790         * Version 2.10.8        
791         * base/conditions.lisp: Add *backend-warning-behavior*
792         special variable.
793         * db-postgresql-socket/postgresql-socket-sql.lisp:
794         Honor value of *backend-warning-behavior*
795         * tests/test-fdml.lisp: Remove test of raw boolean value
796         since different backends handle this differently. Add
797         test for :column attribute.
798         * tests/test-oodml.lisp: Add tests for boolean slot value
799         and for :void-value attribute
800         * tests/test-init.lisp: Use *backend-warning-behavior*
801         to suppress warnings from postgresql about implicitly
802         creating primary key in tables. Add new address table.
803         
804 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
805         * Version 2.10.7
806         * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
807         result-types is :auto
808         * sql/objects.lisp: Properly handled writing/reading Boolean
809         values from SQL database when retrieving objects.
810         * test/test-fdml.lisp: Add another test for boolean results
811         * test/utils.lisp: Fix incorrect declaration
812         
813 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
814         * Version 2.10.6
815         * sql/generics.lisp: add generic function for SELECT. 
816         * sql/objects.lisp: make SELECT a method specialisation. 
817         * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections 
818         referred to are View Classes. 
819         * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the 
820         query-expression arg evaluates to a list, then we have an object 
821         query. 
822         * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with 
823         object queries. 
824         * TODO: remove items done and add a todo for SELECT. 
825         * sql/objects.lisp: SELECT takes a :field-names arg to pass on to 
826         QUERY. 
827         * sql/sql.lisp: add :field-names arg to QUERY. 
828         * tests/test-fdml.lisp: minor rework to use :field-names arg to 
829         SELECT. 
830
831 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
832         * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2 
833         or more View Classes. 
834         * sql/objects.lisp: make the :flatp argument to SELECT work with 
835         object queries. 
836         * sql/objects.lisp: make SELECT accept a :result-types argument 
837         (defaults to :auto) which is passed on to QUERY.  
838         * sql/objects.lisp: SELECT returns field-names as a second value. 
839         * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate. 
840         * tests/test-fdml.lisp: add flatp/result-types arguments to calls 
841         to SELECT and take only first value as appropriate.
842         * tests/test-fdml.lisp: add two new tests for query result coercion 
843         and the field-names returned as a second value from SELECT. 
844         * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate. 
845         
846 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
847         * Version 2.10.6-pre1
848         * sql/metaclasses.lisp: Add void-value slot
849         * doc/csql.xml: Update def-view-class documentation
850         * test/test-init.lisp: Change old :db-type to :db-kind.
851         Remove old :nulls-ok attributes.
852         * sql/objects.lisp: Add new universal-time and bigint
853         types. Optimize reading of integers using parse-integer
854         rather than read-from-string.
855         * */*.lisp: Merge clsql-base-sys and clsql-base packages
856         into clsql-base package
857         * classic/sql.lisp: Move large object support into base, leaving
858         classic without any functionality that is provided in the clsql
859         system.
860         * classic/package.lisp: Rename clsql-classic-sys package to
861         its former nickname of clsql-classic
862         
863 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
864         * Version 2.10.5: SQLite backend now passes all result-types tests
865         * clsql-sqlite.asd: Depend on clsql-uffi system
866         * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
867         for efficiency and code reuse. 
868         * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
869         for better cross-implementation compatibility.
870
871 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
872         * Version 2.10.4
873         * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
874         [Marcus Pearce]
875         * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
876         bug on SBCL in result-field-names function as reported by Marcus Pearce
877         * db-sqlite/sqlite-sql.lisp: Fix  in database-store-next-row
878         manifest in SBCL testing
879         
880 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
881         * Version 2.10.3
882         * sql/database.lisp: Conform more to CommonSQL output
883         for STATUS command [Marcus Pearce]
884         * sql/sqlite-sql.lisp: Rework to use result-types
885         * sql/sqlite-api-clisp.lisp: Add compatibility layer
886         with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
887         be cleaned up of most clisp reader conditionals
888         * sql/test-init.lisp: Now run field type tests on sqlite
889         backend
890         
891 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
892         * Version 2.10.2
893         * base/basic-sql.lisp: Set default value of :result-types 
894         to :auto for more CommonSQL conformance. 
895         * test/test-fdml.lisp: Add tests for numeric value of fields
896         
897
898 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
899         * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
900         * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
901         Return field names as second value for QUERY. This can be overridden
902         for efficiency with the new keyword :FIELD-NAMES set to NIL
903         in the QUERY invocation.
904         * test/test-fdml.lisp: Add tests for new field-name feature
905         * sql/metaclass.lisp: Remove old Lispworks cruft
906         and replace it with invocation of new code in kmr-mop.lisp
907         which actually works with Lispworks 4.2
908         * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
909         QUERY function
910         * base/db-interface.lisp: Document the multiple values
911         returned by DATABASE-ATTRIBUTE-TYPE so matches the
912         undocumented CommonSQL behavior. 
913         * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
914         *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
915         LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
916         Implement CACHE-TABLE-QUERIES.
917         * db-odbc/odbc-sql.lisp: Fix attribute-type function
918         * test/test-fddl.lisp: Add tests for attribute type     
919         * db-mysql/mysql-sql.lisp: Mild optimization in accessing
920         field structures.
921         * base/classes.lisp: Add attribute-cache slot to database clas
922         * base/initialize.lisp: initialize-database-type now automatically
923         loads database-type backend as needed.
924         * base/test-init.lisp: Utilize new initialize-database-type functionality.
925         * TODO: remove items done
926         
927 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
928         * Version 2.9.6
929         * sql/objects.lisp: remove create/drop-sequence-from-class. 
930         * sql/objects.lisp: add INSTANCE-REFRESHED generic function. 
931         * sql/objects.lisp: improved CommonSQL compatibility for
932         UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
933         UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS. 
934         * sql/generics.lisp: move generics from objects.lisp to here. 
935         
936 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
937         * Version 2.9.6-pre1
938         * db-mysql/mysql-client-info.lisp: Add client version 4.1
939         detection
940         * sql/sql.lisp: Make *default-database* the default for
941         TRUNCATE-DATABASE
942         
943 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
944         * Version 2.9.5
945         * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
946         detection
947         * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying 
948         :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes 
949         on a metaclass specialized from standard-db-class.
950
951         
952 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
953         * Version 2.9.4: Multiple changes to support Allegro's "modern"
954         lisp which uses a lowercase reader and has case-sensitive symbols
955         * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
956         exposed by case-sensitive mlisp. 
957
958 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
959         * Version 2.9.3: All tests now pass on all platforms!
960         * LATEST-TEST-RESULTS: New file with summary of test results
961         * sql/generics.lisp: New file for generic function definitions.
962         * test/test-init.lisp: Display names of skipped tests.
963         Use unwind-protect to ensure disconnect
964         * sql/objects.lisp: Change database-type to database-underlying-type
965         so that actual database engine is properly identified
966         * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
967         return an ISO timestring for compatibility with other drivers.
968         Workaround bug in MyODBC for LIST-TABLE-INDEXES
969         * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
970         returns floating-point values for floor and truncate operations 
971         * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
972         * tests/test-basic.lisp: Port to regression tester
973         * test/test-init.lisp: Output to *report-stream*
974         * docs/appendix.xml: Document ODBC and SQLite backends.
975         * sql/classes.lisp: Make output-sql require a database parameter.
976         This allows SQL generation to have the proper case to support
977         the differences in case handling between CommonSQL API,
978         Postgresql, MySQL, Oracle.
979         
980 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
981         * Version 2.9.2: Improvments in database capability introspection
982         and querying. Support transactions in MySQL where available.
983         All tests now pass on MySQL and SQLite in addition to postgresql
984         and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
985         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
986         DATABASE-LIST-SEQUENCES.
987         * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
988         * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
989         HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
990         * tests/*.lisp: Check database capabilities and remove tests which
991         the database backend does not support
992         * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
993         controls whether InnoDB tables will be created when supported on
994         the underlying MySQL server.
995         
996 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
997         * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
998         supported by all database backends (except AODBC since
999         AODBC doesn't support index querying)
1000         * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
1001         * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
1002         to support index queries
1003         * db-aodbc/aodbc-sql.lisp: Filter driver manager
1004         "information_schema" tables from LIST-TABLES
1005         * tests/test-basic.lisp: Remove table after testing
1006         * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
1007         * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
1008         which gets the underlying type of database -- required
1009         when dealing with ODBC databases and want to query
1010         database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
1011         as first database-backend specific feature. Is T on
1012         :mysql, NIL on other backends. Change DROP-TABLE to
1013         query this.
1014         
1015 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1016         * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
1017
1018 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1019         * Version 2.8.1
1020         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function 
1021         * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function 
1022
1023 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1024         * Version 2.8.0: New API function: LIST-DATABASES
1025         * base/utils.lisp: Fix command-output on CMUCL/SBCL
1026         * db-*/*-sql.lisp: Add new database-list function
1027         * base/database.lisp: Add new LIST-DATABASES command
1028         
1029 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1030         * Version 2.7.9
1031         * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
1032         * db-sqlite/sqlite-api-uffi.lisp: Print error string
1033         correctly.
1034         
1035 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1036         * Version 2.7.7
1037         * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
1038         from Eduardo Munoz.
1039         
1040 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1041         * Version 2.7.6
1042         * base/objects.lisp, base/classes.lisp: Patch
1043         for db-kind from Eduardo Munoz
1044         
1045 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1046         * Version 2.7.5
1047         * base/basic-sql.lisp: Fix FLATP in QUERY
1048
1049 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1050         * Version 2.7.3: Implement RECONNECT
1051
1052 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1053         * Version 2.7.2: Fix ODBC on Lispworks Windows
1054
1055 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1056         * Version 2.7.1: Fix for new ODBC backend.
1057         clsql-odbc now works on SBCL, CMUCL, OpenMCL
1058         in addition to AllegroCL and Lispworks.
1059
1060 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1061         * Version 2.7.0: New backend: ODBC. Tests as
1062         well as AODBC backend on Allegro,Lispworks.
1063         SBCL and CMUCL don't work quite yet.  Requires UFFI v1.4.11+
1064         * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
1065         to explicitly set ODBC2 support. Add BIGINT support.
1066         Add result-types support. Added SQLTables.
1067         Fix array type in fetch-all-rows. Make width
1068         changable by database or query.
1069         * base/utils.lisp: Add process functions
1070         * base/package.lisp: Export utils to CLSQL-BASE-SYS
1071         * db-aodbc: Implement sequence functions,
1072         database-list-tables, database-list-attributes
1073         * tests/utils.lisp: Add support for ODBC backend,
1074         rework READ-SPECS to use +all-db-types+
1075         * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
1076         for SEQUENCE-NEXT
1077         
1078 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1079         * Version 2.6.13. Requires UFFI version 1.4.9
1080         * db-odbc/*.lisp: Further porting.
1081         Pre-alpha code! But, basic query is now working.
1082
1083 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1084         * Version 2.6.12
1085         * base/transactions.lisp: Add quote for macro
1086         expansion of WITH-TRANSACTIONS [Time Howe]
1087         * db-sqlite/sqlite-sql.lisp: Support memory database
1088         in database-probe [Ng Pheng Siong]
1089         * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
1090         The DBI layer is not finished.
1091         
1092 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1093         * Version 2.6.11
1094         * sql/objects.lisp: add :root-class functionality for
1095         list-classes and add duration type support [Marcus Pearce]
1096         * db-odbc: Add mid-level [DBI] layer
1097
1098 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1099         * Version 2.6.10
1100         * db-aodbc: Add methods for generic functions, some are
1101         not yet implemented.
1102         * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1103         support
1104
1105 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1106         * Version 2.6.9
1107         * base/package.lisp: Add missing symbols [Marcus Pearce]
1108
1109 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1110         * Version 2.6.8
1111         * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1112         * utils/time.lisp: Multiple fixes [Marcus Pearce]
1113         * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1114         
1115 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1116         * Version 2.6.7
1117         * sql/*.lisp: Remove schema versioning cruft
1118         [Marcus Pearce]
1119         * Makefile: Add classic subdirectory
1120         
1121 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1122         * Version 2.6.6
1123         * sql/sql.lisp: Fix TRUNCATE command, bug reported
1124         by Marcus Pearce
1125         * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1126         specific and easy for an application to directly support.
1127         Idea from Marcus Pearce.
1128         * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level 
1129         API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1130         Keep low-level interface for future optimization
1131         supporting LIST-ATTRIBUTE-TYPES command.
1132         * Makefile: Add to db-sqlite and test directories.
1133         Include them in top-level Makefile
1134         
1135 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1136         * Version 2.6.5
1137         * sql/relations.lisp: Add missing file
1138         * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1139         * test/test-time.lips: New file [Marcus Pearce]
1140         
1141 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1142         * Version 2.6.4
1143         * test/test-init.lisp: Properly handle object
1144         creation. Close database after use.
1145         * sql/sql.lisp: Make DESCRIBE-TABLE a generic
1146         function so can have methods specialized on
1147         table being a string or an sql-table object.
1148         * base/pool.lisp: Really fix CMUCL locking
1149         
1150 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1151         * Version 2.6.3
1152         * test/test-init.lisp: Signal correctly
1153         if any errors occurred in any test suite
1154         * base/loop-extensions.lisp: Fix error
1155         introduced for Lispworks
1156         * base/pool.lisp: Fix locking for CMUCL
1157         * base/objects.lisp: Remove schema-version cruft
1158         
1159 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1160         * Version 2.6.2: New CLSQL API functions:
1161         DESCRIBE-TABLE AND TRUNCATE-DATABASE
1162         Currently, this are only supported on :postgresql
1163         and :postgresql-socket
1164         * base/database.lisp: automatically load ASDF system
1165         in CONNECT if not already loaded
1166         * base/tests.lisp: disconnect database after testing 
1167         * base/*.lisp: Remove CLOSED-DATABASE type in favor
1168         of storing open/closed status in slot of database
1169         * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
1170         * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
1171         DATABASE-DESCRIBE-TABLE
1172         * db-sqlite/sqlite-sql.lisp: Add missing slots in database
1173         * base/conditions: Remove duplicate condition
1174         * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
1175         * base/recording.lisp: Add new :QUERY type for recording
1176         
1177 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1178         * Version 2.6.1: documentation fixes, merged
1179         classic-tests into tests
1180
1181 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1182         * Version 2.6.0 released: New API functions
1183         CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
1184         * doc/ref_clsql.xml: Document new functions
1185         * base/database.lisp: New API functions
1186         * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
1187         * base/utils.lisp: Fix use of position-char.
1188         Add COMMAND-OUTPUT used by backends for running
1189         external programs. Fix parsing of SQL*NET-compatible
1190         connection-specs.
1191         * base/loop-extension.lisp: Simplify package use
1192         for Lispworks and Allegro
1193         * db-*/*-sql.lisp: Added DATABASE-CREATE,
1194         DATABASE-DESTORY, PROBE-DATABASE methods
1195         * tests/test-init.lisp, clasic-tests/tests.lisp:
1196         Use destroy-database and create-database to ensure 
1197         testing with empty database
1198         * tests/test-connection.lisp: Add tests for
1199         parsing of string connection-specs
1200         * examples/run-tests.sh: New file for running
1201         test suite on all installed CL implementations
1202         * examples/clsql-tutorial.lisp: moved from
1203         doc directory
1204         * examples/dot.clsql-tests.config: New file
1205         giving an example test configuration
1206         * test/README: Add notes about rtest/ptester
1207         downloads and link to sample test configuration file.
1208         
1209 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1210         * Version 2.5.1 released:
1211         * tests/*.lisp: Rework so tests are run
1212         on multiple backends automatically based
1213         on the contents of ~/.clsql-tests.config.
1214         Reuse helper functions from classic-tests.
1215         * base/database.lisp: Support connection-spec
1216         as string for CONNECT
1217         * classic-tests/tests.lisp: Automatically
1218         load database backends as needed. 
1219         
1220 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1221         * Version 2.5.0 released:
1222         All tests for CLSQL and CLSQL-CLASSIC pass
1223         on all platforms.
1224         * base/loop-extension.lisp: Add Lispworks
1225         loop-extension. Improve type specifying on
1226         other platforms.
1227         
1228 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1229         * Version 2.4.2 released:
1230         loop extension now supported on Allegro, all
1231         CLSQL-TESTS pass on Allegro.
1232         * sql/metaclasses.lisp: Some optimization
1233         of compute-slots, be selective when
1234         ordered-class-slots needs to be called
1235         instead of class-slots
1236         * TODO: add URL with documentation on
1237         extending Lispworks LOOP form
1238         
1239 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1240         * Version 2.4.1 released: CLSQL-TESt suite passes
1241         all tests for postgresql and CMUCL, SBCL, OpenMCL.
1242         Allegro and Lispworks pass all tests except for
1243         FDML/LOOP/1 since the loop extension have not yet
1244         been ported to those implementions.
1245         * sql/metaclasses.lisp: Added new slot to standard-db-class
1246         to hold user-specified type. OpenMCL adjustments to compensate
1247         for its type-predicate function. Since AllegroCL, Lispworks,
1248         and OpenMCL have different slot orders, added compute-slots
1249         and ordered-class-slots functions so their slot order matches
1250         SBCL/CMUCL.
1251
1252 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1253         * Version 2.4.0 released: All tests for clsql-classic now finish
1254         correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
1255         mysql, postgresql, postgresql-sockets, and sqlite backends.
1256         * db-mysql/mysql-sql.lisp: Fix array dereferencing
1257         * classic-tests/tests.lisp: Fix package name of
1258         number-to-sql-string. 
1259         * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
1260         * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
1261         now passes tests on all support UFFI platforms.
1262         * db-postgresql-socket/postgresql-socket-api.list: Ported to 
1263         SBCL and OpenMCL
1264         * multiple: Finish renaming of :types keyword to :result-types for
1265         greater CommonSQL compatibility, including documentation
1266         * sql/basic-cmds.lisp: Remove obsolete file
1267         
1268 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1269         * Version 2.3.3 released
1270         * Fixes for sequences on mysql and sqlite [Marcus Pearce]
1271         * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
1272         * Fix for schema table [Marcus Pearce]
1273         * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
1274         * Fixes to test suite [Marcus Pearce]
1275
1276 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1277         * db-*/*-sql.lisp: Ensure that expr in
1278         database-query-result-set is a string
1279         * Documentation integration
1280         
1281 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1282         * With for Marcus Pearce's excellent work, I've merged
1283         his clsql-usql port into clsql. The original clsql
1284         interface is available in the clsql-classic package.
1285
1286 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1287         * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
1288         adding further support for providing backend for UncommonSQL
1289
1290 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
1291         * Integrate patch from Aurelio Bignoli for SQLite backend
1292
1293 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
1294         * Converted documentation to XML format
1295         * Made package installable with asdf-install
1296
1297 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
1298         * Add for-each-row macro
1299
1300 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
1301         * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
1302         
1303 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
1304         * Add support for SBCL, OpenMCL, and SCL
1305         * Add *load-truename* to search path for clsql's
1306         compiled libraries.
1307
1308 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
1309         * Rework use of file types in .asd files
1310
1311 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
1312         * Add .asd definition files for ASDF users
1313
1314 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1315         * Restructure directories for Common Lisp Controller v3 compatibility
1316
1317 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1318         * Also change case of logical host in loader files
1319         * Rework handling of logical pathnames
1320         
1321 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1322         * Change case of logical host
1323         
1324 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
1325         * clsql-base.system: Added base package that can be used without
1326         high-level SQL commands. Used for adding support for UncommonSQL.
1327         * *.system: Reworked logical pathnames to be more consistent with
1328         Common Lisp Controller.
1329         * debian/*: Completed initial Debian support
1330         
1331 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1332         * sql/classes.cl:
1333         * sql/transactions.cl:
1334         Added transaction support. Functions/macros added:
1335         with-transaction, commit-transaction, rollback-transaction,
1336         add-transaction-commit-hook, add-transaction-rollback-hook
1337
1338 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1339         * sql/sql.cl:
1340         * sql/pool.cl:
1341         * sql/functional.cl:
1342         Added pool support in connect/disconnect and with-database.
1343         Removed with-db-from-pool as with-database can now works with the connections pool
1344
1345 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1346         * sql/sql.cl:
1347         * sql/pool.cl:
1348         * sql/classes.cl:
1349         * sql/package.cl:
1350         Completed connection pool.
1351         Added with-db-from-pool macro.
1352         
1353 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1354         * Multiple files:
1355         Added initial support for connection pool
1356         * sql/transactions.cl
1357         Took transaction code from UncommonSQL and integrated
1358         into CLSQL code. See file for disclaimer about why this
1359         was added.
1360
1361 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1362         * interfaces/postgresql/postgresql-sql.cl:
1363         Fix keyword typo in database-read-large-object
1364         * interfaces/mysql/mysql-loader.cl
1365         Fix loading on Win32
1366         * test-suite/tester-clsql.cl
1367         Fix type coercion of double-float
1368         * doc/*
1369         Added debian docbook catalog, made it the default
1370         
1371 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1372         * interface/postgresql/postgresql-api.cl:
1373         * interface/postgresql/postgresql-sql.cl:
1374         * sql/sql.cl:
1375         * sql/db-interface.cl:
1376         Added large objects support for postgresql.
1377
1378 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1379         * src/postgresql-socket/postgresql-socket-api.cl:
1380         Fixed find-foreign-function call, eliminated crypt warning
1381         * Makefiles:
1382         Multiple improvements
1383         * sql/usql.cl:
1384         Moved functionality from low-level interfaces to this file
1385         via generic functions
1386         * test-suite/tester.cl:
1387         Added test with acl-compat-tester, moved others to old-tests
1388         directory.
1389         
1390 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1391         * src/usql.cl:
1392         Reinstated commented out sections
1393         * interfaces/postgresql/postgresql-loader.cl:
1394         * interfaces/mysql/mysql-loader.cl:
1395         Updated find-forieign-library support.
1396         * interfaces/postgresql-socket/postgresql-socket-package.cl:
1397         Fixed require form for Lispworks (Thanks Marc Battyani!)
1398         * interfaces/postgresql-socket/postgresql-socket-api.cl:
1399         Fixed eval of def-function for crypt library.
1400                 
1401 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1402         * Added interface to support USQL high-level rouines
1403         
1404 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1405         * Separated db-interface and conditions from sql/sql.cl
1406         * Improved foreign library loading testing
1407         * interfaces/postgresql/postgresql-api.cl
1408         Added PQisBusy function
1409         * interfaces/clsql-uffi/clsql-uffi.cl
1410         Fixed sign error for 64-bit processing
1411         
1412 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1413         * interfaces/postgresql-socket/postgresql-socket-api.cl:
1414         Fixes to read-double-from-socket. Added 64-bit integer support.
1415         * test-suite/xptest-clsql.cl
1416         Added testint for 64-bit integers
1417         * Additons to installation docs
1418         
1419 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1420         * interfaces/postgresql-socket/postgresql-socket-api.cl:
1421         Implemented direct socket reading for field type :double
1422         * Added usage information for :types to documentation
1423         * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
1424         atol, atof calls
1425         * interfaces/clsql-uffi: Created new directory. Split common
1426         interface routines that use UFFI into this package. Required
1427         especially to support direct reading of 64-bit integers into
1428         bignums and bypassing temporary strings.
1429         * test-clsql.cl: Updated to test postgresql-socket's
1430         read-double-from-socket function.
1431         * test-suite/xptest-clsql.cl
1432         Started work on test suite
1433
1434 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1435         * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
1436         mysql-fetch-field-direct Got :auto types working
1437         * interfaces/postgresql/postgresql-api.cl
1438         * interfaces/postgresql-socket/postgresql-socket-api.cl
1439         Added pgsql-field-types enum. Got :auto types working.
1440         * multiple-files
1441         Renamed :field-types to :types.
1442         
1443 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1444         * Added field-types parameter to query, database-query,
1445         database-query-result-set, map-query. Haven't added code
1446         to utilize field types, yet.
1447         * Changed postgresql-socket result set from cons to a structure
1448         * Updated test-clsql.cl to use automated testing with a config
1449         file
1450         * Changed return types of field accessors from cstring to
1451         (* :unsigned-char).  This prepares for being able to use specified
1452         type conversions when taking field data into lisp.
1453         * Added field-type processing for most interfaces. Not done yet.
1454         
1455 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1456         * doc/ref.sgml: Updated MAP-QUERY example to use
1457         *read-default-float-format* (John Foderaro)
1458         * Extensive work to foreign library loaders and .system files to
1459         check for successful loading of foreign libraries.
1460         * Modified test-clsql.cl to allow more modularity and
1461         automated testing in future release.
1462         * mysql/mysql-sql.lisp: Added field types
1463         
1464 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
1465         * mysql/mysql-sql.lisp:
1466         - Added support for Allegro CL and Lispworks using UFFI layer
1467         - Changed database-connect to use mysql-real-connect. This way,
1468           can avoid using double (unwind-protect)
1469         - Changed database-connect to have MySQL library allocate space
1470           for MYSQL structure. This will make the code more robust in
1471           the event that MySQL library changes the size of the mysql-mysql
1472           structure.
1473
1474