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