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