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