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