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