1 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
3 * sql/expressions.lisp: when removing duplicate table identifiers
4 in the FROM clause of a query, check both table name and alias
6 * sql/fdml.lisp: remove DESCRIBE-TABLE.
7 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
8 DATABASE-DESCRIBE-TABLE.
9 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
10 and LIST-TABLE-INDEXES.
11 * sql/generic-postgresql.lisp: add reader conditional #+nil for
12 DATABASE-DESCRIBE-TABLE and comment about its uses for
13 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
14 returning type info for all attributes.
15 Fix DATABASE-SEQUENCE-LAST.
16 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
17 LIST-INDEXES with additional keyword parameter :ON.
18 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
19 with LIST-INDEXES (with :ON parameter).
20 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
21 * doc/ref-connect.xml: minor tidying.
22 * doc/ref-fddl.xml: document the FDDL.
23 * doc/TODO: removed items done. Moved note about transaction handling
25 * TODO: move note about transaction handling to doc/TODO. Added
26 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
28 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
30 * sql/syntax.lisp: updated docstrings.
31 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
33 * sql/database.lisp: add docstrings for CREATE-DATABASE,
34 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
35 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
36 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
37 * doc/ref-connect.xml: document connection/initialisation.
38 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
39 * doc/TODO: remove items done.
40 * Makefile: add db-oracle to to SUBDIRS.
42 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
43 * sql/oodml.lisp: Add new serialization functions:
44 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
45 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
46 from a table that has more than one primary index.
47 * sql/conditions.lisp: Fix printing of closed-database error
49 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
51 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
52 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
54 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
55 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
56 of SQL-EXPRESSION from CLSQL-SYS.
57 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
58 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
59 * doc/Makefile: added Mandrake linux.
60 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
61 * doc/appendix.xml: fixed little typo (adsf).
62 * doc/glossary.xml: removed closed-database and note about
63 sql-expression, added some entries.
64 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
66 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
68 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
69 * multiple: Add generalized-boolean type as requested by
71 * TODO: Added need for test of generalized-boolean
73 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
74 * Version 2.11.7 released
75 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
76 for loading with clc-register-user-package. Remove personal
77 directory from path lisp.
78 * db-mysql/mysql-loader.lisp: Similar changes
80 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
81 * Version 2.11.6 released
82 * sql/oodml.lisp: Commit patch from Edi Weitz
83 to fix symbol writing/reading
84 * TODO: Add need for symbol slot test
86 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
87 * sql/package.lisp: remove duplicate export of
88 *CACHE-TABLE-QUERIES-DEFAULT*.
89 * doc/ref-*.xml, doc/global-index.xml: new files documenting
90 the CommonSQL compatible api.
91 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
92 reflect changes in return values of WITH-TRANSACTION.
94 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
95 * tests/README: Fix filename [reported by Bill Clementson]
96 * sql/transactions.lisp: Apply return value patch from
97 Edi Weitz for WITH-TRANSACTION
98 * tests/README: Remove ptester package requirement (as noted
101 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
102 * Version 2.11.5 released
103 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
104 Select connection-spec based on connection type. Bugs reported by
106 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
107 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
108 name on Windows, add \bin\ directory to search path
110 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
111 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
113 * sql/operations.lisp: substr now generates SUBSTR for use on
114 Oracle; added a new operator SUBSTRING for use elsewhere. minus
115 now generates MINUS for use on Oracle. Nvl signals an error if
116 not called with exactly 2 arguments. Add concat function for use
117 instead of the || operator on MySQL and Oracle.
118 * sql/syntax.lisp: changed internal symbol for the || operator to
120 * sql/expressions.lisp: removed redundant and unused functions
121 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
122 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
123 * sql/generics.lisp: removed generic function for
124 DATABASE-CONSTRAINT-DESCRIPTION (see above).
125 * tests/test-syntax.lisp: modified/added tests according to changes
126 in sql/operations.lisp.
127 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
129 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
130 and SQL-USERENV to the shared exports list. Removed
131 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
132 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
133 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
134 RECORD-SQL-RESULT from shared exports list.
136 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
137 * db-postgresql/postgresl-sql.lisp: Avoid computing
138 result-types lisp when nil result-types. Return only
139 one value when field-types nil.
140 * db-mysql/mysql-sql.lisp: Simple queries now
141 working with prepared statements.
143 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
144 * Version 2.11.4: MySQL 4.1 now passes all tests
145 * sql/package.lisp: Add API for prepared statments.
146 * sql/fdml.lisp: Change implicit flatp processing
147 for string map-query for greater CommonSQL conformance.
148 Add high-high API for prepared statements.
149 * tests/test-basic.lisp: Add test for map-query and
151 * sql/transactions.lisp: Change name/semantics of
152 autocommit to set-autocommit.
153 * sql/generic-postgresql.lisp: Add support for
155 * tests/test-internal.lisp: New file
156 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
157 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
158 Controller invocation.
159 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
160 * sql/expressions.lisp: Avoid emitting double parenthesis when a
161 function contains a subselect.
163 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
165 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
166 type (setf slot-value-using-class)
167 * TODO: add not that need a test case for the above fix
168 * db-sqlite: Remove clisp support since clisp can not run CLSQL
170 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
171 introduced in Oracle8. Leave older code selectable by a reader macro
172 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
173 uses OCILogon and does not the more complex session management.
175 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
176 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
177 * test/test-init.lisp: Add universal-time slot to person.
178 * test/test-fddl.lisp: Add tests of universal-time slot
179 * test/test-ooddl.lisp: Test universal-time slot in an object
180 * TODO: Remove need for universal-time test
181 * debian/rules, debian/control: Add cl-sql-oracle binary package
182 * doc/appendix.xml: Add Oracle backend information
183 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
184 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
185 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
186 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
187 for map-query to reflect changed in arguments to be CommonSQL compatible.
188 Updated old clsql conditions to new CommonSQL compatible conditions.
190 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
191 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
192 type. Added *default-varchar-length* rather than previous hard-coded
193 varchar length. Remove 'simple-string and 'simple-base-string since they
194 are subtypes of 'string.
195 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
196 local hard-coded value.
197 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
198 type string. Convert specified-type (CHAR n) to string. Convert specified-type
199 CHAR to lisp type character.
200 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
201 * sql/operations.lisp: Add userenv
202 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
204 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
205 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
206 * test/test-init.lisp: Add large table with bigint slot
208 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
209 * Version 2.11.1 released: Much simpler Oracle client library loading.
210 Now uses ORACLE_HOME environmental variable as well as tests default
211 path for Oracle Instant Client.
213 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
214 * Version 2.11.0 released: Full Oracle support. All tests pass
215 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
216 * tests/test-init.lisp: capitalize odbc backend name in banner
217 * CONTRIBUTORS: Add note about Marcus' excellent work
218 * sql/oodml.lisp: Removed old stub function
219 * clsql.asd: Use module names in current package rather than keyword package
220 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
221 in setting sequence position. Make autocommits more efficient.
222 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
223 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
224 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
225 and read-sql-value for NUMBER and CHAR.
226 * sql/base-classes.lisp: Add autocommit slot
227 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
228 * doc/intro.xml: Add Oracle
230 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
231 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
232 CLSQL-SIMPLE-WARNING with SQL-WARNING.
233 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
235 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
236 * clsql.asd: reworked module structure in package definition and
237 file names to better reflect component functionality.
238 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
239 exports list. Removed duplicate and obsolete exports. Exported
240 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
241 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
242 according to whether they are specified by CommonSQL or CLSQL
244 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
246 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
247 here from basic-sql.lisp.
248 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
249 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
250 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
252 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
253 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
255 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
256 * Version 2.10.22 released
257 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
258 has reversed class slots, change the default for ordered-class-slots so that slots
259 are now in the same order an in the def-view-class.
260 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
261 * test/test-fddl.lisp: Add two tests for mixed case names
262 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
263 for computed fields, this will require some adjustment to the test suite which
264 in many cases expects integers.
265 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
267 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
268 * Version 2.10.21 released
269 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
270 db-odbc, and db-aodbc.
271 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
272 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
273 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
274 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
275 sql/generic-odbc.lisp
276 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
277 Move common code to sql/generic-postgresql.lisp
278 * sql/classes.lisp: honor case of string tables when outputting queries
279 * sql/objects.lisp: Add database type to default database-get-type-specifier method
280 * sql/sql.lisp: Add database type to default database-abort-transaction method
281 * db-mysql/mysql-objects.lisp: New file
282 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
283 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
285 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
286 default db case for FDML/SELECT/25
288 22 May 2004 Kevin Rosenberg
289 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
290 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
291 and string identifiers with non-default case
292 * sql/table.lisp: Don't convert string table name to a symbol.
293 * sql/classes.lisp: Honor case of string identifiers
294 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
296 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
297 of owner phrases. Obtain server and client versions.
298 * db-oracle/oracle-objects.lisp: Fix type specifiers
299 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
300 * tests/test-init.lisp: Properly get username from Oracle connection-spec
302 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
303 * sql/generics.lisp: reworked docstrings. Remove generics for
304 ADD-TO-RELATION and REMOVE-FROM-RELATION.
305 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
306 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
307 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
308 for CommonSQL compatibility. Remove ADD-TO-RELATION and
309 REMOVE-FROM-RELATION.
310 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
311 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
312 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
313 * sql/conditions.lisp: add documentation for conditions. Add
314 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
316 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
317 * sql/basic-sql.lisp: reworked docstrings.
318 * sql/transactions.lisp: reworked docstrings.
319 * sql/sql.lisp: reworked docstrings.
320 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
321 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
322 * sql/database.lisp: reworked docstrings.
323 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
324 and FDML extensions and database extensions.
326 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
327 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
328 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
330 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
331 Oracle versions with the PURGE option required for drop table. This needs
332 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
334 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
335 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
336 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
337 * sql/table.lisp: reworked docstrings.
338 * sql/objects.lisp: moved *default-update-objects-max-len* here from
340 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
341 DROP-VIEW and DROP-INDEX and the use of the :transactions and
342 :constraints keyword args to CREATE-TABLE.
343 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
344 CommonSQL compatible with respect to column constraints.
346 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
347 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
348 Requires UFFI 1.5.0 or higher
350 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
352 * sql/conditions.lisp: Fix cerror
354 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
355 * Version 2.10.18 released: New condition hierarchy to be compatible
356 with CommonSQL -- not backward compatible with previous CLSQL.
357 * sql/db-interface.lisp: Add more default methods
358 * sql/objects.lisp: Add explicit table name to order-by parameters
359 in find-all when only one table to avoid selecting a duplicate row.
360 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
361 as previous logic was adding two fields (foo asc) to SELECT query.
362 Make :result-types :auto be the default for object selections.
363 Properly handle caching key when using multiple order-by with asc/desc
365 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
367 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
368 * sql/recording.lisp: reworked docstrings.
369 * sql/syntax.lisp: reworked docstrings.
370 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
371 SQL syntax state functions being macros.
373 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
374 * sql/package.lisp: Export initialize-database-type and
375 *initialize-database-types* from CLSQL package.
376 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
377 remove old CLSQL conditions.
378 * sql/loop-extensions.lisp: Make errors of type sql-user-error
379 * */*.lisp: Convert to from old to new conditions
381 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
382 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
383 To handle this difference, will need to add a new database-drop-table
385 * db-oracle/oracle-sql.lisp: Move server-version and
386 major-version-number to database object to allow multiple connections
387 to Oracle servers of different versions.
389 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
390 * TODO: moved notes about backends to doc/TODO.
391 * doc/TODO: added notes about backends and select extensions.
392 * sql/base-classes.lisp: remove obsolete schema slot in database
395 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
396 * db-oracle/oracle-api: Add OCIServerVersion
397 * db-oracle/oracle-sql: Query and store server version on connect
398 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
399 function to handle OCI's lack of bigint support
400 * test/test-basic.lisp: Separate bigint testing
401 * test/test-utils.lisp: Add oracle to specs and list of backends
403 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
404 run-time instantiation of variables in reader macros.
405 * TODO: Remove item already complete. Add note about
408 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
409 * sql/syntax.lisp: added condition to the reader macro to treat [*]
410 as a column identifier (rather than an operation) for CommonSQL
412 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
413 keword args to SELECT, [*] as column identifier, new MAP-QUERY
414 behaviour and the ANY and ALL operators in subqueries.
415 * tests/test-init.lisp: add set-operation and subquery tests to
416 appropriate skip lists.
417 * sql/objects.lisp: remove redundant and non CommonSQL compatible
418 ORDER-BY-DESCENDING keyword argument for SELECT.
419 * sql/classes.lisp: remove redundant and non CommonSQL compatible
420 ORDER-BY-DESCENDING keyword argument for SELECT.
421 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
424 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
425 * sql/db-interface.lisp: Add new db-type-has-union?
426 since Mysql 3.23 does not support unions.
427 * sql/test-init.lisp: Don't try union tests on database
428 backends which do not support it.
429 * db-oracle/*.lisp: initial port to UFFI
430 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
431 implement REFRESH for SELECT.
432 * tests/test-oodml.lisp: Add tests for deferred retrieval,
433 caching, refresh, and update-object-joins
434 * tests/test-init.lisp: Add deferred-employee-address class
436 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
437 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
438 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
439 ALL and EXISTS generate function expressions so they output the
441 * sql/classes.lisp: SELECT now generates appropriate SQL when
442 passed the SET-OPERATION and ALL keyword arguments.
443 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
444 accepts ordering constraints as pairs of the form (column direction)
445 where direction may be :ASC or :DESC.
446 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
447 Correct tests for ANY, SOME, ALL and EXISTS.
448 * tests/test-fdml.lisp: added test for COALESCE.
449 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
450 using funcall unless QUERY-EXPRESSION returns one column and its
451 FLATP slot is not nil in which case apply is used.
452 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
454 * TODO: remove items done.
455 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
456 DATABASE-LIST-ATTRIBUTES.
457 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
458 results in DATABASE-LIST-ATTRIBUTES.
460 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
461 * sql/classes.lisp: SELECT now accepts table identifiers as strings
462 for CommonSQL compliance. Add support for qualified sql identifiers
463 with aliased table names.
464 * tests/test-fdml.lisp: added tests for table identifiers as strings
465 in SELECT and for aliased definitions.
466 * tests/test-syntax.lisp: added tests for alias definitions.
468 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
469 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
470 field-names set to nil.
471 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
472 with null attribute values.
473 * sql/operations.lisp: modify SQL concatenation operator to accept
475 * sql/syntax.lisp: modify sql reader macro function to accept
476 unescaped sql concatenation operator.
477 * tests/test-fdml.lisp: unescape sql concatenation operator.
478 * tests/test-syntax.lisp: unescape sql concatenation operator.
479 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
480 Note to add test for universal-time. Note about difference from
481 CommonSQL in transaction handling.
483 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
484 * tests/test-init.lisp: Add deferred-employee-address
486 * tests/test-oodml.lisp: Add deferred retrieval testgs
488 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
490 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
491 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
492 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
493 * *: Fix minor style warnings
494 * clsql-classic: Remove system and subdirectory
495 * clsql-base: Remove system and subdirectory and
496 fold into clsql system
497 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
498 as supported platform.
500 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
501 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
502 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
503 Allegro 7.0beta AMD64
504 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
505 of ODBC longs since this type can vary on 64-bit platforms depending
506 upon the compilation options of unixODBC.
507 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
508 structures found by testing with AllegroCL 7.0b AMD64.
509 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
510 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
511 Initial caching support for SELECT
512 * tests/test-oodml.lisp: Avoid using cache when testing select.
513 * sql/kmr-mop.lisp: Explicitly check slot order and
514 store as a cl:*feature*
515 * sql/recording.lisp: Remove additional types to
516 increase CommonSQL conformance.
517 * tests/test-init.lisp: Change a :column attribute
518 to test symbols as value
519 * sql/relations.lisp: Remove functions since they don't support
520 many to many relationships.
521 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
522 of add-to-relations function and replace with explicit field settings.
523 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
525 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
527 * LATEST-TEST-RESULTS: results with current version
528 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
529 since cmu19 has opposite order of class slots.
530 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
531 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
533 * tests/test-init.lisp: Check test-database-underlying-type for
536 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
537 * sql/operations.lisp: complete remaining operations for the sql
538 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
539 UNION, INTERSECT, BETWEEN.
540 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
541 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
542 * tests/test-syntax.lisp: add tests for new operations.
543 * tests/test-fdml.lisp: add tests for queries based on new operations.
544 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
545 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
546 * TODO: removed entries done.
548 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
549 * tests/benchmarks.lisp: Add immediate vs. deferred
552 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
553 * Version 2.10.13: Now works on openmcl 0.14.2
554 * sql/objects.lisp: Add :retrieval :immediate for
556 * tests/test-init.lisp: Add non-index fields for testing
557 join class employee-addresss
558 * test/test-oodml.lisp: Add tests for retrieval immediate
559 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
560 values which are now listifed by openmcl 14.2.
561 * sql/objects.lisp: more framework for supporing immediate retrieval
563 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
564 * docs/intro.xml: Upload location of a README file
565 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
566 changing the type-specifier. Use a lisp type of (OR NULL FOO)
567 for a specified-type of FOO unless :db-constraints :not-null.
568 No need to specialize finalize-inheritance for openmcl.
569 * tests/test-*.lisp: Rename fields so that joins occur on
570 fields with different names. This ensures that join code is
571 selecting the proper name.
572 * test/test-init.lisp: Add :base-table for employee-address
573 view class for testing.
574 * sql/objects.lisp: Use view-table rather than name of table
575 in a number of places to fix errors noted with using :base-table.
577 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
578 * sql/objects.lisp: replace *update-records-on-make-instance* with
579 *db-auto-sync* which also controls both automatic creation of
580 new records on creation of new instance and updating of record
581 fields on setting of instance slots (as suggested by Edi Weitz).
582 * tests/test-init.lisp: replace *update-records-on-make-instance*
584 * sql/package.lisp: replace *update-records-on-make-instance*
586 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
587 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
588 and *default-database* in FIND-ALL.
589 * sql/package.lisp: import time functions from CLSQL-BASE.
590 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
591 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
592 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
593 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
596 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
597 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
598 now return a sql-object-query type rather than directly performing a query.
599 This improves CommonSQL conformance.
600 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
601 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
602 depend on sql-object-query-type.
603 * sql/loop-extensions.lisp: Move from base package
604 * classic/package.lisp: remove references to map-query and do-query
606 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
607 * TODO: New section on optimizations, especially optimizing JOINs.
608 * sql/objects.lisp: Have :target-slot return of list of lists rather
609 than a list of cons pairs to be conformant with CommonSQL.
610 Make :target-slot much more efficient by using a SQL inner join
611 statement and just requiring one SQL query. Add :retrieval :deferrred
612 to target-slot joins. Add placeholder for update-objects-join.
613 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
614 and process them for query output-sql.
616 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
618 * base/basic-sql.lisp: Avoid multiple evaluation
619 of query-expression in DO-QUERY
620 * sql/objects.lisp: Make SELECT a normal function.
621 SELECT now accepts type-modified database identifiers, such as
622 [foo :string] which means that the values in column foo are returned
623 as Lisp strings. Add new *update-records-on-make-instance* special
624 variable controlling automatic creation of new instances. Add missing
625 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
626 * sql/packages.lisp: Export *update-records-on-make-instance*
627 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
629 * test/test-fdml.lisp: Add tests for type-modified
630 database identifiers.
631 * test/test-init.lisp: Stop using add-relation since implementing
632 many-to-many joins. Use *update-records-on-make-instance*
633 to automatically store records on instance creation. Add many-to-many
634 employee-address view-class.
636 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
638 * base/loop.lisp: Add object iteration. Use :result-type
639 :auto for result-set. Remove
640 duplicate (and non-correct) code for non-list variables by
641 simply making an atom variable into a list.
642 * sql/package.lisp: Remove unnecessary clsql-sys package
643 and replace it with clsql.
644 * sql/metaclasses.lisp: Properly store specified-type from
645 direct-slot-definition and then store translated type in
646 effective-slot-definition
647 * sql/classes.lisp: Don't output type in sql-output
648 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
649 [foo :integer] as fields in SELECT.
650 * sql/query.lisp: Set default for :result-types to :auto in
652 * sql/objects.lisp: Use specified-type when invocating
653 database-get-type-specifier. def-view-class macro now returns
655 * base/basic-sql.lisp: Make :AUTO the default value for
656 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
657 * sql/objects.lisp: Add bigint type
658 * test/tests-basic.lisp: Add tests for :result-types for
659 MAP-QUERY and DO-QUERY
660 * test/test-fdml.lisp: Add test for result-types in LOOP
661 and also using single symbol rather than a list for variables.
662 Add test that default :result-types is auto for FDML QUERY.
663 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
664 of SQL-IDENT-ATTRIBUTE.
665 * test/test-oodml.lisp: Enable OO loop iteration test,
666 modify it so it doesn't depend on boolean where.
668 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
670 * sql/objects.lisp: added derived type specifier for universal time.
671 * sql/package.lisp: added #:universal-time to clsql-sys exports.
672 * tests/test-oodml.lisp: added test for translation of boolean slots
673 in SELECT with object queries.
675 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
676 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
677 for odbc/postgresql backend.
678 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
679 it can handle NIL values from the ODBC driver
680 * tests/benchmarks.lisp: New file with initial
682 * sql/relations.lisp: fix to add subclassing support,
683 minor optimizations [Edi Weitz]
685 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
687 * base/conditions.lisp: Add *backend-warning-behavior*
689 * db-postgresql-socket/postgresql-socket-sql.lisp:
690 Honor value of *backend-warning-behavior*
691 * tests/test-fdml.lisp: Remove test of raw boolean value
692 since different backends handle this differently. Add
693 test for :column attribute.
694 * tests/test-oodml.lisp: Add tests for boolean slot value
695 and for :void-value attribute
696 * tests/test-init.lisp: Use *backend-warning-behavior*
697 to suppress warnings from postgresql about implicitly
698 creating primary key in tables. Add new address table.
700 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
702 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
703 result-types is :auto
704 * sql/objects.lisp: Properly handled writing/reading Boolean
705 values from SQL database when retrieving objects.
706 * test/test-fdml.lisp: Add another test for boolean results
707 * test/utils.lisp: Fix incorrect declaration
709 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
711 * sql/generics.lisp: add generic function for SELECT.
712 * sql/objects.lisp: make SELECT a method specialisation.
713 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
714 referred to are View Classes.
715 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
716 query-expression arg evaluates to a list, then we have an object
718 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
720 * TODO: remove items done and add a todo for SELECT.
721 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
723 * sql/sql.lisp: add :field-names arg to QUERY.
724 * tests/test-fdml.lisp: minor rework to use :field-names arg to
727 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
728 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
729 or more View Classes.
730 * sql/objects.lisp: make the :flatp argument to SELECT work with
732 * sql/objects.lisp: make SELECT accept a :result-types argument
733 (defaults to :auto) which is passed on to QUERY.
734 * sql/objects.lisp: SELECT returns field-names as a second value.
735 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
736 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
737 to SELECT and take only first value as appropriate.
738 * tests/test-fdml.lisp: add two new tests for query result coercion
739 and the field-names returned as a second value from SELECT.
740 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
742 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
743 * Version 2.10.6-pre1
744 * sql/metaclasses.lisp: Add void-value slot
745 * doc/csql.xml: Update def-view-class documentation
746 * test/test-init.lisp: Change old :db-type to :db-kind.
747 Remove old :nulls-ok attributes.
748 * sql/objects.lisp: Add new universal-time and bigint
749 types. Optimize reading of integers using parse-integer
750 rather than read-from-string.
751 * */*.lisp: Merge clsql-base-sys and clsql-base packages
752 into clsql-base package
753 * classic/sql.lisp: Move large object support into base, leaving
754 classic without any functionality that is provided in the clsql
756 * classic/package.lisp: Rename clsql-classic-sys package to
757 its former nickname of clsql-classic
759 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
760 * Version 2.10.5: SQLite backend now passes all result-types tests
761 * clsql-sqlite.asd: Depend on clsql-uffi system
762 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
763 for efficiency and code reuse.
764 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
765 for better cross-implementation compatibility.
767 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
769 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
771 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
772 bug on SBCL in result-field-names function as reported by Marcus Pearce
773 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
774 manifest in SBCL testing
776 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
778 * sql/database.lisp: Conform more to CommonSQL output
779 for STATUS command [Marcus Pearce]
780 * sql/sqlite-sql.lisp: Rework to use result-types
781 * sql/sqlite-api-clisp.lisp: Add compatibility layer
782 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
783 be cleaned up of most clisp reader conditionals
784 * sql/test-init.lisp: Now run field type tests on sqlite
787 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
789 * base/basic-sql.lisp: Set default value of :result-types
790 to :auto for more CommonSQL conformance.
791 * test/test-fdml.lisp: Add tests for numeric value of fields
794 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
795 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
796 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
797 Return field names as second value for QUERY. This can be overridden
798 for efficiency with the new keyword :FIELD-NAMES set to NIL
799 in the QUERY invocation.
800 * test/test-fdml.lisp: Add tests for new field-name feature
801 * sql/metaclass.lisp: Remove old Lispworks cruft
802 and replace it with invocation of new code in kmr-mop.lisp
803 which actually works with Lispworks 4.2
804 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
806 * base/db-interface.lisp: Document the multiple values
807 returned by DATABASE-ATTRIBUTE-TYPE so matches the
808 undocumented CommonSQL behavior.
809 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
810 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
811 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
812 Implement CACHE-TABLE-QUERIES.
813 * db-odbc/odbc-sql.lisp: Fix attribute-type function
814 * test/test-fddl.lisp: Add tests for attribute type
815 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
817 * base/classes.lisp: Add attribute-cache slot to database clas
818 * base/initialize.lisp: initialize-database-type now automatically
819 loads database-type backend as needed.
820 * base/test-init.lisp: Utilize new initialize-database-type functionality.
821 * TODO: remove items done
823 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
825 * sql/objects.lisp: remove create/drop-sequence-from-class.
826 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
827 * sql/objects.lisp: improved CommonSQL compatibility for
828 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
829 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
830 * sql/generics.lisp: move generics from objects.lisp to here.
832 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
834 * db-mysql/mysql-client-info.lisp: Add client version 4.1
836 * sql/sql.lisp: Make *default-database* the default for
839 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
841 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
843 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
844 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
845 on a metaclass specialized from standard-db-class.
848 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
849 * Version 2.9.4: Multiple changes to support Allegro's "modern"
850 lisp which uses a lowercase reader and has case-sensitive symbols
851 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
852 exposed by case-sensitive mlisp.
854 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
855 * Version 2.9.3: All tests now pass on all platforms!
856 * LATEST-TEST-RESULTS: New file with summary of test results
857 * sql/generics.lisp: New file for generic function definitions.
858 * test/test-init.lisp: Display names of skipped tests.
859 Use unwind-protect to ensure disconnect
860 * sql/objects.lisp: Change database-type to database-underlying-type
861 so that actual database engine is properly identified
862 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
863 return an ISO timestring for compatibility with other drivers.
864 Workaround bug in MyODBC for LIST-TABLE-INDEXES
865 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
866 returns floating-point values for floor and truncate operations
867 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
868 * tests/test-basic.lisp: Port to regression tester
869 * test/test-init.lisp: Output to *report-stream*
870 * docs/appendix.xml: Document ODBC and SQLite backends.
871 * sql/classes.lisp: Make output-sql require a database parameter.
872 This allows SQL generation to have the proper case to support
873 the differences in case handling between CommonSQL API,
874 Postgresql, MySQL, Oracle.
876 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
877 * Version 2.9.2: Improvments in database capability introspection
878 and querying. Support transactions in MySQL where available.
879 All tests now pass on MySQL and SQLite in addition to postgresql
880 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
881 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
882 DATABASE-LIST-SEQUENCES.
883 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
884 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
885 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
886 * tests/*.lisp: Check database capabilities and remove tests which
887 the database backend does not support
888 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
889 controls whether InnoDB tables will be created when supported on
890 the underlying MySQL server.
892 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
893 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
894 supported by all database backends (except AODBC since
895 AODBC doesn't support index querying)
896 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
897 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
898 to support index queries
899 * db-aodbc/aodbc-sql.lisp: Filter driver manager
900 "information_schema" tables from LIST-TABLES
901 * tests/test-basic.lisp: Remove table after testing
902 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
903 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
904 which gets the underlying type of database -- required
905 when dealing with ODBC databases and want to query
906 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
907 as first database-backend specific feature. Is T on
908 :mysql, NIL on other backends. Change DROP-TABLE to
911 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
912 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
914 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
916 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
917 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
919 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
920 * Version 2.8.0: New API function: LIST-DATABASES
921 * base/utils.lisp: Fix command-output on CMUCL/SBCL
922 * db-*/*-sql.lisp: Add new database-list function
923 * base/database.lisp: Add new LIST-DATABASES command
925 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
927 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
928 * db-sqlite/sqlite-api-uffi.lisp: Print error string
931 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
933 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
936 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
938 * base/objects.lisp, base/classes.lisp: Patch
939 for db-kind from Eduardo Munoz
941 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
943 * base/basic-sql.lisp: Fix FLATP in QUERY
945 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
946 * Version 2.7.3: Implement RECONNECT
948 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
949 * Version 2.7.2: Fix ODBC on Lispworks Windows
951 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
952 * Version 2.7.1: Fix for new ODBC backend.
953 clsql-odbc now works on SBCL, CMUCL, OpenMCL
954 in addition to AllegroCL and Lispworks.
956 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
957 * Version 2.7.0: New backend: ODBC. Tests as
958 well as AODBC backend on Allegro,Lispworks.
959 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
960 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
961 to explicitly set ODBC2 support. Add BIGINT support.
962 Add result-types support. Added SQLTables.
963 Fix array type in fetch-all-rows. Make width
964 changable by database or query.
965 * base/utils.lisp: Add process functions
966 * base/package.lisp: Export utils to CLSQL-BASE-SYS
967 * db-aodbc: Implement sequence functions,
968 database-list-tables, database-list-attributes
969 * tests/utils.lisp: Add support for ODBC backend,
970 rework READ-SPECS to use +all-db-types+
971 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
974 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
975 * Version 2.6.13. Requires UFFI version 1.4.9
976 * db-odbc/*.lisp: Further porting.
977 Pre-alpha code! But, basic query is now working.
979 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
981 * base/transactions.lisp: Add quote for macro
982 expansion of WITH-TRANSACTIONS [Time Howe]
983 * db-sqlite/sqlite-sql.lisp: Support memory database
984 in database-probe [Ng Pheng Siong]
985 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
986 The DBI layer is not finished.
988 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
990 * sql/objects.lisp: add :root-class functionality for
991 list-classes and add duration type support [Marcus Pearce]
992 * db-odbc: Add mid-level [DBI] layer
994 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
996 * db-aodbc: Add methods for generic functions, some are
998 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1001 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1003 * base/package.lisp: Add missing symbols [Marcus Pearce]
1005 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1007 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1008 * utils/time.lisp: Multiple fixes [Marcus Pearce]
1009 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1011 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1013 * sql/*.lisp: Remove schema versioning cruft
1015 * Makefile: Add classic subdirectory
1017 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1019 * sql/sql.lisp: Fix TRUNCATE command, bug reported
1021 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1022 specific and easy for an application to directly support.
1023 Idea from Marcus Pearce.
1024 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
1025 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1026 Keep low-level interface for future optimization
1027 supporting LIST-ATTRIBUTE-TYPES command.
1028 * Makefile: Add to db-sqlite and test directories.
1029 Include them in top-level Makefile
1031 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1033 * sql/relations.lisp: Add missing file
1034 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1035 * test/test-time.lips: New file [Marcus Pearce]
1037 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1039 * test/test-init.lisp: Properly handle object
1040 creation. Close database after use.
1041 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
1042 function so can have methods specialized on
1043 table being a string or an sql-table object.
1044 * base/pool.lisp: Really fix CMUCL locking
1046 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1048 * test/test-init.lisp: Signal correctly
1049 if any errors occurred in any test suite
1050 * base/loop-extensions.lisp: Fix error
1051 introduced for Lispworks
1052 * base/pool.lisp: Fix locking for CMUCL
1053 * base/objects.lisp: Remove schema-version cruft
1055 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1056 * Version 2.6.2: New CLSQL API functions:
1057 DESCRIBE-TABLE AND TRUNCATE-DATABASE
1058 Currently, this are only supported on :postgresql
1059 and :postgresql-socket
1060 * base/database.lisp: automatically load ASDF system
1061 in CONNECT if not already loaded
1062 * base/tests.lisp: disconnect database after testing
1063 * base/*.lisp: Remove CLOSED-DATABASE type in favor
1064 of storing open/closed status in slot of database
1065 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
1066 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
1067 DATABASE-DESCRIBE-TABLE
1068 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
1069 * base/conditions: Remove duplicate condition
1070 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
1071 * base/recording.lisp: Add new :QUERY type for recording
1073 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1074 * Version 2.6.1: documentation fixes, merged
1075 classic-tests into tests
1077 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1078 * Version 2.6.0 released: New API functions
1079 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
1080 * doc/ref_clsql.xml: Document new functions
1081 * base/database.lisp: New API functions
1082 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
1083 * base/utils.lisp: Fix use of position-char.
1084 Add COMMAND-OUTPUT used by backends for running
1085 external programs. Fix parsing of SQL*NET-compatible
1087 * base/loop-extension.lisp: Simplify package use
1088 for Lispworks and Allegro
1089 * db-*/*-sql.lisp: Added DATABASE-CREATE,
1090 DATABASE-DESTORY, PROBE-DATABASE methods
1091 * tests/test-init.lisp, clasic-tests/tests.lisp:
1092 Use destroy-database and create-database to ensure
1093 testing with empty database
1094 * tests/test-connection.lisp: Add tests for
1095 parsing of string connection-specs
1096 * examples/run-tests.sh: New file for running
1097 test suite on all installed CL implementations
1098 * examples/clsql-tutorial.lisp: moved from
1100 * examples/dot.clsql-tests.config: New file
1101 giving an example test configuration
1102 * test/README: Add notes about rtest/ptester
1103 downloads and link to sample test configuration file.
1105 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1106 * Version 2.5.1 released:
1107 * tests/*.lisp: Rework so tests are run
1108 on multiple backends automatically based
1109 on the contents of ~/.clsql-tests.config.
1110 Reuse helper functions from classic-tests.
1111 * base/database.lisp: Support connection-spec
1112 as string for CONNECT
1113 * classic-tests/tests.lisp: Automatically
1114 load database backends as needed.
1116 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1117 * Version 2.5.0 released:
1118 All tests for CLSQL and CLSQL-CLASSIC pass
1120 * base/loop-extension.lisp: Add Lispworks
1121 loop-extension. Improve type specifying on
1124 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1125 * Version 2.4.2 released:
1126 loop extension now supported on Allegro, all
1127 CLSQL-TESTS pass on Allegro.
1128 * sql/metaclasses.lisp: Some optimization
1129 of compute-slots, be selective when
1130 ordered-class-slots needs to be called
1131 instead of class-slots
1132 * TODO: add URL with documentation on
1133 extending Lispworks LOOP form
1135 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1136 * Version 2.4.1 released: CLSQL-TESt suite passes
1137 all tests for postgresql and CMUCL, SBCL, OpenMCL.
1138 Allegro and Lispworks pass all tests except for
1139 FDML/LOOP/1 since the loop extension have not yet
1140 been ported to those implementions.
1141 * sql/metaclasses.lisp: Added new slot to standard-db-class
1142 to hold user-specified type. OpenMCL adjustments to compensate
1143 for its type-predicate function. Since AllegroCL, Lispworks,
1144 and OpenMCL have different slot orders, added compute-slots
1145 and ordered-class-slots functions so their slot order matches
1148 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1149 * Version 2.4.0 released: All tests for clsql-classic now finish
1150 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
1151 mysql, postgresql, postgresql-sockets, and sqlite backends.
1152 * db-mysql/mysql-sql.lisp: Fix array dereferencing
1153 * classic-tests/tests.lisp: Fix package name of
1154 number-to-sql-string.
1155 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
1156 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
1157 now passes tests on all support UFFI platforms.
1158 * db-postgresql-socket/postgresql-socket-api.list: Ported to
1160 * multiple: Finish renaming of :types keyword to :result-types for
1161 greater CommonSQL compatibility, including documentation
1162 * sql/basic-cmds.lisp: Remove obsolete file
1164 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1165 * Version 2.3.3 released
1166 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
1167 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
1168 * Fix for schema table [Marcus Pearce]
1169 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
1170 * Fixes to test suite [Marcus Pearce]
1172 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1173 * db-*/*-sql.lisp: Ensure that expr in
1174 database-query-result-set is a string
1175 * Documentation integration
1177 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1178 * With for Marcus Pearce's excellent work, I've merged
1179 his clsql-usql port into clsql. The original clsql
1180 interface is available in the clsql-classic package.
1182 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1183 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
1184 adding further support for providing backend for UncommonSQL
1186 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
1187 * Integrate patch from Aurelio Bignoli for SQLite backend
1189 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
1190 * Converted documentation to XML format
1191 * Made package installable with asdf-install
1193 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
1194 * Add for-each-row macro
1196 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
1197 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
1199 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
1200 * Add support for SBCL, OpenMCL, and SCL
1201 * Add *load-truename* to search path for clsql's
1204 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
1205 * Rework use of file types in .asd files
1207 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
1208 * Add .asd definition files for ASDF users
1210 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1211 * Restructure directories for Common Lisp Controller v3 compatibility
1213 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1214 * Also change case of logical host in loader files
1215 * Rework handling of logical pathnames
1217 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1218 * Change case of logical host
1220 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
1221 * clsql-base.system: Added base package that can be used without
1222 high-level SQL commands. Used for adding support for UncommonSQL.
1223 * *.system: Reworked logical pathnames to be more consistent with
1224 Common Lisp Controller.
1225 * debian/*: Completed initial Debian support
1227 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1229 * sql/transactions.cl:
1230 Added transaction support. Functions/macros added:
1231 with-transaction, commit-transaction, rollback-transaction,
1232 add-transaction-commit-hook, add-transaction-rollback-hook
1234 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1237 * sql/functional.cl:
1238 Added pool support in connect/disconnect and with-database.
1239 Removed with-db-from-pool as with-database can now works with the connections pool
1241 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1246 Completed connection pool.
1247 Added with-db-from-pool macro.
1249 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1251 Added initial support for connection pool
1252 * sql/transactions.cl
1253 Took transaction code from UncommonSQL and integrated
1254 into CLSQL code. See file for disclaimer about why this
1257 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1258 * interfaces/postgresql/postgresql-sql.cl:
1259 Fix keyword typo in database-read-large-object
1260 * interfaces/mysql/mysql-loader.cl
1261 Fix loading on Win32
1262 * test-suite/tester-clsql.cl
1263 Fix type coercion of double-float
1265 Added debian docbook catalog, made it the default
1267 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1268 * interface/postgresql/postgresql-api.cl:
1269 * interface/postgresql/postgresql-sql.cl:
1271 * sql/db-interface.cl:
1272 Added large objects support for postgresql.
1274 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1275 * src/postgresql-socket/postgresql-socket-api.cl:
1276 Fixed find-foreign-function call, eliminated crypt warning
1278 Multiple improvements
1280 Moved functionality from low-level interfaces to this file
1281 via generic functions
1282 * test-suite/tester.cl:
1283 Added test with acl-compat-tester, moved others to old-tests
1286 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1288 Reinstated commented out sections
1289 * interfaces/postgresql/postgresql-loader.cl:
1290 * interfaces/mysql/mysql-loader.cl:
1291 Updated find-forieign-library support.
1292 * interfaces/postgresql-socket/postgresql-socket-package.cl:
1293 Fixed require form for Lispworks (Thanks Marc Battyani!)
1294 * interfaces/postgresql-socket/postgresql-socket-api.cl:
1295 Fixed eval of def-function for crypt library.
1297 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1298 * Added interface to support USQL high-level rouines
1300 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1301 * Separated db-interface and conditions from sql/sql.cl
1302 * Improved foreign library loading testing
1303 * interfaces/postgresql/postgresql-api.cl
1304 Added PQisBusy function
1305 * interfaces/clsql-uffi/clsql-uffi.cl
1306 Fixed sign error for 64-bit processing
1308 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1309 * interfaces/postgresql-socket/postgresql-socket-api.cl:
1310 Fixes to read-double-from-socket. Added 64-bit integer support.
1311 * test-suite/xptest-clsql.cl
1312 Added testint for 64-bit integers
1313 * Additons to installation docs
1315 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1316 * interfaces/postgresql-socket/postgresql-socket-api.cl:
1317 Implemented direct socket reading for field type :double
1318 * Added usage information for :types to documentation
1319 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
1321 * interfaces/clsql-uffi: Created new directory. Split common
1322 interface routines that use UFFI into this package. Required
1323 especially to support direct reading of 64-bit integers into
1324 bignums and bypassing temporary strings.
1325 * test-clsql.cl: Updated to test postgresql-socket's
1326 read-double-from-socket function.
1327 * test-suite/xptest-clsql.cl
1328 Started work on test suite
1330 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1331 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
1332 mysql-fetch-field-direct Got :auto types working
1333 * interfaces/postgresql/postgresql-api.cl
1334 * interfaces/postgresql-socket/postgresql-socket-api.cl
1335 Added pgsql-field-types enum. Got :auto types working.
1337 Renamed :field-types to :types.
1339 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1340 * Added field-types parameter to query, database-query,
1341 database-query-result-set, map-query. Haven't added code
1342 to utilize field types, yet.
1343 * Changed postgresql-socket result set from cons to a structure
1344 * Updated test-clsql.cl to use automated testing with a config
1346 * Changed return types of field accessors from cstring to
1347 (* :unsigned-char). This prepares for being able to use specified
1348 type conversions when taking field data into lisp.
1349 * Added field-type processing for most interfaces. Not done yet.
1351 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1352 * doc/ref.sgml: Updated MAP-QUERY example to use
1353 *read-default-float-format* (John Foderaro)
1354 * Extensive work to foreign library loaders and .system files to
1355 check for successful loading of foreign libraries.
1356 * Modified test-clsql.cl to allow more modularity and
1357 automated testing in future release.
1358 * mysql/mysql-sql.lisp: Added field types
1360 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
1361 * mysql/mysql-sql.lisp:
1362 - Added support for Allegro CL and Lispworks using UFFI layer
1363 - Changed database-connect to use mysql-real-connect. This way,
1364 can avoid using double (unwind-protect)
1365 - Changed database-connect to have MySQL library allocate space
1366 for MYSQL structure. This will make the code more robust in
1367 the event that MySQL library changes the size of the mysql-mysql