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