1 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
3 changing the type-specifier. Use a lisp type of (OR NULL FOO)
4 for a specified-type of FOO unless :db-constraints :not-null.
5 * tests/test-*.lisp: Rename fields so that joins occur on
6 fields with different names. This ensures that join code is
7 selecting the proper name.
8 * test/test-init.lisp: Add :base-table for employee-address
9 view class for testing.
10 * sql/objects.lisp: Use view-table rather than name of table
11 in a number of places to fix errors noted with using :base-table.
13 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
14 * sql/objects.lisp: replace *update-records-on-make-instance* with
15 *db-auto-sync* which also controls both automatic creation of
16 new records on creation of new instance and updating of record
17 fields on setting of instance slots (as suggested by Edi Weitz).
18 * tests/test-init.lisp: replace *update-records-on-make-instance*
20 * sql/package.lisp: replace *update-records-on-make-instance*
22 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
23 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
24 and *default-database* in FIND-ALL.
25 * sql/package.lisp: import time functions from CLSQL-BASE.
26 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
27 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
28 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
29 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
32 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
33 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
34 now return a sql-object-query type rather than directly performing a query.
35 This improves CommonSQL conformance.
36 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
37 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
38 depend on sql-object-query-type.
39 * sql/loop-extensions.lisp: Move from base package
40 * classic/package.lisp: remove references to map-query and do-query
42 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
43 * TODO: New section on optimizations, especially optimizing JOINs.
44 * sql/objects.lisp: Have :target-slot return of list of lists rather
45 than a list of cons pairs to be conformant with CommonSQL.
46 Make :target-slot much more efficient by using a SQL inner join
47 statement and just requiring one SQL query. Add :retrieval :deferrred
48 to target-slot joins. Add placeholder for update-objects-join.
49 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
50 and process them for query output-sql.
52 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
54 * base/basic-sql.lisp: Avoid multiple evaluation
55 of query-expression in DO-QUERY
56 * sql/objects.lisp: Make SELECT a normal function.
57 SELECT now accepts type-modified database identifiers, such as
58 [foo :string] which means that the values in column foo are returned
59 as Lisp strings. Add new *update-records-on-make-instance* special
60 variable controlling automatic creation of new instances. Add missing
61 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
62 * sql/packages.lisp: Export *update-records-on-make-instance*
63 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
65 * test/test-fdml.lisp: Add tests for type-modified
67 * test/test-init.lisp: Stop using add-relation since implementing
68 many-to-many joins. Use *update-records-on-make-instance*
69 to automatically store records on instance creation. Add many-to-many
70 employee-address view-class.
72 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
74 * base/loop.lisp: Add object iteration. Use :result-type
75 :auto for result-set. Remove
76 duplicate (and non-correct) code for non-list variables by
77 simply making an atom variable into a list.
78 * sql/package.lisp: Remove unnecessary clsql-sys package
79 and replace it with clsql.
80 * sql/metaclasses.lisp: Properly store specified-type from
81 direct-slot-definition and then store translated type in
82 effective-slot-definition
83 * sql/classes.lisp: Don't output type in sql-output
84 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
85 [foo :integer] as fields in SELECT.
86 * sql/query.lisp: Set default for :result-types to :auto in
88 * sql/objects.lisp: Use specified-type when invocating
89 database-get-type-specifier. def-view-class macro now returns
91 * base/basic-sql.lisp: Make :AUTO the default value for
92 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
93 * sql/objects.lisp: Add bigint type
94 * test/tests-basic.lisp: Add tests for :result-types for
95 MAP-QUERY and DO-QUERY
96 * test/test-fdml.lisp: Add test for result-types in LOOP
97 and also using single symbol rather than a list for variables.
98 Add test that default :result-types is auto for FDML QUERY.
99 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
100 of SQL-IDENT-ATTRIBUTE.
101 * test/test-oodml.lisp: Enable OO loop iteration test,
102 modify it so it doesn't depend on boolean where.
104 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
106 * sql/objects.lisp: added derived type specifier for universal time.
107 * sql/package.lisp: added #:universal-time to clsql-sys exports.
108 * tests/test-oodml.lisp: added test for translation of boolean slots
109 in SELECT with object queries.
111 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
112 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
113 for odbc/postgresql backend.
114 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
115 it can handle NIL values from the ODBC driver
116 * tests/benchmarks.lisp: New file with initial
118 * sql/relations.lisp: fix to add subclassing support,
119 minor optimizations [Edi Weitz]
121 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
123 * base/conditions.lisp: Add *backend-warning-behavior*
125 * db-postgresql-socket/postgresql-socket-sql.lisp:
126 Honor value of *backend-warning-behavior*
127 * tests/test-fdml.lisp: Remove test of raw boolean value
128 since different backends handle this differently. Add
129 test for :column attribute.
130 * tests/test-oodml.lisp: Add tests for boolean slot value
131 and for :void-value attribute
132 * tests/test-init.lisp: Use *backend-warning-behavior*
133 to suppress warnings from postgresql about implicitly
134 creating primary key in tables. Add new address table.
136 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
138 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
139 result-types is :auto
140 * sql/objects.lisp: Properly handled writing/reading Boolean
141 values from SQL database when retrieving objects.
142 * test/test-fdml.lisp: Add another test for boolean results
143 * test/utils.lisp: Fix incorrect declaration
145 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
147 * sql/generics.lisp: add generic function for SELECT.
148 * sql/objects.lisp: make SELECT a method specialisation.
149 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
150 referred to are View Classes.
151 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
152 query-expression arg evaluates to a list, then we have an object
154 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
156 * TODO: remove items done and add a todo for SELECT.
157 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
159 * sql/sql.lisp: add :field-names arg to QUERY.
160 * tests/test-fdml.lisp: minor rework to use :field-names arg to
163 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
164 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
165 or more View Classes.
166 * sql/objects.lisp: make the :flatp argument to SELECT work with
168 * sql/objects.lisp: make SELECT accept a :result-types argument
169 (defaults to :auto) which is passed on to QUERY.
170 * sql/objects.lisp: SELECT returns field-names as a second value.
171 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
172 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
173 to SELECT and take only first value as appropriate.
174 * tests/test-fdml.lisp: add two new tests for query result coercion
175 and the field-names returned as a second value from SELECT.
176 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
178 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
179 * Version 2.10.6-pre1
180 * sql/metaclasses.lisp: Add void-value slot
181 * doc/csql.xml: Update def-view-class documentation
182 * test/test-init.lisp: Change old :db-type to :db-kind.
183 Remove old :nulls-ok attributes.
184 * sql/objects.lisp: Add new universal-time and bigint
185 types. Optimize reading of integers using parse-integer
186 rather than read-from-string.
187 * */*.lisp: Merge clsql-base-sys and clsql-base packages
188 into clsql-base package
189 * classic/sql.lisp: Move large object support into base, leaving
190 classic without any functionality that is provided in the clsql
192 * classic/package.lisp: Rename clsql-classic-sys package to
193 its former nickname of clsql-classic
195 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
196 * Version 2.10.5: SQLite backend now passes all result-types tests
197 * clsql-sqlite.asd: Depend on clsql-uffi system
198 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
199 for efficiency and code reuse.
200 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
201 for better cross-implementation compatibility.
203 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
205 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
207 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
208 bug on SBCL in result-field-names function as reported by Marcus Pearce
209 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
210 manifest in SBCL testing
212 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
214 * sql/database.lisp: Conform more to CommonSQL output
215 for STATUS command [Marcus Pearce]
216 * sql/sqlite-sql.lisp: Rework to use result-types
217 * sql/sqlite-api-clisp.lisp: Add compatibility layer
218 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
219 be cleaned up of most clisp reader conditionals
220 * sql/test-init.lisp: Now run field type tests on sqlite
223 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
225 * base/basic-sql.lisp: Set default value of :result-types
226 to :auto for more CommonSQL conformance.
227 * test/test-fdml.lisp: Add tests for numeric value of fields
230 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
231 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
232 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
233 Return field names as second value for QUERY. This can be overridden
234 for efficiency with the new keyword :FIELD-NAMES set to NIL
235 in the QUERY invocation.
236 * test/test-fdml.lisp: Add tests for new field-name feature
237 * sql/metaclass.lisp: Remove old Lispworks cruft
238 and replace it with invocation of new code in kmr-mop.lisp
239 which actually works with Lispworks 4.2
240 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
242 * base/db-interface.lisp: Document the multiple values
243 returned by DATABASE-ATTRIBUTE-TYPE so matches the
244 undocumented CommonSQL behavior.
245 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
246 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
247 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
248 Implement CACHE-TABLE-QUERIES.
249 * db-odbc/odbc-sql.lisp: Fix attribute-type function
250 * test/test-fddl.lisp: Add tests for attribute type
251 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
253 * base/classes.lisp: Add attribute-cache slot to database clas
254 * base/initialize.lisp: initialize-database-type now automatically
255 loads database-type backend as needed.
256 * base/test-init.lisp: Utilize new initialize-database-type functionality.
257 * TODO: remove items done
259 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
261 * sql/objects.lisp: remove create/drop-sequence-from-class.
262 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
263 * sql/objects.lisp: improved CommonSQL compatibility for
264 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
265 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
266 * sql/generics.lisp: move generics from objects.lisp to here.
268 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
270 * db-mysql/mysql-client-info.lisp: Add client version 4.1
272 * sql/sql.lisp: Make *default-database* the default for
275 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
277 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
279 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
280 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
281 on a metaclass specialized from standard-db-class.
284 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
285 * Version 2.9.4: Multiple changes to support Allegro's "modern"
286 lisp which uses a lowercase reader and has case-sensitive symbols
287 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
288 exposed by case-sensitive mlisp.
290 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
291 * Version 2.9.3: All tests now pass on all platforms!
292 * LATEST-TEST-RESULTS: New file with summary of test results
293 * sql/generics.lisp: New file for generic function definitions.
294 * test/test-init.lisp: Display names of skipped tests.
295 Use unwind-protect to ensure disconnect
296 * sql/objects.lisp: Change database-type to database-underlying-type
297 so that actual database engine is properly identified
298 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
299 return an ISO timestring for compatibility with other drivers.
300 Workaround bug in MyODBC for LIST-TABLE-INDEXES
301 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
302 returns floating-point values for floor and truncate operations
303 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
304 * tests/test-basic.lisp: Port to regression tester
305 * test/test-init.lisp: Output to *report-stream*
306 * docs/appendix.xml: Document ODBC and SQLite backends.
307 * sql/classes.lisp: Make output-sql require a database parameter.
308 This allows SQL generation to have the proper case to support
309 the differences in case handling between CommonSQL API,
310 Postgresql, MySQL, Oracle.
312 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
313 * Version 2.9.2: Improvments in database capability introspection
314 and querying. Support transactions in MySQL where available.
315 All tests now pass on MySQL and SQLite in addition to postgresql
316 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
317 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
318 DATABASE-LIST-SEQUENCES.
319 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
320 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
321 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
322 * tests/*.lisp: Check database capabilities and remove tests which
323 the database backend does not support
324 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
325 controls whether InnoDB tables will be created when supported on
326 the underlying MySQL server.
328 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
329 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
330 supported by all database backends (except AODBC since
331 AODBC doesn't support index querying)
332 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
333 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
334 to support index queries
335 * db-aodbc/aodbc-sql.lisp: Filter driver manager
336 "information_schema" tables from LIST-TABLES
337 * tests/test-basic.lisp: Remove table after testing
338 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
339 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
340 which gets the underlying type of database -- required
341 when dealing with ODBC databases and want to query
342 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
343 as first database-backend specific feature. Is T on
344 :mysql, NIL on other backends. Change DROP-TABLE to
347 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
348 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
350 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
352 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
353 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
355 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
356 * Version 2.8.0: New API function: LIST-DATABASES
357 * base/utils.lisp: Fix command-output on CMUCL/SBCL
358 * db-*/*-sql.lisp: Add new database-list function
359 * base/database.lisp: Add new LIST-DATABASES command
361 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
363 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
364 * db-sqlite/sqlite-api-uffi.lisp: Print error string
367 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
369 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
372 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
374 * base/objects.lisp, base/classes.lisp: Patch
375 for db-kind from Eduardo Munoz
377 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
379 * base/basic-sql.lisp: Fix FLATP in QUERY
381 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
382 * Version 2.7.3: Implement RECONNECT
384 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
385 * Version 2.7.2: Fix ODBC on Lispworks Windows
387 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
388 * Version 2.7.1: Fix for new ODBC backend.
389 clsql-odbc now works on SBCL, CMUCL, OpenMCL
390 in addition to AllegroCL and Lispworks.
392 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
393 * Version 2.7.0: New backend: ODBC. Tests as
394 well as AODBC backend on Allegro,Lispworks.
395 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
396 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
397 to explicitly set ODBC2 support. Add BIGINT support.
398 Add result-types support. Added SQLTables.
399 Fix array type in fetch-all-rows. Make width
400 changable by database or query.
401 * base/utils.lisp: Add process functions
402 * base/package.lisp: Export utils to CLSQL-BASE-SYS
403 * db-aodbc: Implement sequence functions,
404 database-list-tables, database-list-attributes
405 * tests/utils.lisp: Add support for ODBC backend,
406 rework READ-SPECS to use +all-db-types+
407 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
410 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
411 * Version 2.6.13. Requires UFFI version 1.4.9
412 * db-odbc/*.lisp: Further porting.
413 Pre-alpha code! But, basic query is now working.
415 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
417 * base/transactions.lisp: Add quote for macro
418 expansion of WITH-TRANSACTIONS [Time Howe]
419 * db-sqlite/sqlite-sql.lisp: Support memory database
420 in database-probe [Ng Pheng Siong]
421 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
422 The DBI layer is not finished.
424 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
426 * sql/objects.lisp: add :root-class functionality for
427 list-classes and add duration type support [Marcus Pearce]
428 * db-odbc: Add mid-level [DBI] layer
430 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
432 * db-aodbc: Add methods for generic functions, some are
434 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
437 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
439 * base/package.lisp: Add missing symbols [Marcus Pearce]
441 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
443 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
444 * utils/time.lisp: Multiple fixes [Marcus Pearce]
445 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
447 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
449 * sql/*.lisp: Remove schema versioning cruft
451 * Makefile: Add classic subdirectory
453 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
455 * sql/sql.lisp: Fix TRUNCATE command, bug reported
457 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
458 specific and easy for an application to directly support.
459 Idea from Marcus Pearce.
460 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
461 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
462 Keep low-level interface for future optimization
463 supporting LIST-ATTRIBUTE-TYPES command.
464 * Makefile: Add to db-sqlite and test directories.
465 Include them in top-level Makefile
467 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
469 * sql/relations.lisp: Add missing file
470 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
471 * test/test-time.lips: New file [Marcus Pearce]
473 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
475 * test/test-init.lisp: Properly handle object
476 creation. Close database after use.
477 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
478 function so can have methods specialized on
479 table being a string or an sql-table object.
480 * base/pool.lisp: Really fix CMUCL locking
482 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
484 * test/test-init.lisp: Signal correctly
485 if any errors occurred in any test suite
486 * base/loop-extensions.lisp: Fix error
487 introduced for Lispworks
488 * base/pool.lisp: Fix locking for CMUCL
489 * base/objects.lisp: Remove schema-version cruft
491 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
492 * Version 2.6.2: New CLSQL API functions:
493 DESCRIBE-TABLE AND TRUNCATE-DATABASE
494 Currently, this are only supported on :postgresql
495 and :postgresql-socket
496 * base/database.lisp: automatically load ASDF system
497 in CONNECT if not already loaded
498 * base/tests.lisp: disconnect database after testing
499 * base/*.lisp: Remove CLOSED-DATABASE type in favor
500 of storing open/closed status in slot of database
501 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
502 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
503 DATABASE-DESCRIBE-TABLE
504 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
505 * base/conditions: Remove duplicate condition
506 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
507 * base/recording.lisp: Add new :QUERY type for recording
509 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
510 * Version 2.6.1: documentation fixes, merged
511 classic-tests into tests
513 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
514 * Version 2.6.0 released: New API functions
515 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
516 * doc/ref_clsql.xml: Document new functions
517 * base/database.lisp: New API functions
518 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
519 * base/utils.lisp: Fix use of position-char.
520 Add COMMAND-OUTPUT used by backends for running
521 external programs. Fix parsing of SQL*NET-compatible
523 * base/loop-extension.lisp: Simplify package use
524 for Lispworks and Allegro
525 * db-*/*-sql.lisp: Added DATABASE-CREATE,
526 DATABASE-DESTORY, PROBE-DATABASE methods
527 * tests/test-init.lisp, clasic-tests/tests.lisp:
528 Use destroy-database and create-database to ensure
529 testing with empty database
530 * tests/test-connection.lisp: Add tests for
531 parsing of string connection-specs
532 * examples/run-tests.sh: New file for running
533 test suite on all installed CL implementations
534 * examples/clsql-tutorial.lisp: moved from
536 * examples/dot.clsql-tests.config: New file
537 giving an example test configuration
538 * test/README: Add notes about rtest/ptester
539 downloads and link to sample test configuration file.
541 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
542 * Version 2.5.1 released:
543 * tests/*.lisp: Rework so tests are run
544 on multiple backends automatically based
545 on the contents of ~/.clsql-tests.config.
546 Reuse helper functions from classic-tests.
547 * base/database.lisp: Support connection-spec
548 as string for CONNECT
549 * classic-tests/tests.lisp: Automatically
550 load database backends as needed.
552 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
553 * Version 2.5.0 released:
554 All tests for CLSQL and CLSQL-CLASSIC pass
556 * base/loop-extension.lisp: Add Lispworks
557 loop-extension. Improve type specifying on
560 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
561 * Version 2.4.2 released:
562 loop extension now supported on Allegro, all
563 CLSQL-TESTS pass on Allegro.
564 * sql/metaclasses.lisp: Some optimization
565 of compute-slots, be selective when
566 ordered-class-slots needs to be called
567 instead of class-slots
568 * TODO: add URL with documentation on
569 extending Lispworks LOOP form
571 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
572 * Version 2.4.1 released: CLSQL-TESt suite passes
573 all tests for postgresql and CMUCL, SBCL, OpenMCL.
574 Allegro and Lispworks pass all tests except for
575 FDML/LOOP/1 since the loop extension have not yet
576 been ported to those implementions.
577 * sql/metaclasses.lisp: Added new slot to standard-db-class
578 to hold user-specified type. OpenMCL adjustments to compensate
579 for its type-predicate function. Since AllegroCL, Lispworks,
580 and OpenMCL have different slot orders, added compute-slots
581 and ordered-class-slots functions so their slot order matches
584 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
585 * Version 2.4.0 released: All tests for clsql-classic now finish
586 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
587 mysql, postgresql, postgresql-sockets, and sqlite backends.
588 * db-mysql/mysql-sql.lisp: Fix array dereferencing
589 * classic-tests/tests.lisp: Fix package name of
590 number-to-sql-string.
591 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
592 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
593 now passes tests on all support UFFI platforms.
594 * db-postgresql-socket/postgresql-socket-api.list: Ported to
596 * multiple: Finish renaming of :types keyword to :result-types for
597 greater CommonSQL compatibility, including documentation
598 * sql/basic-cmds.lisp: Remove obsolete file
600 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
601 * Version 2.3.3 released
602 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
603 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
604 * Fix for schema table [Marcus Pearce]
605 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
606 * Fixes to test suite [Marcus Pearce]
608 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
609 * db-*/*-sql.lisp: Ensure that expr in
610 database-query-result-set is a string
611 * Documentation integration
613 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
614 * With for Marcus Pearce's excellent work, I've merged
615 his clsql-usql port into clsql. The original clsql
616 interface is available in the clsql-classic package.
618 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
619 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
620 adding further support for providing backend for UncommonSQL
622 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
623 * Integrate patch from Aurelio Bignoli for SQLite backend
625 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
626 * Converted documentation to XML format
627 * Made package installable with asdf-install
629 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
630 * Add for-each-row macro
632 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
633 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
635 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
636 * Add support for SBCL, OpenMCL, and SCL
637 * Add *load-truename* to search path for clsql's
640 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
641 * Rework use of file types in .asd files
643 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
644 * Add .asd definition files for ASDF users
646 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
647 * Restructure directories for Common Lisp Controller v3 compatibility
649 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
650 * Also change case of logical host in loader files
651 * Rework handling of logical pathnames
653 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
654 * Change case of logical host
656 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
657 * clsql-base.system: Added base package that can be used without
658 high-level SQL commands. Used for adding support for UncommonSQL.
659 * *.system: Reworked logical pathnames to be more consistent with
660 Common Lisp Controller.
661 * debian/*: Completed initial Debian support
663 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
665 * sql/transactions.cl:
666 Added transaction support. Functions/macros added:
667 with-transaction, commit-transaction, rollback-transaction,
668 add-transaction-commit-hook, add-transaction-rollback-hook
670 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
674 Added pool support in connect/disconnect and with-database.
675 Removed with-db-from-pool as with-database can now works with the connections pool
677 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
682 Completed connection pool.
683 Added with-db-from-pool macro.
685 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
687 Added initial support for connection pool
688 * sql/transactions.cl
689 Took transaction code from UncommonSQL and integrated
690 into CLSQL code. See file for disclaimer about why this
693 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
694 * interfaces/postgresql/postgresql-sql.cl:
695 Fix keyword typo in database-read-large-object
696 * interfaces/mysql/mysql-loader.cl
698 * test-suite/tester-clsql.cl
699 Fix type coercion of double-float
701 Added debian docbook catalog, made it the default
703 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
704 * interface/postgresql/postgresql-api.cl:
705 * interface/postgresql/postgresql-sql.cl:
707 * sql/db-interface.cl:
708 Added large objects support for postgresql.
710 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
711 * src/postgresql-socket/postgresql-socket-api.cl:
712 Fixed find-foreign-function call, eliminated crypt warning
714 Multiple improvements
716 Moved functionality from low-level interfaces to this file
717 via generic functions
718 * test-suite/tester.cl:
719 Added test with acl-compat-tester, moved others to old-tests
722 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
724 Reinstated commented out sections
725 * interfaces/postgresql/postgresql-loader.cl:
726 * interfaces/mysql/mysql-loader.cl:
727 Updated find-forieign-library support.
728 * interfaces/postgresql-socket/postgresql-socket-package.cl:
729 Fixed require form for Lispworks (Thanks Marc Battyani!)
730 * interfaces/postgresql-socket/postgresql-socket-api.cl:
731 Fixed eval of def-function for crypt library.
733 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
734 * Added interface to support USQL high-level rouines
736 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
737 * Separated db-interface and conditions from sql/sql.cl
738 * Improved foreign library loading testing
739 * interfaces/postgresql/postgresql-api.cl
740 Added PQisBusy function
741 * interfaces/clsql-uffi/clsql-uffi.cl
742 Fixed sign error for 64-bit processing
744 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
745 * interfaces/postgresql-socket/postgresql-socket-api.cl:
746 Fixes to read-double-from-socket. Added 64-bit integer support.
747 * test-suite/xptest-clsql.cl
748 Added testint for 64-bit integers
749 * Additons to installation docs
751 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
752 * interfaces/postgresql-socket/postgresql-socket-api.cl:
753 Implemented direct socket reading for field type :double
754 * Added usage information for :types to documentation
755 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
757 * interfaces/clsql-uffi: Created new directory. Split common
758 interface routines that use UFFI into this package. Required
759 especially to support direct reading of 64-bit integers into
760 bignums and bypassing temporary strings.
761 * test-clsql.cl: Updated to test postgresql-socket's
762 read-double-from-socket function.
763 * test-suite/xptest-clsql.cl
764 Started work on test suite
766 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
767 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
768 mysql-fetch-field-direct Got :auto types working
769 * interfaces/postgresql/postgresql-api.cl
770 * interfaces/postgresql-socket/postgresql-socket-api.cl
771 Added pgsql-field-types enum. Got :auto types working.
773 Renamed :field-types to :types.
775 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
776 * Added field-types parameter to query, database-query,
777 database-query-result-set, map-query. Haven't added code
778 to utilize field types, yet.
779 * Changed postgresql-socket result set from cons to a structure
780 * Updated test-clsql.cl to use automated testing with a config
782 * Changed return types of field accessors from cstring to
783 (* :unsigned-char). This prepares for being able to use specified
784 type conversions when taking field data into lisp.
785 * Added field-type processing for most interfaces. Not done yet.
787 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
788 * doc/ref.sgml: Updated MAP-QUERY example to use
789 *read-default-float-format* (John Foderaro)
790 * Extensive work to foreign library loaders and .system files to
791 check for successful loading of foreign libraries.
792 * Modified test-clsql.cl to allow more modularity and
793 automated testing in future release.
794 * mysql/mysql-sql.lisp: Added field types
796 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
797 * mysql/mysql-sql.lisp:
798 - Added support for Allegro CL and Lispworks using UFFI layer
799 - Changed database-connect to use mysql-real-connect. This way,
800 can avoid using double (unwind-protect)
801 - Changed database-connect to have MySQL library allocate space
802 for MYSQL structure. This will make the code more robust in
803 the event that MySQL library changes the size of the mysql-mysql