1 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2 * db-oracle/oracle-api: Add OCIServerVersion
3 * db-oracle/oracle-sql: Query and store server version on connect
4 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
5 function to handle OCI's lack of bigint support
6 * test/test-basic.lisp: Separate bigint testing
7 * test/test-utils.lisp: Add oracle to specs and list of backends
9 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
10 run-time instantiation of variables in reader macros.
11 * TODO: Remove item already complete. Add note about
14 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
15 * sql/syntax.lisp: added condition to the reader macro to treat [*]
16 as a column identifier (rather than an operation) for CommonSQL
18 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
19 keword args to SELECT, [*] as column identifier, new MAP-QUERY
20 behaviour and the ANY and ALL operators in subqueries.
21 * tests/test-init.lisp: add set-operation and subquery tests to
22 appropriate skip lists.
23 * sql/objects.lisp: remove redundant and non CommonSQL compatible
24 ORDER-BY-DESCENDING keyword argument for SELECT.
25 * sql/classes.lisp: remove redundant and non CommonSQL compatible
26 ORDER-BY-DESCENDING keyword argument for SELECT.
27 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
30 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
31 * sql/db-interface.lisp: Add new db-type-has-union?
32 since Mysql 3.23 does not support unions.
33 * sql/test-init.lisp: Don't try union tests on database
34 backends which do not support it.
35 * db-oracle/*.lisp: initial port to UFFI
36 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
37 implement REFRESH for SELECT.
38 * tests/test-oodml.lisp: Add tests for deferred retrieval,
39 caching, refresh, and update-object-joins
40 * tests/test-init.lisp: Add deferred-employee-address class
42 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
43 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
44 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
45 ALL and EXISTS generate function expressions so they output the
47 * sql/classes.lisp: SELECT now generates appropriate SQL when
48 passed the SET-OPERATION and ALL keyword arguments.
49 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
50 accepts ordering constraints as pairs of the form (column direction)
51 where direction may be :ASC or :DESC.
52 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
53 Correct tests for ANY, SOME, ALL and EXISTS.
54 * tests/test-fdml.lisp: added test for COALESCE.
55 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
56 using funcall unless QUERY-EXPRESSION returns one column and its
57 FLATP slot is not nil in which case apply is used.
58 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
60 * TODO: remove items done.
61 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
62 DATABASE-LIST-ATTRIBUTES.
63 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
64 results in DATABASE-LIST-ATTRIBUTES.
66 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
67 * sql/classes.lisp: SELECT now accepts table identifiers as strings
68 for CommonSQL compliance. Add support for qualified sql identifiers
69 with aliased table names.
70 * tests/test-fdml.lisp: added tests for table identifiers as strings
71 in SELECT and for aliased definitions.
72 * tests/test-syntax.lisp: added tests for alias definitions.
74 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
75 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
76 field-names set to nil.
77 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
78 with null attribute values.
79 * sql/operations.lisp: modify SQL concatenation operator to accept
81 * sql/syntax.lisp: modify sql reader macro function to accept
82 unescaped sql concatenation operator.
83 * tests/test-fdml.lisp: unescape sql concatenation operator.
84 * tests/test-syntax.lisp: unescape sql concatenation operator.
85 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
86 Note to add test for universal-time. Note about difference from
87 CommonSQL in transaction handling.
89 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
90 * tests/test-init.lisp: Add deferred-employee-address
92 * tests/test-oodml.lisp: Add deferred retrieval testgs
94 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
96 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
97 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
98 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
99 * *: Fix minor style warnings
100 * clsql-classic: Remove system and subdirectory
101 * clsql-base: Remove system and subdirectory and
102 fold into clsql system
103 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
104 as supported platform.
106 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
107 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
108 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
109 Allegro 7.0beta AMD64
110 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
111 of ODBC longs since this type can vary on 64-bit platforms depending
112 upon the compilation options of unixODBC.
113 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
114 structures found by testing with AllegroCL 7.0b AMD64.
115 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
116 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
117 Initial caching support for SELECT
118 * tests/test-oodml.lisp: Avoid using cache when testing select.
119 * sql/kmr-mop.lisp: Explicitly check slot order and
120 store as a cl:*feature*
121 * sql/recording.lisp: Remove additional types to
122 increase CommonSQL conformance.
123 * tests/test-init.lisp: Change a :column attribute
124 to test symbols as value
125 * sql/relations.lisp: Remove functions since they don't support
126 many to many relationships.
127 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
128 of add-to-relations function and replace with explicit field settings.
129 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
131 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
133 * LATEST-TEST-RESULTS: results with current version
134 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
135 since cmu19 has opposite order of class slots.
136 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
137 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
139 * tests/test-init.lisp: Check test-database-underlying-type for
142 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
143 * sql/operations.lisp: complete remaining operations for the sql
144 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
145 UNION, INTERSECT, BETWEEN.
146 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
147 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
148 * tests/test-syntax.lisp: add tests for new operations.
149 * tests/test-fdml.lisp: add tests for queries based on new operations.
150 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
151 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
152 * TODO: removed entries done.
154 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
155 * tests/benchmarks.lisp: Add immediate vs. deferred
158 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
159 * Version 2.10.13: Now works on openmcl 0.14.2
160 * sql/objects.lisp: Add :retrieval :immediate for
162 * tests/test-init.lisp: Add non-index fields for testing
163 join class employee-addresss
164 * test/test-oodml.lisp: Add tests for retrieval immediate
165 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
166 values which are now listifed by openmcl 14.2.
167 * sql/objects.lisp: more framework for supporing immediate retrieval
169 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
170 * docs/intro.xml: Upload location of a README file
171 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
172 changing the type-specifier. Use a lisp type of (OR NULL FOO)
173 for a specified-type of FOO unless :db-constraints :not-null.
174 No need to specialize finalize-inheritance for openmcl.
175 * tests/test-*.lisp: Rename fields so that joins occur on
176 fields with different names. This ensures that join code is
177 selecting the proper name.
178 * test/test-init.lisp: Add :base-table for employee-address
179 view class for testing.
180 * sql/objects.lisp: Use view-table rather than name of table
181 in a number of places to fix errors noted with using :base-table.
183 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
184 * sql/objects.lisp: replace *update-records-on-make-instance* with
185 *db-auto-sync* which also controls both automatic creation of
186 new records on creation of new instance and updating of record
187 fields on setting of instance slots (as suggested by Edi Weitz).
188 * tests/test-init.lisp: replace *update-records-on-make-instance*
190 * sql/package.lisp: replace *update-records-on-make-instance*
192 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
193 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
194 and *default-database* in FIND-ALL.
195 * sql/package.lisp: import time functions from CLSQL-BASE.
196 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
197 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
198 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
199 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
202 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
203 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
204 now return a sql-object-query type rather than directly performing a query.
205 This improves CommonSQL conformance.
206 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
207 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
208 depend on sql-object-query-type.
209 * sql/loop-extensions.lisp: Move from base package
210 * classic/package.lisp: remove references to map-query and do-query
212 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
213 * TODO: New section on optimizations, especially optimizing JOINs.
214 * sql/objects.lisp: Have :target-slot return of list of lists rather
215 than a list of cons pairs to be conformant with CommonSQL.
216 Make :target-slot much more efficient by using a SQL inner join
217 statement and just requiring one SQL query. Add :retrieval :deferrred
218 to target-slot joins. Add placeholder for update-objects-join.
219 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
220 and process them for query output-sql.
222 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
224 * base/basic-sql.lisp: Avoid multiple evaluation
225 of query-expression in DO-QUERY
226 * sql/objects.lisp: Make SELECT a normal function.
227 SELECT now accepts type-modified database identifiers, such as
228 [foo :string] which means that the values in column foo are returned
229 as Lisp strings. Add new *update-records-on-make-instance* special
230 variable controlling automatic creation of new instances. Add missing
231 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
232 * sql/packages.lisp: Export *update-records-on-make-instance*
233 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
235 * test/test-fdml.lisp: Add tests for type-modified
236 database identifiers.
237 * test/test-init.lisp: Stop using add-relation since implementing
238 many-to-many joins. Use *update-records-on-make-instance*
239 to automatically store records on instance creation. Add many-to-many
240 employee-address view-class.
242 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
244 * base/loop.lisp: Add object iteration. Use :result-type
245 :auto for result-set. Remove
246 duplicate (and non-correct) code for non-list variables by
247 simply making an atom variable into a list.
248 * sql/package.lisp: Remove unnecessary clsql-sys package
249 and replace it with clsql.
250 * sql/metaclasses.lisp: Properly store specified-type from
251 direct-slot-definition and then store translated type in
252 effective-slot-definition
253 * sql/classes.lisp: Don't output type in sql-output
254 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
255 [foo :integer] as fields in SELECT.
256 * sql/query.lisp: Set default for :result-types to :auto in
258 * sql/objects.lisp: Use specified-type when invocating
259 database-get-type-specifier. def-view-class macro now returns
261 * base/basic-sql.lisp: Make :AUTO the default value for
262 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
263 * sql/objects.lisp: Add bigint type
264 * test/tests-basic.lisp: Add tests for :result-types for
265 MAP-QUERY and DO-QUERY
266 * test/test-fdml.lisp: Add test for result-types in LOOP
267 and also using single symbol rather than a list for variables.
268 Add test that default :result-types is auto for FDML QUERY.
269 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
270 of SQL-IDENT-ATTRIBUTE.
271 * test/test-oodml.lisp: Enable OO loop iteration test,
272 modify it so it doesn't depend on boolean where.
274 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
276 * sql/objects.lisp: added derived type specifier for universal time.
277 * sql/package.lisp: added #:universal-time to clsql-sys exports.
278 * tests/test-oodml.lisp: added test for translation of boolean slots
279 in SELECT with object queries.
281 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
282 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
283 for odbc/postgresql backend.
284 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
285 it can handle NIL values from the ODBC driver
286 * tests/benchmarks.lisp: New file with initial
288 * sql/relations.lisp: fix to add subclassing support,
289 minor optimizations [Edi Weitz]
291 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
293 * base/conditions.lisp: Add *backend-warning-behavior*
295 * db-postgresql-socket/postgresql-socket-sql.lisp:
296 Honor value of *backend-warning-behavior*
297 * tests/test-fdml.lisp: Remove test of raw boolean value
298 since different backends handle this differently. Add
299 test for :column attribute.
300 * tests/test-oodml.lisp: Add tests for boolean slot value
301 and for :void-value attribute
302 * tests/test-init.lisp: Use *backend-warning-behavior*
303 to suppress warnings from postgresql about implicitly
304 creating primary key in tables. Add new address table.
306 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
308 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
309 result-types is :auto
310 * sql/objects.lisp: Properly handled writing/reading Boolean
311 values from SQL database when retrieving objects.
312 * test/test-fdml.lisp: Add another test for boolean results
313 * test/utils.lisp: Fix incorrect declaration
315 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
317 * sql/generics.lisp: add generic function for SELECT.
318 * sql/objects.lisp: make SELECT a method specialisation.
319 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
320 referred to are View Classes.
321 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
322 query-expression arg evaluates to a list, then we have an object
324 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
326 * TODO: remove items done and add a todo for SELECT.
327 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
329 * sql/sql.lisp: add :field-names arg to QUERY.
330 * tests/test-fdml.lisp: minor rework to use :field-names arg to
333 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
334 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
335 or more View Classes.
336 * sql/objects.lisp: make the :flatp argument to SELECT work with
338 * sql/objects.lisp: make SELECT accept a :result-types argument
339 (defaults to :auto) which is passed on to QUERY.
340 * sql/objects.lisp: SELECT returns field-names as a second value.
341 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
342 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
343 to SELECT and take only first value as appropriate.
344 * tests/test-fdml.lisp: add two new tests for query result coercion
345 and the field-names returned as a second value from SELECT.
346 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
348 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
349 * Version 2.10.6-pre1
350 * sql/metaclasses.lisp: Add void-value slot
351 * doc/csql.xml: Update def-view-class documentation
352 * test/test-init.lisp: Change old :db-type to :db-kind.
353 Remove old :nulls-ok attributes.
354 * sql/objects.lisp: Add new universal-time and bigint
355 types. Optimize reading of integers using parse-integer
356 rather than read-from-string.
357 * */*.lisp: Merge clsql-base-sys and clsql-base packages
358 into clsql-base package
359 * classic/sql.lisp: Move large object support into base, leaving
360 classic without any functionality that is provided in the clsql
362 * classic/package.lisp: Rename clsql-classic-sys package to
363 its former nickname of clsql-classic
365 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
366 * Version 2.10.5: SQLite backend now passes all result-types tests
367 * clsql-sqlite.asd: Depend on clsql-uffi system
368 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
369 for efficiency and code reuse.
370 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
371 for better cross-implementation compatibility.
373 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
375 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
377 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
378 bug on SBCL in result-field-names function as reported by Marcus Pearce
379 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
380 manifest in SBCL testing
382 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
384 * sql/database.lisp: Conform more to CommonSQL output
385 for STATUS command [Marcus Pearce]
386 * sql/sqlite-sql.lisp: Rework to use result-types
387 * sql/sqlite-api-clisp.lisp: Add compatibility layer
388 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
389 be cleaned up of most clisp reader conditionals
390 * sql/test-init.lisp: Now run field type tests on sqlite
393 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
395 * base/basic-sql.lisp: Set default value of :result-types
396 to :auto for more CommonSQL conformance.
397 * test/test-fdml.lisp: Add tests for numeric value of fields
400 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
401 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
402 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
403 Return field names as second value for QUERY. This can be overridden
404 for efficiency with the new keyword :FIELD-NAMES set to NIL
405 in the QUERY invocation.
406 * test/test-fdml.lisp: Add tests for new field-name feature
407 * sql/metaclass.lisp: Remove old Lispworks cruft
408 and replace it with invocation of new code in kmr-mop.lisp
409 which actually works with Lispworks 4.2
410 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
412 * base/db-interface.lisp: Document the multiple values
413 returned by DATABASE-ATTRIBUTE-TYPE so matches the
414 undocumented CommonSQL behavior.
415 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
416 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
417 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
418 Implement CACHE-TABLE-QUERIES.
419 * db-odbc/odbc-sql.lisp: Fix attribute-type function
420 * test/test-fddl.lisp: Add tests for attribute type
421 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
423 * base/classes.lisp: Add attribute-cache slot to database clas
424 * base/initialize.lisp: initialize-database-type now automatically
425 loads database-type backend as needed.
426 * base/test-init.lisp: Utilize new initialize-database-type functionality.
427 * TODO: remove items done
429 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
431 * sql/objects.lisp: remove create/drop-sequence-from-class.
432 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
433 * sql/objects.lisp: improved CommonSQL compatibility for
434 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
435 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
436 * sql/generics.lisp: move generics from objects.lisp to here.
438 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
440 * db-mysql/mysql-client-info.lisp: Add client version 4.1
442 * sql/sql.lisp: Make *default-database* the default for
445 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
447 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
449 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
450 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
451 on a metaclass specialized from standard-db-class.
454 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
455 * Version 2.9.4: Multiple changes to support Allegro's "modern"
456 lisp which uses a lowercase reader and has case-sensitive symbols
457 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
458 exposed by case-sensitive mlisp.
460 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
461 * Version 2.9.3: All tests now pass on all platforms!
462 * LATEST-TEST-RESULTS: New file with summary of test results
463 * sql/generics.lisp: New file for generic function definitions.
464 * test/test-init.lisp: Display names of skipped tests.
465 Use unwind-protect to ensure disconnect
466 * sql/objects.lisp: Change database-type to database-underlying-type
467 so that actual database engine is properly identified
468 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
469 return an ISO timestring for compatibility with other drivers.
470 Workaround bug in MyODBC for LIST-TABLE-INDEXES
471 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
472 returns floating-point values for floor and truncate operations
473 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
474 * tests/test-basic.lisp: Port to regression tester
475 * test/test-init.lisp: Output to *report-stream*
476 * docs/appendix.xml: Document ODBC and SQLite backends.
477 * sql/classes.lisp: Make output-sql require a database parameter.
478 This allows SQL generation to have the proper case to support
479 the differences in case handling between CommonSQL API,
480 Postgresql, MySQL, Oracle.
482 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
483 * Version 2.9.2: Improvments in database capability introspection
484 and querying. Support transactions in MySQL where available.
485 All tests now pass on MySQL and SQLite in addition to postgresql
486 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
487 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
488 DATABASE-LIST-SEQUENCES.
489 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
490 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
491 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
492 * tests/*.lisp: Check database capabilities and remove tests which
493 the database backend does not support
494 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
495 controls whether InnoDB tables will be created when supported on
496 the underlying MySQL server.
498 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
499 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
500 supported by all database backends (except AODBC since
501 AODBC doesn't support index querying)
502 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
503 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
504 to support index queries
505 * db-aodbc/aodbc-sql.lisp: Filter driver manager
506 "information_schema" tables from LIST-TABLES
507 * tests/test-basic.lisp: Remove table after testing
508 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
509 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
510 which gets the underlying type of database -- required
511 when dealing with ODBC databases and want to query
512 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
513 as first database-backend specific feature. Is T on
514 :mysql, NIL on other backends. Change DROP-TABLE to
517 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
518 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
520 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
522 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
523 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
525 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
526 * Version 2.8.0: New API function: LIST-DATABASES
527 * base/utils.lisp: Fix command-output on CMUCL/SBCL
528 * db-*/*-sql.lisp: Add new database-list function
529 * base/database.lisp: Add new LIST-DATABASES command
531 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
533 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
534 * db-sqlite/sqlite-api-uffi.lisp: Print error string
537 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
539 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
542 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
544 * base/objects.lisp, base/classes.lisp: Patch
545 for db-kind from Eduardo Munoz
547 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
549 * base/basic-sql.lisp: Fix FLATP in QUERY
551 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
552 * Version 2.7.3: Implement RECONNECT
554 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
555 * Version 2.7.2: Fix ODBC on Lispworks Windows
557 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
558 * Version 2.7.1: Fix for new ODBC backend.
559 clsql-odbc now works on SBCL, CMUCL, OpenMCL
560 in addition to AllegroCL and Lispworks.
562 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
563 * Version 2.7.0: New backend: ODBC. Tests as
564 well as AODBC backend on Allegro,Lispworks.
565 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
566 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
567 to explicitly set ODBC2 support. Add BIGINT support.
568 Add result-types support. Added SQLTables.
569 Fix array type in fetch-all-rows. Make width
570 changable by database or query.
571 * base/utils.lisp: Add process functions
572 * base/package.lisp: Export utils to CLSQL-BASE-SYS
573 * db-aodbc: Implement sequence functions,
574 database-list-tables, database-list-attributes
575 * tests/utils.lisp: Add support for ODBC backend,
576 rework READ-SPECS to use +all-db-types+
577 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
580 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
581 * Version 2.6.13. Requires UFFI version 1.4.9
582 * db-odbc/*.lisp: Further porting.
583 Pre-alpha code! But, basic query is now working.
585 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
587 * base/transactions.lisp: Add quote for macro
588 expansion of WITH-TRANSACTIONS [Time Howe]
589 * db-sqlite/sqlite-sql.lisp: Support memory database
590 in database-probe [Ng Pheng Siong]
591 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
592 The DBI layer is not finished.
594 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
596 * sql/objects.lisp: add :root-class functionality for
597 list-classes and add duration type support [Marcus Pearce]
598 * db-odbc: Add mid-level [DBI] layer
600 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
602 * db-aodbc: Add methods for generic functions, some are
604 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
607 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
609 * base/package.lisp: Add missing symbols [Marcus Pearce]
611 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
613 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
614 * utils/time.lisp: Multiple fixes [Marcus Pearce]
615 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
617 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
619 * sql/*.lisp: Remove schema versioning cruft
621 * Makefile: Add classic subdirectory
623 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
625 * sql/sql.lisp: Fix TRUNCATE command, bug reported
627 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
628 specific and easy for an application to directly support.
629 Idea from Marcus Pearce.
630 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
631 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
632 Keep low-level interface for future optimization
633 supporting LIST-ATTRIBUTE-TYPES command.
634 * Makefile: Add to db-sqlite and test directories.
635 Include them in top-level Makefile
637 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
639 * sql/relations.lisp: Add missing file
640 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
641 * test/test-time.lips: New file [Marcus Pearce]
643 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
645 * test/test-init.lisp: Properly handle object
646 creation. Close database after use.
647 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
648 function so can have methods specialized on
649 table being a string or an sql-table object.
650 * base/pool.lisp: Really fix CMUCL locking
652 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
654 * test/test-init.lisp: Signal correctly
655 if any errors occurred in any test suite
656 * base/loop-extensions.lisp: Fix error
657 introduced for Lispworks
658 * base/pool.lisp: Fix locking for CMUCL
659 * base/objects.lisp: Remove schema-version cruft
661 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
662 * Version 2.6.2: New CLSQL API functions:
663 DESCRIBE-TABLE AND TRUNCATE-DATABASE
664 Currently, this are only supported on :postgresql
665 and :postgresql-socket
666 * base/database.lisp: automatically load ASDF system
667 in CONNECT if not already loaded
668 * base/tests.lisp: disconnect database after testing
669 * base/*.lisp: Remove CLOSED-DATABASE type in favor
670 of storing open/closed status in slot of database
671 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
672 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
673 DATABASE-DESCRIBE-TABLE
674 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
675 * base/conditions: Remove duplicate condition
676 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
677 * base/recording.lisp: Add new :QUERY type for recording
679 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
680 * Version 2.6.1: documentation fixes, merged
681 classic-tests into tests
683 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
684 * Version 2.6.0 released: New API functions
685 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
686 * doc/ref_clsql.xml: Document new functions
687 * base/database.lisp: New API functions
688 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
689 * base/utils.lisp: Fix use of position-char.
690 Add COMMAND-OUTPUT used by backends for running
691 external programs. Fix parsing of SQL*NET-compatible
693 * base/loop-extension.lisp: Simplify package use
694 for Lispworks and Allegro
695 * db-*/*-sql.lisp: Added DATABASE-CREATE,
696 DATABASE-DESTORY, PROBE-DATABASE methods
697 * tests/test-init.lisp, clasic-tests/tests.lisp:
698 Use destroy-database and create-database to ensure
699 testing with empty database
700 * tests/test-connection.lisp: Add tests for
701 parsing of string connection-specs
702 * examples/run-tests.sh: New file for running
703 test suite on all installed CL implementations
704 * examples/clsql-tutorial.lisp: moved from
706 * examples/dot.clsql-tests.config: New file
707 giving an example test configuration
708 * test/README: Add notes about rtest/ptester
709 downloads and link to sample test configuration file.
711 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
712 * Version 2.5.1 released:
713 * tests/*.lisp: Rework so tests are run
714 on multiple backends automatically based
715 on the contents of ~/.clsql-tests.config.
716 Reuse helper functions from classic-tests.
717 * base/database.lisp: Support connection-spec
718 as string for CONNECT
719 * classic-tests/tests.lisp: Automatically
720 load database backends as needed.
722 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
723 * Version 2.5.0 released:
724 All tests for CLSQL and CLSQL-CLASSIC pass
726 * base/loop-extension.lisp: Add Lispworks
727 loop-extension. Improve type specifying on
730 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
731 * Version 2.4.2 released:
732 loop extension now supported on Allegro, all
733 CLSQL-TESTS pass on Allegro.
734 * sql/metaclasses.lisp: Some optimization
735 of compute-slots, be selective when
736 ordered-class-slots needs to be called
737 instead of class-slots
738 * TODO: add URL with documentation on
739 extending Lispworks LOOP form
741 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
742 * Version 2.4.1 released: CLSQL-TESt suite passes
743 all tests for postgresql and CMUCL, SBCL, OpenMCL.
744 Allegro and Lispworks pass all tests except for
745 FDML/LOOP/1 since the loop extension have not yet
746 been ported to those implementions.
747 * sql/metaclasses.lisp: Added new slot to standard-db-class
748 to hold user-specified type. OpenMCL adjustments to compensate
749 for its type-predicate function. Since AllegroCL, Lispworks,
750 and OpenMCL have different slot orders, added compute-slots
751 and ordered-class-slots functions so their slot order matches
754 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
755 * Version 2.4.0 released: All tests for clsql-classic now finish
756 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
757 mysql, postgresql, postgresql-sockets, and sqlite backends.
758 * db-mysql/mysql-sql.lisp: Fix array dereferencing
759 * classic-tests/tests.lisp: Fix package name of
760 number-to-sql-string.
761 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
762 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
763 now passes tests on all support UFFI platforms.
764 * db-postgresql-socket/postgresql-socket-api.list: Ported to
766 * multiple: Finish renaming of :types keyword to :result-types for
767 greater CommonSQL compatibility, including documentation
768 * sql/basic-cmds.lisp: Remove obsolete file
770 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
771 * Version 2.3.3 released
772 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
773 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
774 * Fix for schema table [Marcus Pearce]
775 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
776 * Fixes to test suite [Marcus Pearce]
778 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
779 * db-*/*-sql.lisp: Ensure that expr in
780 database-query-result-set is a string
781 * Documentation integration
783 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
784 * With for Marcus Pearce's excellent work, I've merged
785 his clsql-usql port into clsql. The original clsql
786 interface is available in the clsql-classic package.
788 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
789 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
790 adding further support for providing backend for UncommonSQL
792 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
793 * Integrate patch from Aurelio Bignoli for SQLite backend
795 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
796 * Converted documentation to XML format
797 * Made package installable with asdf-install
799 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
800 * Add for-each-row macro
802 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
803 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
805 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
806 * Add support for SBCL, OpenMCL, and SCL
807 * Add *load-truename* to search path for clsql's
810 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
811 * Rework use of file types in .asd files
813 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
814 * Add .asd definition files for ASDF users
816 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
817 * Restructure directories for Common Lisp Controller v3 compatibility
819 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
820 * Also change case of logical host in loader files
821 * Rework handling of logical pathnames
823 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
824 * Change case of logical host
826 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
827 * clsql-base.system: Added base package that can be used without
828 high-level SQL commands. Used for adding support for UncommonSQL.
829 * *.system: Reworked logical pathnames to be more consistent with
830 Common Lisp Controller.
831 * debian/*: Completed initial Debian support
833 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
835 * sql/transactions.cl:
836 Added transaction support. Functions/macros added:
837 with-transaction, commit-transaction, rollback-transaction,
838 add-transaction-commit-hook, add-transaction-rollback-hook
840 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
844 Added pool support in connect/disconnect and with-database.
845 Removed with-db-from-pool as with-database can now works with the connections pool
847 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
852 Completed connection pool.
853 Added with-db-from-pool macro.
855 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
857 Added initial support for connection pool
858 * sql/transactions.cl
859 Took transaction code from UncommonSQL and integrated
860 into CLSQL code. See file for disclaimer about why this
863 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
864 * interfaces/postgresql/postgresql-sql.cl:
865 Fix keyword typo in database-read-large-object
866 * interfaces/mysql/mysql-loader.cl
868 * test-suite/tester-clsql.cl
869 Fix type coercion of double-float
871 Added debian docbook catalog, made it the default
873 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
874 * interface/postgresql/postgresql-api.cl:
875 * interface/postgresql/postgresql-sql.cl:
877 * sql/db-interface.cl:
878 Added large objects support for postgresql.
880 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
881 * src/postgresql-socket/postgresql-socket-api.cl:
882 Fixed find-foreign-function call, eliminated crypt warning
884 Multiple improvements
886 Moved functionality from low-level interfaces to this file
887 via generic functions
888 * test-suite/tester.cl:
889 Added test with acl-compat-tester, moved others to old-tests
892 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
894 Reinstated commented out sections
895 * interfaces/postgresql/postgresql-loader.cl:
896 * interfaces/mysql/mysql-loader.cl:
897 Updated find-forieign-library support.
898 * interfaces/postgresql-socket/postgresql-socket-package.cl:
899 Fixed require form for Lispworks (Thanks Marc Battyani!)
900 * interfaces/postgresql-socket/postgresql-socket-api.cl:
901 Fixed eval of def-function for crypt library.
903 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
904 * Added interface to support USQL high-level rouines
906 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
907 * Separated db-interface and conditions from sql/sql.cl
908 * Improved foreign library loading testing
909 * interfaces/postgresql/postgresql-api.cl
910 Added PQisBusy function
911 * interfaces/clsql-uffi/clsql-uffi.cl
912 Fixed sign error for 64-bit processing
914 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
915 * interfaces/postgresql-socket/postgresql-socket-api.cl:
916 Fixes to read-double-from-socket. Added 64-bit integer support.
917 * test-suite/xptest-clsql.cl
918 Added testint for 64-bit integers
919 * Additons to installation docs
921 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
922 * interfaces/postgresql-socket/postgresql-socket-api.cl:
923 Implemented direct socket reading for field type :double
924 * Added usage information for :types to documentation
925 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
927 * interfaces/clsql-uffi: Created new directory. Split common
928 interface routines that use UFFI into this package. Required
929 especially to support direct reading of 64-bit integers into
930 bignums and bypassing temporary strings.
931 * test-clsql.cl: Updated to test postgresql-socket's
932 read-double-from-socket function.
933 * test-suite/xptest-clsql.cl
934 Started work on test suite
936 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
937 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
938 mysql-fetch-field-direct Got :auto types working
939 * interfaces/postgresql/postgresql-api.cl
940 * interfaces/postgresql-socket/postgresql-socket-api.cl
941 Added pgsql-field-types enum. Got :auto types working.
943 Renamed :field-types to :types.
945 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
946 * Added field-types parameter to query, database-query,
947 database-query-result-set, map-query. Haven't added code
948 to utilize field types, yet.
949 * Changed postgresql-socket result set from cons to a structure
950 * Updated test-clsql.cl to use automated testing with a config
952 * Changed return types of field accessors from cstring to
953 (* :unsigned-char). This prepares for being able to use specified
954 type conversions when taking field data into lisp.
955 * Added field-type processing for most interfaces. Not done yet.
957 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
958 * doc/ref.sgml: Updated MAP-QUERY example to use
959 *read-default-float-format* (John Foderaro)
960 * Extensive work to foreign library loaders and .system files to
961 check for successful loading of foreign libraries.
962 * Modified test-clsql.cl to allow more modularity and
963 automated testing in future release.
964 * mysql/mysql-sql.lisp: Added field types
966 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
967 * mysql/mysql-sql.lisp:
968 - Added support for Allegro CL and Lispworks using UFFI layer
969 - Changed database-connect to use mysql-real-connect. This way,
970 can avoid using double (unwind-protect)
971 - Changed database-connect to have MySQL library allocate space
972 for MYSQL structure. This will make the code more robust in
973 the event that MySQL library changes the size of the mysql-mysql