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