r9289: Added new operations for the sql syntax.
[clsql.git] / ChangeLog
1 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
2         * sql/operations.lisp: complete remaining operations for the sql 
3         syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT, 
4         UNION, INTERSECT, BETWEEN. 
5         * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION, 
6         SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION. 
7         * tests/test-syntax.lisp: add tests for new operations. 
8         * tests/test-fdml.lisp: add tests for queries based on new operations. 
9         * tests/test-init.lisp: add select/20 to tests skipped for sqlite and 
10         select/20, query/5, query/7 and query/8 to tests skipped by mysql. 
11         * TODO: removed entries done. 
12
13 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
14         * tests/benchmarks.lisp: Add immediate vs. deferred
15         join test.
16         
17 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
18         * Version 2.10.13: Now works on openmcl 0.14.2 
19         * sql/objects.lisp: Add :retrieval :immediate for
20         object selections
21         * tests/test-init.lisp: Add non-index fields for testing 
22         join class employee-addresss
23         * test/test-oodml.lisp: Add tests for retrieval immediate
24         * sql/metaclasses.lisp: Handle differences in direct-slot-definition 
25         values which are now listifed by openmcl 14.2.
26         * sql/objects.lisp: more framework for supporing immediate retrieval 
27
28 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
29         * docs/intro.xml: Upload location of a README file
30         * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
31         changing the type-specifier. Use a lisp type of (OR NULL FOO)
32         for a specified-type of FOO unless :db-constraints :not-null.
33         No need to specialize finalize-inheritance for openmcl.
34         * tests/test-*.lisp: Rename fields so that joins occur on
35         fields with different names. This ensures that join code is
36         selecting the proper name.
37         * test/test-init.lisp: Add :base-table for employee-address
38         view class for testing.
39         * sql/objects.lisp: Use view-table rather than name of table
40         in a number of places to fix errors noted with using :base-table.
41
42 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
43         * sql/objects.lisp: replace *update-records-on-make-instance* with 
44         *db-auto-sync* which also controls both automatic creation of 
45         new records on creation of new instance and updating of record 
46         fields on setting of instance slots (as suggested by Edi Weitz). 
47         * tests/test-init.lisp: replace *update-records-on-make-instance* 
48         with *db-auto-sync*. 
49         * sql/package.lisp: replace *update-records-on-make-instance* 
50         with *db-auto-sync*. 
51         * TODO: replace *update-records-on-make-instance* with *db-auto-sync*. 
52         * sql/objects.lisp: remove redundant rebindings of *db-initializing* 
53         and *default-database* in FIND-ALL. 
54         * sql/package.lisp: import time functions from CLSQL-BASE. 
55         * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
56         * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
57         * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
58         * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with 
59         CLSQL. 
60
61 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
62         * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
63         now return a sql-object-query type rather than directly performing a query.
64         This improves CommonSQL conformance.
65         * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
66         from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
67         depend on sql-object-query-type.
68         * sql/loop-extensions.lisp: Move from base package
69         * classic/package.lisp: remove references to map-query and do-query
70
71 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
72         * TODO: New section on optimizations, especially optimizing JOINs.
73         * sql/objects.lisp: Have :target-slot return of list of lists rather
74         than a list of cons pairs to be conformant with CommonSQL.
75         Make :target-slot much more efficient by using a SQL inner join
76         statement and just requiring one SQL query. Add :retrieval :deferrred
77         to target-slot joins. Add placeholder for update-objects-join.
78         * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
79         and process them for query output-sql. 
80
81 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
82         * Version 2.10.11
83         * base/basic-sql.lisp: Avoid multiple evaluation
84         of query-expression in DO-QUERY
85         * sql/objects.lisp: Make SELECT a normal function.
86         SELECT now accepts type-modified database identifiers, such as
87         [foo :string] which means that the values in column foo are returned 
88         as Lisp strings. Add new *update-records-on-make-instance* special
89         variable controlling automatic creation of new instances. Add missing
90         RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
91         * sql/packages.lisp: Export *update-records-on-make-instance* 
92         * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
93         selections.
94         * test/test-fdml.lisp: Add tests for type-modified
95         database identifiers.
96         * test/test-init.lisp: Stop using add-relation since implementing
97         many-to-many joins. Use *update-records-on-make-instance* 
98         to automatically store records on instance creation. Add many-to-many
99         employee-address view-class.
100         
101 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
102         * Version 2.10.10
103         * base/loop.lisp: Add object iteration. Use :result-type
104         :auto for result-set. Remove 
105         duplicate (and non-correct) code for non-list variables by
106         simply making an atom variable into a list. 
107         * sql/package.lisp: Remove unnecessary clsql-sys package
108         and replace it with clsql.
109         * sql/metaclasses.lisp: Properly store specified-type from
110         direct-slot-definition and then store translated type in
111         effective-slot-definition
112         * sql/classes.lisp: Don't output type in sql-output
113         for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
114         [foo :integer] as fields in SELECT.
115         * sql/query.lisp: Set default for :result-types to :auto in
116         FDML QUERY.
117         * sql/objects.lisp: Use specified-type when invocating 
118         database-get-type-specifier. def-view-class macro now returns
119         the class instance.
120         * base/basic-sql.lisp: Make :AUTO the default value for
121         :RESULT-TYPES for MAP-QUERY and DO-QUERY.
122         * sql/objects.lisp: Add bigint type
123         * test/tests-basic.lisp: Add tests for :result-types for
124         MAP-QUERY and DO-QUERY
125         * test/test-fdml.lisp: Add test for result-types in LOOP
126         and also using single symbol rather than a list for variables.
127         Add test that default :result-types is auto for FDML QUERY.
128         * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
129         of SQL-IDENT-ATTRIBUTE.
130         * test/test-oodml.lisp: Enable OO loop iteration test,
131         modify it so it doesn't depend on boolean where.
132         
133 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
134         * Version 2.10.9
135         * sql/objects.lisp: added derived type specifier for universal time. 
136         * sql/package.lisp: added #:universal-time to clsql-sys exports. 
137         * tests/test-oodml.lisp: added test for translation of boolean slots 
138         in SELECT with object queries. 
139         
140 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
141         * db-odbc/odbc-api.lisp: Fix changing nil to "NIL" 
142         for odbc/postgresql backend.
143         * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
144         it can handle NIL values from the ODBC driver
145         * tests/benchmarks.lisp: New file with initial
146         benchmark suite
147         * sql/relations.lisp: fix to add subclassing support,
148         minor optimizations [Edi Weitz]
149         
150 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
151         * Version 2.10.8        
152         * base/conditions.lisp: Add *backend-warning-behavior*
153         special variable.
154         * db-postgresql-socket/postgresql-socket-sql.lisp:
155         Honor value of *backend-warning-behavior*
156         * tests/test-fdml.lisp: Remove test of raw boolean value
157         since different backends handle this differently. Add
158         test for :column attribute.
159         * tests/test-oodml.lisp: Add tests for boolean slot value
160         and for :void-value attribute
161         * tests/test-init.lisp: Use *backend-warning-behavior*
162         to suppress warnings from postgresql about implicitly
163         creating primary key in tables. Add new address table.
164         
165 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
166         * Version 2.10.7
167         * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
168         result-types is :auto
169         * sql/objects.lisp: Properly handled writing/reading Boolean
170         values from SQL database when retrieving objects.
171         * test/test-fdml.lisp: Add another test for boolean results
172         * test/utils.lisp: Fix incorrect declaration
173         
174 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
175         * Version 2.10.6
176         * sql/generics.lisp: add generic function for SELECT. 
177         * sql/objects.lisp: make SELECT a method specialisation. 
178         * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections 
179         referred to are View Classes. 
180         * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the 
181         query-expression arg evaluates to a list, then we have an object 
182         query. 
183         * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with 
184         object queries. 
185         * TODO: remove items done and add a todo for SELECT. 
186         * sql/objects.lisp: SELECT takes a :field-names arg to pass on to 
187         QUERY. 
188         * sql/sql.lisp: add :field-names arg to QUERY. 
189         * tests/test-fdml.lisp: minor rework to use :field-names arg to 
190         SELECT. 
191
192 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
193         * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2 
194         or more View Classes. 
195         * sql/objects.lisp: make the :flatp argument to SELECT work with 
196         object queries. 
197         * sql/objects.lisp: make SELECT accept a :result-types argument 
198         (defaults to :auto) which is passed on to QUERY.  
199         * sql/objects.lisp: SELECT returns field-names as a second value. 
200         * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate. 
201         * tests/test-fdml.lisp: add flatp/result-types arguments to calls 
202         to SELECT and take only first value as appropriate.
203         * tests/test-fdml.lisp: add two new tests for query result coercion 
204         and the field-names returned as a second value from SELECT. 
205         * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate. 
206         
207 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
208         * Version 2.10.6-pre1
209         * sql/metaclasses.lisp: Add void-value slot
210         * doc/csql.xml: Update def-view-class documentation
211         * test/test-init.lisp: Change old :db-type to :db-kind.
212         Remove old :nulls-ok attributes.
213         * sql/objects.lisp: Add new universal-time and bigint
214         types. Optimize reading of integers using parse-integer
215         rather than read-from-string.
216         * */*.lisp: Merge clsql-base-sys and clsql-base packages
217         into clsql-base package
218         * classic/sql.lisp: Move large object support into base, leaving
219         classic without any functionality that is provided in the clsql
220         system.
221         * classic/package.lisp: Rename clsql-classic-sys package to
222         its former nickname of clsql-classic
223         
224 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
225         * Version 2.10.5: SQLite backend now passes all result-types tests
226         * clsql-sqlite.asd: Depend on clsql-uffi system
227         * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
228         for efficiency and code reuse. 
229         * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
230         for better cross-implementation compatibility.
231
232 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
233         * Version 2.10.4
234         * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
235         [Marcus Pearce]
236         * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
237         bug on SBCL in result-field-names function as reported by Marcus Pearce
238         * db-sqlite/sqlite-sql.lisp: Fix  in database-store-next-row
239         manifest in SBCL testing
240         
241 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
242         * Version 2.10.3
243         * sql/database.lisp: Conform more to CommonSQL output
244         for STATUS command [Marcus Pearce]
245         * sql/sqlite-sql.lisp: Rework to use result-types
246         * sql/sqlite-api-clisp.lisp: Add compatibility layer
247         with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
248         be cleaned up of most clisp reader conditionals
249         * sql/test-init.lisp: Now run field type tests on sqlite
250         backend
251         
252 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
253         * Version 2.10.2
254         * base/basic-sql.lisp: Set default value of :result-types 
255         to :auto for more CommonSQL conformance. 
256         * test/test-fdml.lisp: Add tests for numeric value of fields
257         
258
259 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
260         * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
261         * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
262         Return field names as second value for QUERY. This can be overridden
263         for efficiency with the new keyword :FIELD-NAMES set to NIL
264         in the QUERY invocation.
265         * test/test-fdml.lisp: Add tests for new field-name feature
266         * sql/metaclass.lisp: Remove old Lispworks cruft
267         and replace it with invocation of new code in kmr-mop.lisp
268         which actually works with Lispworks 4.2
269         * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
270         QUERY function
271         * base/db-interface.lisp: Document the multiple values
272         returned by DATABASE-ATTRIBUTE-TYPE so matches the
273         undocumented CommonSQL behavior. 
274         * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
275         *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
276         LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
277         Implement CACHE-TABLE-QUERIES.
278         * db-odbc/odbc-sql.lisp: Fix attribute-type function
279         * test/test-fddl.lisp: Add tests for attribute type     
280         * db-mysql/mysql-sql.lisp: Mild optimization in accessing
281         field structures.
282         * base/classes.lisp: Add attribute-cache slot to database clas
283         * base/initialize.lisp: initialize-database-type now automatically
284         loads database-type backend as needed.
285         * base/test-init.lisp: Utilize new initialize-database-type functionality.
286         * TODO: remove items done
287         
288 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
289         * Version 2.9.6
290         * sql/objects.lisp: remove create/drop-sequence-from-class. 
291         * sql/objects.lisp: add INSTANCE-REFRESHED generic function. 
292         * sql/objects.lisp: improved CommonSQL compatibility for
293         UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
294         UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS. 
295         * sql/generics.lisp: move generics from objects.lisp to here. 
296         
297 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
298         * Version 2.9.6-pre1
299         * db-mysql/mysql-client-info.lisp: Add client version 4.1
300         detection
301         * sql/sql.lisp: Make *default-database* the default for
302         TRUNCATE-DATABASE
303         
304 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
305         * Version 2.9.5
306         * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
307         detection
308         * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying 
309         :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes 
310         on a metaclass specialized from standard-db-class.
311
312         
313 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
314         * Version 2.9.4: Multiple changes to support Allegro's "modern"
315         lisp which uses a lowercase reader and has case-sensitive symbols
316         * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
317         exposed by case-sensitive mlisp. 
318
319 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
320         * Version 2.9.3: All tests now pass on all platforms!
321         * LATEST-TEST-RESULTS: New file with summary of test results
322         * sql/generics.lisp: New file for generic function definitions.
323         * test/test-init.lisp: Display names of skipped tests.
324         Use unwind-protect to ensure disconnect
325         * sql/objects.lisp: Change database-type to database-underlying-type
326         so that actual database engine is properly identified
327         * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
328         return an ISO timestring for compatibility with other drivers.
329         Workaround bug in MyODBC for LIST-TABLE-INDEXES
330         * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
331         returns floating-point values for floor and truncate operations 
332         * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
333         * tests/test-basic.lisp: Port to regression tester
334         * test/test-init.lisp: Output to *report-stream*
335         * docs/appendix.xml: Document ODBC and SQLite backends.
336         * sql/classes.lisp: Make output-sql require a database parameter.
337         This allows SQL generation to have the proper case to support
338         the differences in case handling between CommonSQL API,
339         Postgresql, MySQL, Oracle.
340         
341 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
342         * Version 2.9.2: Improvments in database capability introspection
343         and querying. Support transactions in MySQL where available.
344         All tests now pass on MySQL and SQLite in addition to postgresql
345         and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
346         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
347         DATABASE-LIST-SEQUENCES.
348         * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
349         * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
350         HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
351         * tests/*.lisp: Check database capabilities and remove tests which
352         the database backend does not support
353         * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
354         controls whether InnoDB tables will be created when supported on
355         the underlying MySQL server.
356         
357 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
358         * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
359         supported by all database backends (except AODBC since
360         AODBC doesn't support index querying)
361         * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
362         * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
363         to support index queries
364         * db-aodbc/aodbc-sql.lisp: Filter driver manager
365         "information_schema" tables from LIST-TABLES
366         * tests/test-basic.lisp: Remove table after testing
367         * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
368         * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
369         which gets the underlying type of database -- required
370         when dealing with ODBC databases and want to query
371         database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
372         as first database-backend specific feature. Is T on
373         :mysql, NIL on other backends. Change DROP-TABLE to
374         query this.
375         
376 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
377         * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
378
379 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
380         * Version 2.8.1
381         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function 
382         * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function 
383
384 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
385         * Version 2.8.0: New API function: LIST-DATABASES
386         * base/utils.lisp: Fix command-output on CMUCL/SBCL
387         * db-*/*-sql.lisp: Add new database-list function
388         * base/database.lisp: Add new LIST-DATABASES command
389         
390 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
391         * Version 2.7.9
392         * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
393         * db-sqlite/sqlite-api-uffi.lisp: Print error string
394         correctly.
395         
396 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
397         * Version 2.7.7
398         * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
399         from Eduardo Munoz.
400         
401 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
402         * Version 2.7.6
403         * base/objects.lisp, base/classes.lisp: Patch
404         for db-kind from Eduardo Munoz
405         
406 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
407         * Version 2.7.5
408         * base/basic-sql.lisp: Fix FLATP in QUERY
409
410 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
411         * Version 2.7.3: Implement RECONNECT
412
413 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
414         * Version 2.7.2: Fix ODBC on Lispworks Windows
415
416 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
417         * Version 2.7.1: Fix for new ODBC backend.
418         clsql-odbc now works on SBCL, CMUCL, OpenMCL
419         in addition to AllegroCL and Lispworks.
420
421 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
422         * Version 2.7.0: New backend: ODBC. Tests as
423         well as AODBC backend on Allegro,Lispworks.
424         SBCL and CMUCL don't work quite yet.  Requires UFFI v1.4.11+
425         * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
426         to explicitly set ODBC2 support. Add BIGINT support.
427         Add result-types support. Added SQLTables.
428         Fix array type in fetch-all-rows. Make width
429         changable by database or query.
430         * base/utils.lisp: Add process functions
431         * base/package.lisp: Export utils to CLSQL-BASE-SYS
432         * db-aodbc: Implement sequence functions,
433         database-list-tables, database-list-attributes
434         * tests/utils.lisp: Add support for ODBC backend,
435         rework READ-SPECS to use +all-db-types+
436         * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
437         for SEQUENCE-NEXT
438         
439 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
440         * Version 2.6.13. Requires UFFI version 1.4.9
441         * db-odbc/*.lisp: Further porting.
442         Pre-alpha code! But, basic query is now working.
443
444 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
445         * Version 2.6.12
446         * base/transactions.lisp: Add quote for macro
447         expansion of WITH-TRANSACTIONS [Time Howe]
448         * db-sqlite/sqlite-sql.lisp: Support memory database
449         in database-probe [Ng Pheng Siong]
450         * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
451         The DBI layer is not finished.
452         
453 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
454         * Version 2.6.11
455         * sql/objects.lisp: add :root-class functionality for
456         list-classes and add duration type support [Marcus Pearce]
457         * db-odbc: Add mid-level [DBI] layer
458
459 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
460         * Version 2.6.10
461         * db-aodbc: Add methods for generic functions, some are
462         not yet implemented.
463         * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
464         support
465
466 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
467         * Version 2.6.9
468         * base/package.lisp: Add missing symbols [Marcus Pearce]
469
470 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
471         * Version 2.6.8
472         * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
473         * utils/time.lisp: Multiple fixes [Marcus Pearce]
474         * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
475         
476 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
477         * Version 2.6.7
478         * sql/*.lisp: Remove schema versioning cruft
479         [Marcus Pearce]
480         * Makefile: Add classic subdirectory
481         
482 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
483         * Version 2.6.6
484         * sql/sql.lisp: Fix TRUNCATE command, bug reported
485         by Marcus Pearce
486         * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
487         specific and easy for an application to directly support.
488         Idea from Marcus Pearce.
489         * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level 
490         API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
491         Keep low-level interface for future optimization
492         supporting LIST-ATTRIBUTE-TYPES command.
493         * Makefile: Add to db-sqlite and test directories.
494         Include them in top-level Makefile
495         
496 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
497         * Version 2.6.5
498         * sql/relations.lisp: Add missing file
499         * utils/time.lisp: Fixes/extensions [Marcus Pearce]
500         * test/test-time.lips: New file [Marcus Pearce]
501         
502 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
503         * Version 2.6.4
504         * test/test-init.lisp: Properly handle object
505         creation. Close database after use.
506         * sql/sql.lisp: Make DESCRIBE-TABLE a generic
507         function so can have methods specialized on
508         table being a string or an sql-table object.
509         * base/pool.lisp: Really fix CMUCL locking
510         
511 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
512         * Version 2.6.3
513         * test/test-init.lisp: Signal correctly
514         if any errors occurred in any test suite
515         * base/loop-extensions.lisp: Fix error
516         introduced for Lispworks
517         * base/pool.lisp: Fix locking for CMUCL
518         * base/objects.lisp: Remove schema-version cruft
519         
520 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
521         * Version 2.6.2: New CLSQL API functions:
522         DESCRIBE-TABLE AND TRUNCATE-DATABASE
523         Currently, this are only supported on :postgresql
524         and :postgresql-socket
525         * base/database.lisp: automatically load ASDF system
526         in CONNECT if not already loaded
527         * base/tests.lisp: disconnect database after testing 
528         * base/*.lisp: Remove CLOSED-DATABASE type in favor
529         of storing open/closed status in slot of database
530         * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
531         * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
532         DATABASE-DESCRIBE-TABLE
533         * db-sqlite/sqlite-sql.lisp: Add missing slots in database
534         * base/conditions: Remove duplicate condition
535         * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
536         * base/recording.lisp: Add new :QUERY type for recording
537         
538 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
539         * Version 2.6.1: documentation fixes, merged
540         classic-tests into tests
541
542 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
543         * Version 2.6.0 released: New API functions
544         CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
545         * doc/ref_clsql.xml: Document new functions
546         * base/database.lisp: New API functions
547         * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
548         * base/utils.lisp: Fix use of position-char.
549         Add COMMAND-OUTPUT used by backends for running
550         external programs. Fix parsing of SQL*NET-compatible
551         connection-specs.
552         * base/loop-extension.lisp: Simplify package use
553         for Lispworks and Allegro
554         * db-*/*-sql.lisp: Added DATABASE-CREATE,
555         DATABASE-DESTORY, PROBE-DATABASE methods
556         * tests/test-init.lisp, clasic-tests/tests.lisp:
557         Use destroy-database and create-database to ensure 
558         testing with empty database
559         * tests/test-connection.lisp: Add tests for
560         parsing of string connection-specs
561         * examples/run-tests.sh: New file for running
562         test suite on all installed CL implementations
563         * examples/clsql-tutorial.lisp: moved from
564         doc directory
565         * examples/dot.clsql-tests.config: New file
566         giving an example test configuration
567         * test/README: Add notes about rtest/ptester
568         downloads and link to sample test configuration file.
569         
570 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
571         * Version 2.5.1 released:
572         * tests/*.lisp: Rework so tests are run
573         on multiple backends automatically based
574         on the contents of ~/.clsql-tests.config.
575         Reuse helper functions from classic-tests.
576         * base/database.lisp: Support connection-spec
577         as string for CONNECT
578         * classic-tests/tests.lisp: Automatically
579         load database backends as needed. 
580         
581 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
582         * Version 2.5.0 released:
583         All tests for CLSQL and CLSQL-CLASSIC pass
584         on all platforms.
585         * base/loop-extension.lisp: Add Lispworks
586         loop-extension. Improve type specifying on
587         other platforms.
588         
589 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
590         * Version 2.4.2 released:
591         loop extension now supported on Allegro, all
592         CLSQL-TESTS pass on Allegro.
593         * sql/metaclasses.lisp: Some optimization
594         of compute-slots, be selective when
595         ordered-class-slots needs to be called
596         instead of class-slots
597         * TODO: add URL with documentation on
598         extending Lispworks LOOP form
599         
600 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
601         * Version 2.4.1 released: CLSQL-TESt suite passes
602         all tests for postgresql and CMUCL, SBCL, OpenMCL.
603         Allegro and Lispworks pass all tests except for
604         FDML/LOOP/1 since the loop extension have not yet
605         been ported to those implementions.
606         * sql/metaclasses.lisp: Added new slot to standard-db-class
607         to hold user-specified type. OpenMCL adjustments to compensate
608         for its type-predicate function. Since AllegroCL, Lispworks,
609         and OpenMCL have different slot orders, added compute-slots
610         and ordered-class-slots functions so their slot order matches
611         SBCL/CMUCL.
612
613 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
614         * Version 2.4.0 released: All tests for clsql-classic now finish
615         correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
616         mysql, postgresql, postgresql-sockets, and sqlite backends.
617         * db-mysql/mysql-sql.lisp: Fix array dereferencing
618         * classic-tests/tests.lisp: Fix package name of
619         number-to-sql-string. 
620         * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
621         * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
622         now passes tests on all support UFFI platforms.
623         * db-postgresql-socket/postgresql-socket-api.list: Ported to 
624         SBCL and OpenMCL
625         * multiple: Finish renaming of :types keyword to :result-types for
626         greater CommonSQL compatibility, including documentation
627         * sql/basic-cmds.lisp: Remove obsolete file
628         
629 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
630         * Version 2.3.3 released
631         * Fixes for sequences on mysql and sqlite [Marcus Pearce]
632         * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
633         * Fix for schema table [Marcus Pearce]
634         * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
635         * Fixes to test suite [Marcus Pearce]
636
637 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
638         * db-*/*-sql.lisp: Ensure that expr in
639         database-query-result-set is a string
640         * Documentation integration
641         
642 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
643         * With for Marcus Pearce's excellent work, I've merged
644         his clsql-usql port into clsql. The original clsql
645         interface is available in the clsql-classic package.
646
647 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
648         * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
649         adding further support for providing backend for UncommonSQL
650
651 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
652         * Integrate patch from Aurelio Bignoli for SQLite backend
653
654 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
655         * Converted documentation to XML format
656         * Made package installable with asdf-install
657
658 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
659         * Add for-each-row macro
660
661 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
662         * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
663         
664 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
665         * Add support for SBCL, OpenMCL, and SCL
666         * Add *load-truename* to search path for clsql's
667         compiled libraries.
668
669 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
670         * Rework use of file types in .asd files
671
672 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
673         * Add .asd definition files for ASDF users
674
675 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
676         * Restructure directories for Common Lisp Controller v3 compatibility
677
678 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
679         * Also change case of logical host in loader files
680         * Rework handling of logical pathnames
681         
682 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
683         * Change case of logical host
684         
685 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
686         * clsql-base.system: Added base package that can be used without
687         high-level SQL commands. Used for adding support for UncommonSQL.
688         * *.system: Reworked logical pathnames to be more consistent with
689         Common Lisp Controller.
690         * debian/*: Completed initial Debian support
691         
692 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
693         * sql/classes.cl:
694         * sql/transactions.cl:
695         Added transaction support. Functions/macros added:
696         with-transaction, commit-transaction, rollback-transaction,
697         add-transaction-commit-hook, add-transaction-rollback-hook
698
699 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
700         * sql/sql.cl:
701         * sql/pool.cl:
702         * sql/functional.cl:
703         Added pool support in connect/disconnect and with-database.
704         Removed with-db-from-pool as with-database can now works with the connections pool
705
706 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
707         * sql/sql.cl:
708         * sql/pool.cl:
709         * sql/classes.cl:
710         * sql/package.cl:
711         Completed connection pool.
712         Added with-db-from-pool macro.
713         
714 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
715         * Multiple files:
716         Added initial support for connection pool
717         * sql/transactions.cl
718         Took transaction code from UncommonSQL and integrated
719         into CLSQL code. See file for disclaimer about why this
720         was added.
721
722 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
723         * interfaces/postgresql/postgresql-sql.cl:
724         Fix keyword typo in database-read-large-object
725         * interfaces/mysql/mysql-loader.cl
726         Fix loading on Win32
727         * test-suite/tester-clsql.cl
728         Fix type coercion of double-float
729         * doc/*
730         Added debian docbook catalog, made it the default
731         
732 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
733         * interface/postgresql/postgresql-api.cl:
734         * interface/postgresql/postgresql-sql.cl:
735         * sql/sql.cl:
736         * sql/db-interface.cl:
737         Added large objects support for postgresql.
738
739 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
740         * src/postgresql-socket/postgresql-socket-api.cl:
741         Fixed find-foreign-function call, eliminated crypt warning
742         * Makefiles:
743         Multiple improvements
744         * sql/usql.cl:
745         Moved functionality from low-level interfaces to this file
746         via generic functions
747         * test-suite/tester.cl:
748         Added test with acl-compat-tester, moved others to old-tests
749         directory.
750         
751 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
752         * src/usql.cl:
753         Reinstated commented out sections
754         * interfaces/postgresql/postgresql-loader.cl:
755         * interfaces/mysql/mysql-loader.cl:
756         Updated find-forieign-library support.
757         * interfaces/postgresql-socket/postgresql-socket-package.cl:
758         Fixed require form for Lispworks (Thanks Marc Battyani!)
759         * interfaces/postgresql-socket/postgresql-socket-api.cl:
760         Fixed eval of def-function for crypt library.
761                 
762 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
763         * Added interface to support USQL high-level rouines
764         
765 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
766         * Separated db-interface and conditions from sql/sql.cl
767         * Improved foreign library loading testing
768         * interfaces/postgresql/postgresql-api.cl
769         Added PQisBusy function
770         * interfaces/clsql-uffi/clsql-uffi.cl
771         Fixed sign error for 64-bit processing
772         
773 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
774         * interfaces/postgresql-socket/postgresql-socket-api.cl:
775         Fixes to read-double-from-socket. Added 64-bit integer support.
776         * test-suite/xptest-clsql.cl
777         Added testint for 64-bit integers
778         * Additons to installation docs
779         
780 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
781         * interfaces/postgresql-socket/postgresql-socket-api.cl:
782         Implemented direct socket reading for field type :double
783         * Added usage information for :types to documentation
784         * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
785         atol, atof calls
786         * interfaces/clsql-uffi: Created new directory. Split common
787         interface routines that use UFFI into this package. Required
788         especially to support direct reading of 64-bit integers into
789         bignums and bypassing temporary strings.
790         * test-clsql.cl: Updated to test postgresql-socket's
791         read-double-from-socket function.
792         * test-suite/xptest-clsql.cl
793         Started work on test suite
794
795 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
796         * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
797         mysql-fetch-field-direct Got :auto types working
798         * interfaces/postgresql/postgresql-api.cl
799         * interfaces/postgresql-socket/postgresql-socket-api.cl
800         Added pgsql-field-types enum. Got :auto types working.
801         * multiple-files
802         Renamed :field-types to :types.
803         
804 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
805         * Added field-types parameter to query, database-query,
806         database-query-result-set, map-query. Haven't added code
807         to utilize field types, yet.
808         * Changed postgresql-socket result set from cons to a structure
809         * Updated test-clsql.cl to use automated testing with a config
810         file
811         * Changed return types of field accessors from cstring to
812         (* :unsigned-char).  This prepares for being able to use specified
813         type conversions when taking field data into lisp.
814         * Added field-type processing for most interfaces. Not done yet.
815         
816 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
817         * doc/ref.sgml: Updated MAP-QUERY example to use
818         *read-default-float-format* (John Foderaro)
819         * Extensive work to foreign library loaders and .system files to
820         check for successful loading of foreign libraries.
821         * Modified test-clsql.cl to allow more modularity and
822         automated testing in future release.
823         * mysql/mysql-sql.lisp: Added field types
824         
825 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
826         * mysql/mysql-sql.lisp:
827         - Added support for Allegro CL and Lispworks using UFFI layer
828         - Changed database-connect to use mysql-real-connect. This way,
829           can avoid using double (unwind-protect)
830         - Changed database-connect to have MySQL library allocate space
831           for MYSQL structure. This will make the code more robust in
832           the event that MySQL library changes the size of the mysql-mysql
833           structure.
834
835