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