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