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