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