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