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