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