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