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