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