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