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