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