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