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