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