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