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