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