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