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