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