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