1 2014-02-24 Russ Tyndall <russ@acceleration.net>
3 an error in type declarations generating a compilation warning
4 was being treated as an error in recent SBCLs, fixed the type
5 warning by correcting the type (still a ton of compliation
8 2014-02-23 Russ Tyndall <russ@acceleration.net>
10 made reinitialize-instance return the instance passed to it as
11 SBCL now expected (mentioned on the SBCL-devel mailing list by
14 2014-12-03 Russ Tyndall <russ@acceleration.net>
16 Added database arg to `canonicalize-result-types` so that it could
17 correctly call `sqlite-aref` with the required number of arguments
18 Thanks Zach Beane for the bug report.
20 2014-07-29 Russ Tyndall <russ@acceleration.net>
21 * mysql-api.lisp, mysql-sql.lisp, test-connection.lisp
22 Added code to the mysql backend to pull all result sets as
23 multiple args. This fixes a bug in the mysql backend where trying
24 to query after executing a stored procedure (even on a pooled
25 connection) would raise an error about the connection being out of
26 sync. The second result set for the stored procedure seems to be
27 empty, so not sure why we need to iterate past it.
29 patch / bugreport provided by: Ilya Khaprov deadtrickster@github
31 2014-06-11 Russ Tyndall <russ@acceleration.net>
32 * databases.lisp, sqlite3-sql.lisp
33 Similar to and overriding the patch 2014-01-30 937a3d, adds a
34 default-encoding variable uses that in places where a nil encoding
35 was being passed. Defaults to :utf-8. This is mostly in place so
36 that uffi and cffi both work similarly (by moving the default into
37 clsql instead of clsql-uffi). This allows my automated build
38 environment to do its job
40 2014-06-10 Russ Tyndall <russ@acceleration.net>
42 * db-mysql/Makefile - the results of dpkg-buildflags --get LDFLAGS
43 seem to have changed on my system and and sed was returning
44 invalid command line arguments to ld. To resolve this I changed
45 sed to emit valid args, which seems to have resolved the issue.
47 2014-04-24 Russ Tyndall <russ@acceleration.net>
48 * oodml.lisp, test-oodml.lisp Better handling of view-slots of
49 type symbol/keyword. Better handling of printing and reading
50 bindings (per mailing list request, always read and write in base
53 2014-03-04 Kevin Rosenberg <kevin@rosenberg.net>
54 * Version 6.5.0: New release
55 * makefile.common: Check for /usr/bin/dpkg-buildflags
56 * {db-mysql,uffi}/Makefile: Use debian buildflags
58 2014-02-24 Russ Tyndall <russ@acceleration.net>
59 * oodml.lisp bind *print-length* to nil before printing
60 lists/arrays to the database.
62 2014-01-30 Russ Tyndall <russ@acceleration.net>
63 * sqlite3-sql.lisp specify :utf-8 as the default encoding if there
64 is not one (allows :clsql-cffi to be closer to working for this
67 I ran the test suite successfully once with :clsql-cffi, but there
68 after I got spurious errors and especially unrecoverable errors
69 while connecting about the database being locked
71 2014-01-30 Russ Tyndall <russ@acceleration.net>
72 * sqlite3-sql.lisp, fddl.lisp Dont compare database-identifiers
73 with invalid comparison operators
75 2014-01-30 Russ Tyndall <russ@acceleration.net>
76 * generic-odbc.lisp, ooddl.lisp, generic-postgresql.lisp,
77 test-init.lisp, ds-nodes.lisp, generic-odbc.lisp, odbc-sql.lisp
79 auto-increment-column support improvement (mssql esp, now will
80 auto-fill after insert). Use +auto-increment-names+ to determine
81 auto-increment-column-p.
83 This triggered much test failing as regards normalized classes /
84 autoincrement primary key stuff.
86 New odbc-postgresql-database sub-type
88 POSSIBLY BREAKING CHANGES:
89 1 ) Previously all classes in a normalized heirachy had their p-key
90 marked as "auto-increment". Usually auto-increment means a key
91 supplied by the database system, so this was decidedly
92 non-standard usage (clsql is explicitly providing the key for all
93 normalized subclasses of any given parent see ds-nodes.lisp). Some
94 RDMS will not allow insertion/updates of autoincrement columns
95 without hoop jumping and, as it doesnt really make much sense, I
96 removed the "auto-increment" aspects of normalized sub-classes.
97 Now the primary keys are chained regardless. The parent-most key
98 can be autoincrement or not.
100 2 ) ODBC Postgresql connections are now both GENERIC-ODBC-DATABASE
101 and GENERIC-POSTGRESQL-DATABASE. Probably not a widely used path,
102 but this change allows most of the previously failing tests to
103 pass on this backend (we now format stuff correctly for postgres).
104 I anticipate this probably is not perfect yet (IE: I probably
107 2014-01-29 Russ Tyndall <russ@acceleration.net>
108 * oodml.lisp, generics.lisp - added
109 clsql-sys::view-classes-and-storable-slots generic (added method
110 previously). Also added to-database-p keyword to allow overrides
111 to distinguish between the two situations. Mostly so that
112 clsql-helper:dirty-slots-mixin can filter slots when writing
113 values to the database but still allow all slots to be read from
116 2014-01-17 Russ Tyndall <russ@acceleration.net>
117 * oodml.lisp, generics.lisp - added filter-select-list generic
118 to allow fine grained control of generated query/object mappings
120 2014-01-07 Russ Tyndall <russ@acceleration.net>
121 * clsql-uffi.lisp, sqlite3 auto-increment support
122 * clsql-uffi.lisp, test-basic.lisp, fixes related to unsigned vs
123 signed ints (thanks Aaron Burrow)
124 * cleaning and testing
126 2013-09-27 Russ Tyndall <russ@acceleration.net>
127 * fixed bug converting to boolean in db-mysql/mysql-sql.lisp
128 from github user Sectoid https://github.com/UnwashedMeme/clsql/pull/1
130 2013-06-19 Russ Tyndall <russ@acceleration.net>
131 * sql/oodml.lisp, db-postgresql-socket3/sql.lisp,
132 db-mysql/mysql-objects.lisp, sql/generic-odbc.lisp
133 Refactored read-sql-value similar to the other recent refactorings
135 * the symbol case now uses intern instead of read-from-string
136 (which may not return a symbol and could have security issues
137 since read-eval was not being unset)
139 * read-eval is now off for all cases
141 * centralized logic into a single case statement, hopefully making
142 this more readable and debuggable
144 * TODO: make these refactorings to the oracle backend (I cannot
145 test against oracle and am loathe to change without testing
147 2013-06-19 Russ Tyndall <russ@acceleration.net>
148 * sql/mysql-objects.lisp
149 Found and refactored a way some more eql specified methods of
150 database-get-type-specifier in mysql
152 2013-06-18 Russ Tyndall <russ@acceleration.net>
153 * sql/oodml.lisp, sql/mysql-objects.lisp
154 refactored database-output-sql-as-type in a similar fashion to
155 the previous refactor of database-get-type-specifier (fewer
156 methods using case instead of eql specifiers)
158 * removed very strange definition of outputing floats as strings
159 for something sane (it was previously doing silly work like
160 setting the default read float type (which AFAICT doesnt affect
163 * half of the cases nil returned "" other times it returned nil,
164 now if we get a null value we return nil always
166 * removed odd-logic (seemingly untouched since the initial import),
167 that removed null characters from printed lists. If we have #\null
168 in a printed list, we had probably better figure out what went wrong
169 there rather than destructively modifying the list output on the way
170 to the DB ;; removed (substitute-char-string escaped #\Null " ")
172 2013-06-18 Russ Tyndall <russ@acceleration.net>
173 * sql/generic-odbc.lisp, sql/generic-postgresql.lisp, sql/oodml.lisp
176 refactored database-get-type-specifier for postgres and mssql
178 Single methods with a case on the symbol arg (similar to the recent
179 refactoring in oodml.lisp)
181 This reduces line count and generally makes it easier to find and
182 read all the backend-specific types
184 2013-06-10 Russ Tyndall <russ@acceleration.net>
185 * sql/oodml.lisp, sql/generic-postgresql.lisp, doc/ref-fddl.xml,
188 Updated get-database-type-specifier to handle text/longchar type
191 * added a warning above defaulting to VARCHAR (since its probably
192 NOT what is expected on a bad type specifier).
194 * added a case where the specified type being a string, passes
195 that string directly (to better/more easily allow db-specific
198 * added cases where longchar or text converts to text, and
199 exported those symbols (as this seemed type seemed to be missing
200 from fddl/oddl anyway).
202 * reorganized these default methods into a single method with a
203 case statement rather than many eql specified methods (about half
206 * updated the docs to use text instead of longchar since text is
207 a more standard db-type (pg,my,and ms all use text)
209 2013-11-23 Kiss Kalman <kami@zalaszam.hu>
210 * utils/sql.lisp: Commit patch adding ccl getenv support
212 2013-04-17 Kevin Rosenberg <kevin@rosenberg.net>
214 * sql/utils.lisp: Patch from Ben Hyde to add weak hash table
217 2013-03-07 Ryan Davis <ryan@acceleration.net>
218 * db-postgresql-socket/postgresql-socket-api.lisp - bugfix to
219 adapt to changes in md5:md5sum-sequence. CLSQL now requires a
220 version of MD5 released on or after 2012-11-25 (the latest version
221 currenty in quicklisp). Thanks to Nicolas Neuss for the bug
223 * db-odbc/odbc-sql.lisp - keep a reference to the original
224 connection spec used to create `odbc-database` connections
226 2013-01-09 Russ Tyndall <russ@acceleration.net>
227 sql/oodml.lisp - changed view-classes-and-storable-slots to a
228 method (as it was intended to be all along)
230 2012-12-19 Kevin Rosenberg <kevin@rosenberg.net>
233 2012-11-20 Russ Tyndall <russ@acceleration.net>
234 ## Large refactoring of sql/oodml.lisp and surrounding code
235 * cleaned up update-records-from-* to utilize a single codepath
236 previously there was much duplicate code
237 * tried to further unify direct/effective slot-defs
238 * cleaned up much of the normalized classes code to be more
239 consistent in how it operated, and the code it used (less
240 copy/paste more functions)
241 * tried to standardize iteration a bit, previously almost all
242 of the iteration constructs in CL were used. Tried to
243 standardize on loop for readability / cohesiveness
244 * made functions to more easily look up particular slots, since
245 this was being done differently in each function
246 * added more doc-strings and updated documentation about
248 * inner-joins that are referenced in where clauses are no longer
249 added to the select table list (since they are also referenced
250 in the join position and this led to sql errors)
251 * collect-table-references methods added for sql-ident-table and
255 * disallow where-less updates from objects (ie cannot call
256 update-records-from* with a keyless object)
257 * ordered-class-direct-slots now returns direct-slot-definitions
258 instead of effective-slot-definitions (as per name)
259 * direct-slot-definitions now contain the db-info hash table (same
261 * removed this-class arg from update-instance-from-records - used to
262 be used for normalized code, no longer needed for that.
263 * find-all - bug fixes in table references, previously where clauses
264 surrounded by a list would have none of their references added to
265 the select. This was being exploited by certain code paths. Now
266 all where clauses are searched
267 - No longer includes order-by and distinct as columns in the select
268 list. The values seemed to be ignored in every code path and distinct
269 seemed to be intended to be used as a boolean anyway
272 2012-11-20 Nathan Bird <nathan@acceleration.net>
274 * update-objects-joins - changed the default of slot from t (which
275 used to mean :deferred) to :immediate (to match the default
276 behavior of other parts of the system). It also seemed like a bad
277 default to pull all the slots that were explicitly specified to be
278 not pulled by default. This function now accepts more special
279 values (:immediate, :deferred, :all, or a list of slots). To get
280 the old behavior call with :slots :deferred.
283 2012-10-30 Russ Tyndall <russ@acceleration.net>
284 * sql/command-object.lisp - added dates/times to the parameter value
285 coersion and pulled this into a new generic prepare-sql-parameter
287 2012-09-04 Kevin Rosenberg <kevin@rosenberg.net>
288 * Version 6.3 released
290 2012-09-04 Russ Tyndall <russ@acceleration.net>
291 * sql/expressions.lisp - Try to respect the casing of symbols
292 where it seems intentional (ie: is not default). This should fix
293 a failing test case, and I think behaves more understandibly.
295 If you specify a casing '|Foo Bar| lets treat that a string "Foo Bar"
296 and output it escaped
298 2012-08-28 Ryan Davis <ryan@acceleration.net>
299 * db-sqlite3/sqlite3-api.lisp - allow pathnames in the connection
300 settings, so '("/db/my.sqlite") and '(#P"/db/my.sqlite") are
301 equivalent. Updated the docs to match.
303 2012-08-17 Russ Tyndall <russ@acceleration.net>
304 * db-postgresql-socket3/package.lisp - shadow
305 postgresql-notification for compatibility with new
306 cl-postgres (Thanks Zach)
308 2012-07-09 Russ Tyndall <russ@acceleration.net>
309 * sql/oodml.lisp - fixed a bug where the order by was being
310 destructively modified, causing odd caching issues when the
311 selected object was not statically known (eg unreferenced tables
312 could show up in the query if they were cached by a previous call
313 through this function. I replaced this code with a
314 non-destructive variant which should solve this.
316 Thanks to Philipp Marek for the bug report
318 2012-06-25 Russ Tyndall <russ@acceleration.net>
319 * sql/util.lisp, sql/metaclasses.lisp
320 Dequote database-identifiers if needed (passed a quoted symbol)
321 Metaclass args come through unquoted, so this eases interactions
324 2012-06-22 Russ Tyndall <russ@acceleration.net>
325 * sql/metaclasses.lisp: Changed compute-effective-slot-definition
326 to correctly copy the autoincrement-sequence slot to the ESD
327 previously it was being skipped (seemingly by accident). Thanks
328 to flip214 on #lisp for the bug report
330 2012-04-26 Kevin Rosenberg <kevin@rosenberg.net>
331 * Version 6.2 released: thanks to all the contributors!
333 2012-04-25 Nathan Bird <nathan@acceleration.net>
335 * doc/threading-warnings.txt: Adding some notes from J.T.Klein
336 about the current state of thread-safety in clsql. This should be
337 incorporated into the main docs at some point.
339 2012-04-25 Russ Tyndall <russ@acceleration.net>
340 * sql/expressions.lisp (output-sql): on rendering update/insert
341 expression values, ensure that *in-subselect* is bound to T
342 so that the values will be correctly paren delimited
344 2012-04-24 Nathan Bird <nathan@acceleration.net>
346 * sql/expressions.lisp (output-sql): on mysql CREATE TABLE
347 statements use 'ENGINE=innodb' instead of 'Type=InnoDB'. This has
348 apparently been preferred since mysql 4.1 and mysql 5.5 removed
349 type as a valid keyword.
351 2012-03-28 Russ Tyndall <russ@acceleration.net>
353 * sql/sequences.lisp: [A Patch FROM 2011-07-28 changed sequences.
354 They were previously prefixed with _CLSQL_SEQ_ but are now
355 suffixed with _CLSQL_SEQ. This is likely to break existing
356 implementations using the default sequence names
358 setting *old-sequence-names* to T, should force using the older
361 2012-03-27 Ryan Davis <ryan@acceleration.net>
363 * sql/expressions.lisp: Fixed bug with subqueries in the where
364 clause of update-records and delete-records generating invalid
365 SQL. Previously subselects in where clauses would not have enough
366 parentheses, for example: "WHERE Id IN SELECT foo_id FROM bar"
367 vs. "WHERE Id IN (SELECT foo_id FROM bar)"
368 * tests/test-syntax.lisp: Added tests for using subqueries in the
369 where clause in update-records and delete-records. Moved asserts
370 in the test-output-sql/sql-ident-table function into the standard
372 * doc/appendix.xml: added :connection-string to the information on
373 ODBC connection specs, and added example code connecting to ODBC
376 2012-01-05 Nathan Bird <nathan@acceleration.net>
378 * db-odbc/odbc-dbi.lisp: handle sql decimal type in the same way
379 as numeric type-- read into a double float.
381 2011-01-04 Russ Tyndall <russ@acceleration.net>
382 * sql/operations.lisp
384 Fixed bug reported by JTK related to the not-null sql-expression
385 especially as used in conjunction with the is operator.
387 Made null called with more than one argument throw an exception
388 instead of silently discarding all arguments past the first
390 2012-01-04 Nathan Bird <nathan@acceleration.net>
392 * db-odbc/odbc-api.lisp (%sql-driver-connect): in the call to
393 odbc's SQLDriverConnect default the WindowHandle argument to a null ptr so
394 that connecting with :connection-string will work in the default
395 case of SQL_DRIVER_NOPROMPT.
397 I.e. you can now do things like:
398 (clsql:connect '("DsnName" "UserName" "" :connection-string
399 "DRIVER={FreeTDS};SERVER=...;DATABASE=...;UID=...;PWD=...;PORT=1433;TDS_Version=8.0;APP=clsql")
400 :database-type :odbc)
402 I believe the DsnName and Username at that point are only used when
403 printing the connection information.
405 2011-12-20 Kevin Rosenberg <kevin@rosenberg.net>
407 * db-oracle/oracle.lisp: Typo correction (Elias Martenson)
409 2011-12-19 Kevin Rosenberg <kevin@rosenberg.net>
411 * db-oracle/oracle.lisp: Change length function to
412 uffi:foreign-string-length to handle foreign encodings.
413 Thanks to Elias Martenson.
415 2011-11-28 Russ Tyndall <russ@acceleration.net>
416 * db-odbc/odbc-api.lisp, tests/test-time.lisp
418 In ODBC backend, avoid going through the common lisp
419 universal-time type (because it lacks support for historic dates)
421 *time-conversion-function* renamed to *time-format*
423 Patch from: Francisco Vides Fernandez
425 2011-10-18 Russ Tyndall <russ@acceleration.net>
426 * db-odbc/odbc-api.lisp
428 Added type specifier so MSSQL nvarchar fields can make it through
430 2011-09-12 Russ Tyndall <russ@acceleration.net>
431 * sql/fddl.lisp sql/generic-postgres.lisp db-mysql/mysql-sql.lisp
432 sql/generic-odbc.lisp sql/odbc-api.lisp sql/odbc-dbi.lisp
434 Fix bugs in list-attribute(s|-types) where passing an escaped,
435 instead of unescaped column name, caused these functions to return
436 less data than they should have.
438 2011-08-03 Kevin Rosenberg <kevin@rosenberg.net>
439 * CLSQL 6.0.0 released
441 2011-07-28 Russ Tyndall <russ@acceleration.net>
443 * db-postgresql-socket3/: Added a backend that utilized postgres
444 socket api version 3. Uses the cl-postgres project (from
445 postmodern) to handle this. Allows use of parameterized /
446 prepared queries using clsql:command-object
448 * sql/{expressions,fddl, generic-postgresql, ooddl}.lisp:
449 Change how database identifiers are emitted to hopefully make this
450 less brittle, and more easily intuitable.
452 Previously every code path that wanted to emit a
453 database identifier was responsible for coercing what was provided
454 into a correctly escaped string. Sometimes two or three functions
455 in a row were trying to correctly quote and output that string. I
456 have tried to centralize this type coercion and logic into a
459 everything should now call (escaped-database-identifier thing)
460 immediately before splicing a database identifier into string being
463 * sql/oodml.lisp: added method choose-database-for-instance, which
464 allows overriding which database connections are used based on
465 object type. Can be used to prevent connection conflicts in
466 multi-threaded environments
468 * sql/syntax.lisp: [foo bar] and [foo.bar] read into the same
469 clsql expression now (they used to be output the same, but after
470 the above database-identifier change, they were output separately
472 * test/: Better, more tests, better type coercion in tests and
473 throughout (%get-int)
475 [edit 2012-03-28 - RT]
476 * sql/sequences.lisp: Sequences were previously prefixed with
477 _CLSQL_SEQ_ but are now suffixed with _CLSQL_SEQ. This is likely
478 to break existing implementations using the default sequence names
480 setting *old-sequence-names* to T, should force using the older
484 2011-07-16 Kevin Rosenberg <kevin@rosenberg.net>
485 * Version 5.4.0 release
487 2011-06-27 Nathan Bird <nathan@acceleration.net>
488 * db-odbc/: memory management improvements: leak slower
489 * MSSQL: TOP + DISTINCT work together
491 2011-06-20 Nathan Bird <nathan@acceleration.net>
493 * sql/time.lisp: Handle parsing already parsed objects.
494 * sql/oodml.lisp: raise exception if we generate an update with no
495 where clause; incorporate Ryszard Szopa's patch for functional
496 expressions in :order-by
497 * sql/expressions.lisp: (listify nil) => nil instead of (nil).
498 * db-odbc/: bugfixes for working with older versions of FreeTDS;
499 support for bigints that works on mssql and postgres
500 * MSSQL improvements: use top instead of limit, IDENTITY can be a
501 column constraint, clsql:date becomes 'smalldatetime'
503 2011-06-20 Nathan Bird <nathan@acceleration.net>
506 * db-postgresql-socket/postgresql-socket-api.lisp: Addendum
507 to Otto Diesenbacher's patch that had a spurious write a 0
508 byte (to terminate string) that should have been just CCL.
510 2011-06-12 Kevin Rosenberg <kevin@rosenberg.net>
512 * db-postgresql-socket/postgresql-socket-api.lisp:
513 Patch from Otto Diesenbacher for UTF8 encoded strings
514 for CCL. FIXME: The best patch would be to use the
515 user-set encoding from the database object and use
516 UFFI's encoding strings to/from octet vectors rather
517 than SB-UNICODE and CCL specific code in this file.
519 2011-04-21 Kevin Rosenberg <kevin@rosenberg.net>
520 * sql/generics.lisp: Add defgeneric for new
521 database-last-auto-increment-id
523 2011-04-01 Kevin Rosenberg <kevin@rosenberg.net>
525 * db-mysql/mysql-client-info.lisp: Add recognition of
526 version 6 of MySQL client library.
527 * sql/metaclass.lisp: Fix the fix in the reader conditional
529 2011-03-30 Kevin Rosenberg <kevin@rosenberg.net>
531 * sql/metaclasses.lisp: Fix previous patch to work
534 2011-03-29 Kevin Rosenberg <kevin@rosenberg.net>
536 * sql/metaclasses.lisp: Apply one-line patch to fix
537 for newer SBCL (thanks to Nikodemus Siivola)
538 * many_files: Applied multiple patches from Holger Schauer
539 to improve autoincrement capability.
541 2010-10-24 Kevin Rosenberg <kevin@rosenberg.net>
543 * db-odbc/odbc-api.lisp: Change from SBCL-specific
544 to UFFI version of octets-to-strings. Reported by
545 Daniel Brunner <daniel@dbrunner.de>
546 * sql/oodml.lisp: Apply patch from Rupert Swarbrick
547 <rswarbrick@gmail.com>: Fix behaviour with auto-inc
549 * sql/expressions.lisp, tests/test-syntax.lisp: Apply
550 patch from Russ Tyndall to quote identifiers with space
551 or special character.
553 2010-09-20 Kevin Rosenberg <kevin@rosenberg.net>
555 * sql/{pool,database}.lisp: Pass encoding argument to
556 connections made from pool and with reconnect.
558 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
560 * db-odbc/odbc-{api,dbi}.lisp: Commit patch from
561 Memet Bilgin to fix issue with unicode and ODBC.
563 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
565 * uffi/clsql-uffi.lisp: Commit patch from JT Klein fixing
566 invocation of uffi:convert-from-foreign-string macro. When
567 time allows, I'll investigate changing UFFI's macro to
568 a function call and then revert this patch.
570 2010-06-15 Kevin Rosenberg <kevin@rosenberg.net>
572 * clsql-{uffi,mysql}.asd: Modify operation-done-p functions
573 to guard against change introduced in new ASDF traversing.
575 2010-04-20 Kevin Rosenberg <kevin@rosenberg.net>
576 * Version 5.1.0 [DEPENDENCY UPGRADE: UFFI 2.x needed]
577 * clsql-uffi.asd: Depend on UFFI version >= 2.0
578 to support foreign encoding of strings.
580 2010-04-16 Kevin Rosenberg <kevin@rosenberg.net>
582 * db-postgresql.lisp, sql/fddl.lisp: Fix typos [Thanks to
584 * sql/metaclasses.lisp: Work around type-check-function being set
585 during defclass expansion in SBCL [Thanks to Walter C. Pelissero]
586 * uffi/clsql-uffi.lisp: In call to uffi:convert-from-foreign-string,
587 Set null-terminated-p to T when length not specified.
588 [Thanks to Walter C. Pelissero]
590 2010-03-21 Kevin Rosenberg <kevin@rosenberg.net>
592 * sql/fdml.lisp: Fix DO-QUERY to actually return the last value of
595 2010-03-02 Nathan Bird <nathan@acceleration.net>
596 * doc/: Added a README on how to build doc; now builds on Ubuntu.
597 * sql/oodml.lisp: READ-SQL-VALUE now has explicit method for
598 handling double-floats and the default method will no longer
599 attempt to convert values that have already been converted.
600 * sql/syntax.lisp: Introduce file-enable-sql-reader-syntax which
601 enables the syntax for the scope of the file without trying to
602 keep track of the current syntax state.
603 * sql/pool.lisp: Introduce
604 clsql-sys:*db-pool-max-free-connections* which is a heuristic
605 threshold for when to disconnect a connection rather than
606 returning it to the pool.
607 * sql/pool.lisp: Check connections for validity before returning
610 2010-03-01 Kevin Rosenberg <kevin@rosenberg.net>
611 * db-mysql/mysql-api.lisp: Remove spurious enumeration
613 2010-02-16 Kevin Rosenberg <kevin@rosenberg.net>
615 * db-mysql/mysql-api.lisp: Fix mysql_options UFFI parameter list
616 * doc/ref-connect.xml: Document the MySQL options parameter as
617 part of the connection-spec.
619 2010-02-15 Kevin Rosenberg <kevin@rosenberg.net>
620 * db-mysql/mysql-{api,sql}.lisp: Support sending options
621 to MySQL using mysql_options, which occurs between the API calls
622 of mysql_init and mysql_real_connect.
624 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
626 * multiple-files: Further internationalization. Change
627 UFFI:CONVERT-RAW-FIELD and UFFI:CONVERT-FROM-FOREIGN-STRINGS
628 invocations to use the foreign character set encoding of the
629 database object. Requires UFFI v.1.8.6
630 * Makefile.common: Fix OS_DARWIN64 setting
632 2010-02-11 Nathan Bird <nathan@acceleration.net>
633 * MSSQL: better support for fddl 'date type.
635 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
636 * Makefile.common, uffi/Makefile, db-mysql/Makefile:
637 Better support OS X Snow Leopard by building universal
638 (x86_64,i386) dylib bundles
640 2010-02-08 Kevin Rosenberg <kevin@rosenberg.net>
642 * sql/database.lisp: Fix missing slot-accessor
643 (Thanks to Stelian Ionescu)
644 * sql/generics.lisp: Add missing keyword to defgeneric
645 (Thanks to Stelian Ionescu)
647 2010-02-07 Kevin Rosenberg <kevin@rosenberg.net>
649 * sql/{base-classes,database}.lisp: Add encoding slot for
651 * db-mysql/mysql-sql.lisp: Use UFFI:FOREIGN-ENCODED-OCTET-COUNT.
652 Requires UFFI version 1.8.2 or above.
654 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
655 * Version 5.0.0: First release of CLSQL to formally and
656 consistently support non-ASCII strings with encoding of external
657 formats for SQL strings. UFFI version 1.8.1 is higher is required.
659 This change may introduce some differences in string handling for
660 people who are using non-ASCII encoded characters. Thus, because
661 of the risk of BACKWARD INCOMPATIBILITY, the major version number
662 was incremented with this release.
664 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
665 * tests/test-i18n.lisp: Bind UFFI:*DEFAULT-EXTERNAL-FORMAT*
666 for testing multibyte encodings.
667 * uffi/clsql-uffi.lisp: Changes for UFFI 1.7.4's new support
668 for encoding foreign strings with a specified external format.
670 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
671 * sql/metaclasses.lisp: If no declared slot type in
672 compute-lisp-type-from-specified-type, then use t as lisp type.
673 Issue noted when testing Clozure CL 1.4.
675 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
676 * tests/test-init.lisp: Turn off the benign console notices for
679 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
680 * clsql-test.asd, tests/{test-i18n,test-init}.lisp:
681 Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
682 not present in cl:*features*. This requires UFFI 1.7.2 or above.
684 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
685 * sql/utils.lisp: Reading #\no-break_space causes an
686 error for non-unicode SBCL. Conditionalize read of
687 #\no-break_space for non-unicode SBCL and 8-bit string
690 2010-02-03 Kevin Rosenberg <kevin@rosenberg.net>
691 * tests/test-init.lisp: Add *test-report-width* variable
692 and word-wrap skipped test reason field.
694 2010-01-29 Kevin Rosenberg <kevin@rosenberg.net>
696 * clsql-cffi.asd: New file that causes CLSQL to use
697 CFFI-UFFI-COMPAT library rather than UFFI. Perform 'asdf:load-op
698 on CLSQL-CFFI rather than CLSQL system to use CFFI-UFFI-COMPAT.
700 2010-01-29 Nathan Bird <nathan@acceleration.net>
701 * tests/*.lisp: A lot more tests and test setup tweaks.
702 * sql/expressions.lisp: output-sql on sql-relational-exp does
703 better arity checking now. (apply #'sql-and some-list) gives
706 29 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
707 * sql/oodml.lisp: Fix for UPDATE-RECORD-FROM-SLOTS for normalized
710 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
712 * Change "normalise" from British spelling for consistency with
713 other American spellings in CLSQL.
715 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
716 * db-mysql/Makefile: Add directory for Fedora 11/12 on 64-bit
717 platform (Thanks to Michael Pheasant) and remove a 32-bit directory
719 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
721 * sql/utils.lisp: Ensure Lispworks 6 lock is created in sharing mode
723 20 Jan 2009 Nathan Bird <nathan@acceleration.net>
725 * Rewrite tests to use datasets
727 07 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
728 * sql/utils.lisp: Changes to support Lispworks 6
730 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
732 * doc/ref-ooddl.lisp: Add needed CDATA escapes
733 * doc/clsql.pdf, doc/html.tar.gz: Build new manuals with
734 normalized view classes.
736 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
737 Large patch from Thijs Oppermann <thijso+clsql@gmail.com> to add
738 support for normalized view classes. When having view class that
739 inherit from others, CLSQL by default builds tab all the columns
740 from the parent in the child. This patch is meant to normali so
741 that a join is done on the primary keys of the concerned tables to
744 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
745 * sql/time.lisp: Patch from Oleg Tihonov to SYNTAX-PARSE-ISO-8601
746 to properly parse fractions of seconds.
748 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
749 * sql/time.lisp: Patch from Oleg Tihonov to roll function
750 to properly use USEC argument.
752 21 Nov 2009 Kevin Rosenberg <kevin@rosenberg.net>
754 * Makefiles: On 64-bit Linux systems, try to build both 32 and 64-bit
755 interface libraries. This requires the installation of multiarch build tools
756 as well as 32-bit support libraries (libc, libz and libmysqlclient).
758 04 Sep 2009 Kevin Rosenberg <kevin@rosenberg.net>
760 * sql/fdml.lisp: Rework do-query to use supplied database
761 parameter when passed a sql-object-query
762 (thanks to JTK <jetmonk@gmail.com>)
763 * sql/generic-postgresql.lisp: Allow optional connect
764 parameters for postgresql databases (thanks to Stephen Compall)
765 * doc/ref-{clsql,connect}.xml, sql/db-interfaces.lisp:
766 Fix transposed letters (thanks to Stephen Compall)
767 * db-mysql/Makefile: Add directory for MacPorts mysql5 port
768 (thanks to Stephen Compall)
769 * sql/database.lisp: Have database-type default be
770 *default-database-type* (thanks to Desmond O. Chang)
771 * sql/transactions.lisp: Improved handlining of nested
772 transactions (thanks to Eli Naeher)
773 * sql/time.lisp: Commit patch to fix parse-iso-8601-duration
774 (thanks to Stephen Compall)
775 * sql/database.lisp: Use :verbose nil for asdf:operate
776 invocation (Thanks to Mackram Raydan)
777 * sql/metaclasses.lisp: Rework initialize-instance for
778 view-class-direct-slot-definition (thanks to Stephen Compall)
780 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
781 * sql/db-interface.lisp: Fix spelling error (thanks to
783 * clsql-mysql.asd/db-mysql/mysql-loader.lisp: Commit
784 patch from Andreas Franke to honor windows drive letter
785 when loading clsql_mysql C library.
787 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
789 * db-mysql/mysql-{sql,api}.lisp,db-mysql/clsql_mysql.c:
790 Latest version of mysqlclient once again changed the C
791 structures from which the mysql backend reads data.
792 Rather than adding yet another structure definition which
793 is enabled by the client version as read by mysql-client-info.lisp,
794 the mysql backend has been re-written to ignore in the internal
795 C structures. Instead, C wrapper functions for slot access have
796 been added to clsql_mysql.c and are used by mysql-sql.lisp to
797 access the internals of C structures. This adds a bit of overhead,
798 but completely separates the lisp code from trying to keep up
799 with the continually changing internal C structure of mysql.
800 All tests in the test suite executed correctly with this change.
802 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
804 * sql/database.lisp: Fix syntax on process-lock (thanks to
806 * db-mysql/mysql-sql.lisp: Allow use of database parameter
807 in database-list function (thanks to Michael Pheasant)
808 * sql/oodml.lisp: Allow NULL values for floating-point fields
809 (thanks to Jan Rychter)
811 02 Jun 2009 Kevin Rosenberg <kevin@rosenberg.net>
813 * sql/database.lisp: Add process-lock for deleting database from
814 a pool (thanks to Ralf Mattes).
816 25 Feb 2008 Kevin Rosenberg <kevin@rosenberg.net>
818 * sql/expressions.lisp: Remove stray form (thanks to Samuel Ward)
820 12 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
821 * sql/expressions.lisp: Bind *in-subselect* when outputting
822 selections (patch from unknown source).
824 11 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
826 * sql/metaclasses.lisp: Unify base-table processing by extracting
827 the correct code from initialize-instance :around into the helper
828 function set-view-table-slot. Call that function also in
829 reinitialize-instance :around replacing erroneous code discovered
832 17 Nov 2007 Kevin Rosenberg <kevin@rosenberg.net>
833 * BUGS: Add note about benefit of using configure file to create
834 Makefiles (suggestion from Joe Corneli)
836 22 Oct 2007 Kevin Rosenberg <kevin@rosenberg.net>
838 * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
839 Andrew Golding suggestion for more informative :error-id slot.
841 17 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
843 * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
845 * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
847 14 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
848 * Version 4.0.0: Major version increase to warn of potential
849 backwards incompatibility.
850 * NEWS: Document potentional backward incompatible changes
851 * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
852 after connecting. This may break compatibility with some applications
853 who are using non-ANSI features with MySQL. This change is required to
854 properly support view-classes using a string as their :base-table
855 attribute. This allows users to specify the case of table names.
856 This is feature is even more essential for MySQL itself since MySQL
857 uses case-sensitive table names. Use connection-based database-create
858 and database-destroy rather than trying to invoke command-line mysql
859 utility. Remove automatic upcasing of strings from list-indices.
860 * db-postgresql/postgresql-sql.lisp: Use connection-based
861 database-create and database-destroy rather than trying to invoke
862 command-line utilities.
863 * db-postgresql-socket/postgresql-socket-sql.lisp: Use
864 database-execute-command rather than execute-command for
865 database-{create,destroy}. Connect to postgres database
866 rather than template1 for those database creation/deletion.
867 * sql/metaclasses.lisp: Store the string value of :base-table if a
868 string is provided. Perform sql-escape at time of view-table name
870 * tests/test-init.lisp: Use "ej_join" as a string, rather than a
871 symbol, since "ej_join" is specified as :base-table. Clear the
872 expression output-cache in case the code for generating sql output
874 * test/test-oodml.lisp: whitespace fix
875 * sql/ooddl.lisp: Use quoted string for primary key constraint if
876 table name is specified as a string.
877 * sql/oodml.lisp: Don't convert a string view-table name to database's
879 * sql/expressions.lisp: Properly handle table and attribute identifiers
880 when they are a string. Do not change case of symbols to match database
882 * sql/operations.lisp: Change multiword symbols to upper case.
883 * sql/fddl.lisp: Quote base-table if a string to preserve case
884 for drop-table and create-table.
885 * tests/test-syntax.lisp: Add tests of low-level string attribute
888 20 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
890 * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
891 (problem noted on clsql-devel by icardo Boccato Alves)
892 * sql/pool.lisp: Remove incorrect keyword
893 * sql/database.lisp: Rework WITH-DATABASE to not make the database the
894 default database (reported by Saurabh Nanda and Chaitanya Gupta)
895 * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
896 emphasis that make-default has a default value of nil.
897 * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
898 SQL Server. (patch from Nathan Bird)
899 * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
900 of trouble with def-view-class compilations (patch from Nathan Bird)
902 15 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
904 * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
905 not dynamically loaded on Windows
907 22 Jun 2007 Kevin Rosenberg <kevin@rosenberg.net>
909 * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
910 that library is dymically linked to clsql-mysql library. Thus, the mysql
911 library will be automatically loaded. This has only been tested on Linux,
914 29 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
915 * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
916 reported by Ricardo Boccato Alves
918 02 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
919 * sql/database.lisp: Add ability of WITH-DATABASE to return
920 multiple values (patch from Liam Healy)
922 25 Apr 2007 Kevin Rosenberg <kevin@rosenberg.net>
924 * doc/connect.xml: variable description fix by Liam Healy
925 * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
926 Apply patches from Marcus Pierce to reduce load-time warnings
927 * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
929 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
931 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
932 disable wide characters for crypt salt sequence on SBCL, based
933 on patch from Lars Nostdal.
935 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
937 * sql/pool.lisp: Test pooled connection when popped from
938 the pool to ensure the connection still works. Currently, implemented
941 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
942 * db-mysql/Makefile: Add potential mysql directories
944 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
945 * sql/metaclasses.lisp: Remove usused saved-initargs
946 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
947 push search libraries)
949 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
950 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
951 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
952 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
953 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
954 on non-Lispworks platforms, the nickname POSTGRESQL will still be
955 available. Applications directly using low-level POSTGRESQL package
956 are recommended to use the new PGSQL name.
957 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
958 Apply patch from Edi Weitz to reduce compiler warnings.
960 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
962 * sql/expressions.lisp: Commit patch from Edi Weitz to
963 use *default-database* for SQL-OUTPUT if no database is
964 explicitly passed to function.
965 * uffi/clsql-uffi-loader.lisp: Change load order to first try
966 plain name/type before attempting user-specified paths (patch
968 * uffi/ptrbits.c: New file to return number of bits in an pointer
969 * uffi/Makefile: use intbits to name .so file based on bit size.
970 Build both 32-bit and 64-bit libraries on 64-bit platform.
972 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
974 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
977 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
979 * db-postgresql/postgresql-sql.lisp: Remove
980 uffi:convert-foreign-to-native wrapper since using cstring for
983 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
985 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
986 PQresultErrorField foreign function.
988 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
990 * doc/intro.xml: Update supported platforms.
991 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
992 changes from Andew Golding to use a more-specific error code
993 from PostgreSQL than the generic fatal error code of the result set.
995 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
996 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
997 readtable modifications
999 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
1000 * sql/syntax.lisp: Check that original reader syntax functions
1001 stored before trying to restore them.
1003 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
1004 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
1005 display sql reader syntax.
1007 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
1008 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
1009 to decide on 64-bit platform and check size of most-positive-fixnum instead.
1010 Needed to support clisp amd64.
1012 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
1014 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
1015 compatibile. Add warning for a metaclass condition that should
1017 * sql/time.lisp: Fixed symbol case inconsistency causing problem
1018 in AllegroCL's modern lisp. First sign of bug noted by
1019 Joel Reymond on clsql-devel.
1020 * clsql.asd: Make time.lisp depend on utils.lisp
1022 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1023 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
1024 *library-file-dir* to CLSQL's library path.
1026 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1027 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
1028 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
1029 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
1030 * Makefile.common: Add OS detection
1031 * uffi/make.sh, db-mysql/make.sh: Remove files
1032 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
1033 Refactor to remove need to make.sh shell scripts.
1034 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
1035 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
1036 package rather than CL-USER. Add support for ansi-loop on clisp.
1037 * sql/ansi-loop.lisp: New file to support iteration on clisp.
1038 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
1039 longer exist in the mysql client library.
1040 * doc/ref-fdml.lisp: Correct default field-type.
1041 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
1042 Fixed bug with noted with MySQL 5.0.24 and boolean values.
1044 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1046 * sql/oodml.lisp: Remove high debugging level declaration
1048 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1050 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
1051 is always 1. Fixes problem noted with PostgreSQL 8.1.
1053 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1055 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
1056 lazily cache if pg_roles tables exist. Selectively use SQL from
1057 Joel's previous patch if pg_roles table exists. Should now work
1058 with both postgresql 7.4 and 8.x.
1060 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1062 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
1063 local initialization file
1064 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
1066 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
1067 that generates incorrect integer return type
1068 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
1069 it fails on versions of postgresql that lack the pg_role table
1071 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
1073 * sql/transactions.lisp: Important typo fix from Alexey Antipov
1074 for database-start-transaction
1076 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
1078 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
1079 to close connection when failing to connect to database.
1080 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
1081 to avoid dropping system views.
1082 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
1083 a nil value [patch sponsored by Flektor]
1084 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
1085 for netbsd compilation
1087 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1088 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
1089 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
1091 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1092 * db-postgresql-socket/postgresql-socket-api.lisp:
1093 Apply patch from Marko Kocic adding the socket creation
1094 function needed for CLISP.
1096 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1097 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
1098 * db-oracle/metaclasses.lisp: Patch from James Bielman for
1099 checking slot constraints.
1100 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
1101 saved openmcl images (based on patch from James Bielman)
1103 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1104 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
1106 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1108 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
1109 duration parsing and unparsing to include year and month.
1110 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
1111 improving library search on Windows platform.
1112 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
1113 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
1115 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
1117 * clsql-postgresql-socket.asd,
1118 * db-postgresql-socket/postgresql-socket-package.lisp:
1119 Use the cl-md5 package on all platforms. Based on report
1122 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
1124 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
1126 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
1128 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
1129 fix accessor for new versions of SBCL
1130 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
1131 to improving parsing of time.
1132 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
1134 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
1135 as noted by Russ Tyndall.
1137 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
1139 * sql/time.lisp: Commit patch from Aleksandar Bakic
1140 to properly handle destructive flag
1141 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
1142 from Steven Harris for socket files with SBCL.
1143 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
1144 new connections added to the pool do not become the *default-database*
1145 * sql/connect.lisp: Optionally set *default-database* for pooled
1146 connection when make-default is generalized true.
1148 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
1150 * sql/expressions.lisp: Ensure table names are properly escaped
1151 before comparing -- fixes bug reported by Asbjørn Bjørnstad
1154 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
1155 * sql/generic-postgresql.lisp: improved decoding of table attribute
1156 parameters [from Vladimir Sekissov]
1157 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
1158 it's subclass to prevent adding standard-db-object to supers if
1159 somebody in the path has it already when metaclass inherited from
1160 standard-db-class. [from Vladimir Sekissov]
1162 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1164 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
1165 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
1166 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
1167 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
1168 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
1169 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
1170 Commit patch from Dominic Robinson providing support for
1171 Microsoft SQL Server
1172 * doc/csql.lisp: Fix typo in slot name
1174 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1176 * sql/time.lisp: Commit patch from Aleksandar Bakic for
1177 correct handling of decode-time usec value
1178 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
1179 correct the name of the shared library file.
1181 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1183 * sql/metaclasses.lisp: Avoid calling change-class on
1184 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
1187 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1189 * sql/expressions.lisp: Patch from James Biel to add subselects
1191 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1192 * Version 3.4.4 [ Requires UFFI 1.5.7+]
1193 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1194 to fix lifetime of foreign strings for Oracle calls
1196 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1198 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1199 to improve performance
1201 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1203 * clsql-uffi.asd: Patch from James Biel improving loading
1204 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1205 to support 64-bit lisps
1207 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1209 * sql/expressions.lisp: Escape numbers to SQL strings
1210 at expression level.
1212 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1213 * Version 3.4: Add MySQL 5 support
1214 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
1215 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
1216 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
1218 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1219 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
1221 * BUGS: Added report for update-object-joins by Aleksandar Bakic
1223 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1224 * Version 3.3.4 [UFFI >= 1.5.5 needed]
1225 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
1226 to add missing #\' character.
1227 * clsql.asd: Add support for CLSQLINIT environmental variable,
1228 based on patch from Yaroslav Kavenchcuk. New version of UFFI
1231 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1233 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
1234 update-objects-joins when using the :target-slot attribute
1236 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1238 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
1239 as noted by Harald Hanche-Olsen.
1240 * tests/test-syntax.lisp: Add test for multiple field group-by
1242 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1244 * sql/time.lisp: Commit patch from Alan Shields to
1245 display escape string on wall-time display only when *print-escape*
1248 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1249 * sql/metaclasses.lisp: Commit patch from Will to
1250 properly set db-reader slot in effective-slot-definition
1251 * sql/expressions.lisp: Commit patch from Alan Shields
1252 adding make-load-form for sql-relational-exp
1253 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
1254 adding support for new NUMBER type
1256 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1258 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
1259 * doc/ref-ooddl.xml: Documentation of new type
1260 * notes/add-type-hints.txt: New file from Alan Shields
1261 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
1263 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
1264 as noted by Francis Leboutte. Similar fix applied to db-mysql and
1266 * sql/expressions.lisp: Allow string table names for output as
1267 contributed by Francis Leboutte.
1268 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
1271 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1273 * doc/into.xml: Change download from ftp to http protocol
1275 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1277 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
1280 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1282 * db-oracle/oracle-sql.lisp: Add check for zero increment as
1283 suggested by Edi Weitz. Add missing database-sequence-last function
1284 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
1285 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
1286 stmthp object when query cursor is freed with OCI.
1288 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
1289 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
1290 display search path when error occurs loading foreign library.
1292 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
1294 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
1295 with changes to support case-sensitive lisp implementations. Add
1296 paragraph on using /etc/clsql-init.lisp site initialization file.
1297 * clsql.asd: Load file /etc/clsql-init.lisp, if it
1298 exists, after package is loaded to set site-specific configuration
1300 2005-06-24 Edi Weitz <edi@agharta.de>
1301 * sql/db-interface.lisp: Added new special variable
1302 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
1304 * sql/package.lisp: Export these.
1305 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
1307 * db-mysql/mysql-loader.lisp: Changed order of libs.
1309 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1310 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
1311 * clsql-mysql.asd: Renamed clsql/mysql interface library from
1312 mysql to clsql_mysql
1313 * clsql-uffi.asd: Renamed clsql/uffi interface library from
1315 * uffi/clsql_uffi.c: Renamed from uffi.c
1316 * db-mysql/clsql_mysql.c: Renamed from mysql.c
1317 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
1318 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
1319 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
1320 absolute pathnames when searching for foreign libraries.
1321 foreign library loading.
1323 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1325 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
1326 to support UTF-8 on sbcl unicode.
1328 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1330 * sql/time.lisp: Fix bug in roll that caused failure in test suite
1332 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1334 * sql/oodml.lisp: Properly handle when db-writer is NIL
1336 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1337 * sql/expressions.lisp: Avoid using simple-string declaration when
1338 a non-simple string may be encountered. [issue noted by
1339 will@cesmail.net] Add a simple-string declaration for a local
1342 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1343 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
1344 a symbol as well as function to serve as a function designator
1345 [issue noted by will@cesmail.net]
1347 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1349 * sql/time.lisp: Fix error in submitted patch which caused error
1350 in timestrings with 19 or less characters.
1352 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1354 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
1355 to fix read-socket-sequence on non-sb-unicode sbcl.
1357 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1359 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
1360 for fractional seconds which is required by PostgreSQL
1361 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
1363 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1364 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
1366 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1368 * sql/syntax: Commit patch from Alan Shields to supress reader
1369 macros when *read-supress* is T.
1371 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1373 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1374 from Janis Dzerins to support unicode on SBCL
1375 * sql/syntax: Commit patch from Alan Shields to improve reporting
1376 of invalid syntax statements.
1378 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1380 * db-mysql/mysql-sql.lisp: Add port to connection specification
1381 based on patch from Dave Watson
1382 * doc/appendix.xml: Document MySQL port parameter to connection spec
1384 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1386 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
1388 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1389 * sql/oodml.lisp: Add missing database argument [Patch from
1392 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1393 * sql/oodml.lisp: Improve database priority in
1394 update-records-from-instance [Patch from Walter C. Pelissero]
1396 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1398 * sql/package.lisp: Export database-reconnect from clsql-sys
1400 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1401 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
1402 [Patch from Walter Pelissero]
1404 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1405 * db-postgresql/postgresql-loader.lisp: Add additional
1406 directories to Fink on darwin [patch from Cyrus Harmon].
1408 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1410 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
1411 is invoked [suggested by Alan Shutko].
1412 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
1413 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
1414 to def-view-class [fix suggested by Fred Gilham].
1416 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1417 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
1419 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
1420 * doc/*.xml: Fix spelling of Vladimir
1422 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1423 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
1424 now that LispWorks is an independant company [noted by
1427 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1428 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
1429 Better support for 64 bit environments
1431 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1433 * sql/metaclass.lisp: Make t the default value of :set
1434 [noted by Cyrus Harmon]
1436 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1438 * uffi/clsql-uffi.lisp: Add support for unsigned integers
1439 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
1440 unsigned integers. Apply patch from Yannick Gingras to
1441 implement database-sequence-last.
1443 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1444 * doc/ref-fdml.lisp: Fix variable tag name to varname
1445 [noted by Eduardo Munoz]
1446 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
1448 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1450 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
1451 update-object-joins.
1452 * sql/metaclass.lisp: Remove unnecssary (and runtime error
1453 causing) change-class invocation when running on CLISP.
1454 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
1455 to fix structure name.
1456 * sql/database.lisp: More specific error message with trying
1457 to use a database value of NIL.
1458 * sql/expressions.lisp: Accept a string for the table name
1459 in (sql-output sql-delete database) [suggested by Ed Symanzik].
1461 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1463 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
1464 ignore columns which have been dropped.
1465 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
1466 Use sb-md5 package on SBCL, recommended by Chris Capel
1468 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1469 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
1470 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
1471 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
1473 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1474 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
1476 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1477 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
1478 contributed by Aurelio Bignoli
1480 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1481 * sql/oodml.lisp: Commit patch from Walter Pelis
1482 to use an object's database for a select on its slot.
1484 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1485 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
1486 Aurelio Bignoli to fix negative 64-bit integers
1488 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1489 * db-mysql/mysql.c: Fix parameters in bind_param call
1491 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1492 * uffi/clsql-uffi.lisp: Add support for :blob result-type
1493 * db-mysql/mysql-sql.lisp: Add support for :blob
1496 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1497 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
1498 missing quotes for types in code that is still in development
1499 (thanks to Joerg Hoehle)
1501 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1502 * Version 3.0.8 released
1503 * db-sqlite/sqlite-*.lisp: Apply patch from
1504 Aurelio Bignoli with improvements
1506 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1507 * multiple: Apply patch from Joerg Hoehle with multiple
1510 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1511 * Version 3.0.7 released
1512 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
1513 Add support for mediumint.
1514 * sql/metaclass.lisp: Rework CLISP MOP handling
1515 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
1517 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1518 * sql/metaclass.lisp: Support CLISP's attribute name
1519 for the type field in direct class slots
1521 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1522 * Version 3.0.6 released
1523 * BUGS: New file. Document suspected SIGPIPE
1524 interaction between SBCL and libpq used in
1526 * doc/ref-fdml.lisp: Document the :caching and :refresh
1527 keywords of the SELECT function.
1528 * doc/ref-ooddml.lisp: Document the new *default-caching*
1530 * sql/package.lisp: Export *default-caching*
1531 * sql/oodml.lisp: Use *default-caching* to
1532 control default caching behavior.
1534 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1535 * Version 3.0.5 release
1536 * doc/appendix.xml: Add note about loading Oracle8 version
1537 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
1538 data from David Young.
1540 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1541 * doc/Makefile, doc/catalog-darwin.xml: Apply
1542 patch from Cyrus Harmon for building docs on Mac OS X
1543 * sql/package.lisp: Add new (pre-release) clisp MOP package
1545 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1546 * Version 3.0.4 Release
1547 * multiple: Remove superfluous quotes in UFFI def-type
1548 and def-foreign-type forms.
1550 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1551 * Version 3.0.3 Release
1552 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1553 from Tagore Smith to call force-output after sending authentication
1554 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
1555 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
1556 to a database of that type so that functions that indicate capabilities of
1557 database are available.
1559 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1560 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
1562 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1563 * Version 3.0.2 Release
1564 * TODO: Add note about ODBC on Windows
1565 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
1567 * db-odbc/odbc-ff-interface.lisp: Change the return type
1568 of SQLSetEnvAttr to :short
1570 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1571 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
1572 slot of the employee View Class definition [reported by Franz Deuzer].
1574 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1575 * Version 3.0.1 Release
1576 * tests/test-init.lisp: Add second join class to employee-address
1577 to test a class with two join slots.
1578 * sql/oodml.lisp: Fix find-all function for a class with multiple
1580 * TODO: Remove need to test/fix multiple join classes
1582 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1583 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
1584 from Jon Buffington for file locations on Darwin.
1586 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1587 * sql/db-interface.lisp: Improve messages when functions
1588 are passed a database object, but the method is not specialized
1589 for that database type.
1590 * sql/metaclasses.lisp: Fix inline declaration (reported by
1593 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1594 * TODO: Add bug report about SQL generation with a table
1595 containing two join slots.
1596 * sql/oodml.lisp: Add optional size to VARCHAR type
1598 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1599 * Version 3.0.0 Release
1600 * sql/expressions.lisp: Change declaration that
1601 caused error on openmcl
1602 * db-aodbc/aodbc-sql.lisp: Fix storage location
1603 of odbc connection. Specialize database-query since
1604 dbi's :types keyword is different than generic-odbc's
1605 :result-types keyword
1606 * sql/db-interface.lisp: Add warnings for methods
1607 not specialized by a db backends
1608 * tests/test-fddl.lisp: Fix case of symbols to support
1609 case-sensitive Allegro
1610 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
1611 * tests/test-init.lisp: Note that odbc driver for postgresql
1612 doesn't properly handle table ownership
1613 * LATEST-TEST-RESULTS: update with version 3.0.0
1615 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1616 * sql/expressions.lisp: conditionalise escaping of backslash in
1617 generated SQL strings on backend.
1618 * tests/test-fdml.lisp: test for escaping of backslash.
1619 * sql/oodml.lisp: minor tidying in FIND-ALL.
1621 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1622 * NEWS: Initial 3.0 announcement draft
1623 * README: Expand acknowledgements of incorporated projects
1624 * CONTRIBUTORS: Further document Marcus Pearce contributions
1626 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1627 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
1628 to print floats with the exponent markers removed.
1629 * tests/test-oodml.lisp: add tests for updating records with floats.
1631 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1632 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
1633 CommonSQL compatibility.
1634 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
1635 this column constraint syntax is not supported.
1636 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
1637 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
1640 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1641 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
1642 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
1643 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
1645 * doc/ref-oodml.xml: add examples for OODML.
1646 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
1648 * sql/metaclasses.lisp: update docstrings.
1649 * tests/test-init.lisp: change :db-constraints for emplid to
1650 (:not-null :unique) as a temporary test for multiple column constraints
1652 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
1653 return type of (SETF SLOT-VALUE-USING-CLASS).
1654 * TODO, doc/TODO: remove items done.
1657 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1658 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
1660 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
1662 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1663 * sql/expressions.lisp: reactivate caching of generated SQL strings.
1664 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
1665 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
1666 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
1667 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
1668 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
1669 sql/expressions.lisp.
1670 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
1671 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
1672 * sql/generics.lisp: add docstrings.
1674 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1676 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
1677 code in favor of fixing UFFI with James Bielman's patch
1679 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1681 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
1684 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1685 * README, INSTALL: update URLs. Minor updates to descriptions.
1686 * tests/README: remove stuff about editing contexts.
1688 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1689 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
1690 *default-string-length*
1692 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1693 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
1695 * tests/test-fddl.lisp: add tests for column and table constraints
1696 in CREATE-TABLE. Add test for OWNER keyword parameter to
1697 LIST-TABLES (assuming same underlying machinery in other FDDL
1699 * tests/test-init.lisp: restrict above test to postgresql and oracle.
1701 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1702 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
1705 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1706 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
1708 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1710 * doc/*.xml: documentation additionals and fixes so
1711 that docbook passes xmllint.
1713 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1715 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
1716 to change escaping of single quotes. Mild optimizations
1717 for escaped string output.
1718 * doc/ref-ooddl.lisp: documentation additions
1719 * doc/ref-oodml.lisp: Add purpose to functions
1720 * TODO: Add need to test single quote escaping
1722 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1723 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
1724 * sql/ooddl.lisp: Added SMALLINT type
1725 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
1726 * db-mysql/mysql-objects.lisp: Added SMALLINT type
1727 * sql/package.lisp: Export SMALLINT
1728 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
1731 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1732 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
1733 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
1734 View Class slot option.
1735 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
1736 slot option accepting a list of constraints [reported by Travis Cross].
1737 * doc/ref-fddl.xml: add some examples of specifying column and
1738 table constraints to the documentation for CREATE-TABLE.
1739 * TODO: add note about adding tests for table/column constraints. Add
1740 optimisation note about using cached attribute types in insert/update
1743 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1744 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
1745 features and so on the documentation for each backend.
1746 * doc/TODO: remove items done.
1747 * doc/ref-transaction.xml: add note in introduction about
1748 autocommit mode as a difference from CommonSQL.
1749 * doc/ref-syntax.xml: add notes about SQL syntax state functions
1750 being macros in CLSQL. Add note about SQL operators which are
1753 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1754 * Version 2.11.12 released
1755 * doc/ref-recording.xml: document SQL I/O recording.
1756 * doc/ref-prepared.xml: new file for documenting prepared statements.
1757 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
1759 * doc/ref-conditions.xml: complete documentation of condition system.
1760 * doc/global-index.xml: add symbols from condition system and remove
1761 those from LOB and prepared statement APIs.
1762 * doc/ref-fdml.xml: complete documentation of FDML.
1763 * doc/glossary.xml: add View Class.
1764 * doc/TODO: remove items done.
1765 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
1766 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
1767 additional slot accessors for condition classes.
1769 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1770 * doc/ref-ooddl.lisp: Add documentation
1771 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
1772 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
1773 * doc/oodml.lisp: Rename references to new name of
1774 *DEFAULT-STRING-LENGTH*
1776 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1777 * doc/ref-transaction.xml: document transaction handling.
1778 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
1779 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
1780 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
1781 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
1784 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1785 * doc/ref-fdml.xml: document the FDML.
1786 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
1787 * sql/ooddl.lisp: moved *default-varchar-length* to here from
1788 oodml.lisp and renamed to *default-string-length*
1790 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1791 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
1792 to allow specifying transactionless table creation
1793 * doc/ref-oodml.lisp: Add new keyword to signature of
1796 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1798 * sql/expressions.lisp: when removing duplicate table identifiers
1799 in the FROM clause of a query, check both table name and alias
1801 * sql/fdml.lisp: remove DESCRIBE-TABLE.
1802 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
1803 DATABASE-DESCRIBE-TABLE.
1804 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
1805 and LIST-TABLE-INDEXES.
1806 * sql/generic-postgresql.lisp: add reader conditional #+nil for
1807 DATABASE-DESCRIBE-TABLE and comment about its uses for
1808 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
1809 returning type info for all attributes.
1810 Fix DATABASE-SEQUENCE-LAST.
1811 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
1812 LIST-INDEXES with additional keyword parameter :ON.
1813 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
1814 with LIST-INDEXES (with :ON parameter).
1815 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
1816 * doc/ref-connect.xml: minor tidying.
1817 * doc/ref-fddl.xml: document the FDDL.
1818 * doc/TODO: removed items done. Moved note about transaction handling
1820 * TODO: move note about transaction handling to doc/TODO. Added
1821 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
1823 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1825 * sql/syntax.lisp: updated docstrings.
1826 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
1828 * sql/database.lisp: add docstrings for CREATE-DATABASE,
1829 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
1830 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
1831 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
1832 * doc/ref-connect.xml: document connection/initialisation.
1833 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
1834 * doc/TODO: remove items done.
1835 * Makefile: add db-oracle to to SUBDIRS.
1837 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1838 * sql/oodml.lisp: Add new serialization functions:
1839 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1840 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1841 from a table that has more than one primary index.
1842 * sql/conditions.lisp: Fix printing of closed-database error
1844 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1846 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1847 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1849 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1850 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
1851 of SQL-EXPRESSION from CLSQL-SYS.
1852 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
1853 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
1854 * doc/Makefile: added Mandrake linux.
1855 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
1856 * doc/appendix.xml: fixed little typo (adsf).
1857 * doc/glossary.xml: removed closed-database and note about
1858 sql-expression, added some entries.
1859 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
1861 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1863 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1864 * multiple: Add generalized-boolean type as requested by
1866 * TODO: Added need for test of generalized-boolean
1868 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1869 * Version 2.11.7 released
1870 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1871 for loading with clc-register-user-package. Remove personal
1872 directory from path lisp.
1873 * db-mysql/mysql-loader.lisp: Similar changes
1875 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1876 * Version 2.11.6 released
1877 * sql/oodml.lisp: Commit patch from Edi Weitz
1878 to fix symbol writing/reading
1879 * TODO: Add need for symbol slot test
1881 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1882 * sql/package.lisp: remove duplicate export of
1883 *CACHE-TABLE-QUERIES-DEFAULT*.
1884 * doc/ref-*.xml, doc/global-index.xml: new files documenting
1885 the CommonSQL compatible api.
1886 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
1887 reflect changes in return values of WITH-TRANSACTION.
1889 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1890 * tests/README: Fix filename [reported by Bill Clementson]
1891 * sql/transactions.lisp: Apply return value patch from
1892 Edi Weitz for WITH-TRANSACTION
1893 * tests/README: Remove ptester package requirement (as noted
1896 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1897 * Version 2.11.5 released
1898 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1899 Select connection-spec based on connection type. Bugs reported by
1901 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1902 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1903 name on Windows, add \bin\ directory to search path
1905 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1906 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
1908 * sql/operations.lisp: substr now generates SUBSTR for use on
1909 Oracle; added a new operator SUBSTRING for use elsewhere. minus
1910 now generates MINUS for use on Oracle. Nvl signals an error if
1911 not called with exactly 2 arguments. Add concat function for use
1912 instead of the || operator on MySQL and Oracle.
1913 * sql/syntax.lisp: changed internal symbol for the || operator to
1915 * sql/expressions.lisp: removed redundant and unused functions
1916 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1917 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
1918 * sql/generics.lisp: removed generic function for
1919 DATABASE-CONSTRAINT-DESCRIPTION (see above).
1920 * tests/test-syntax.lisp: modified/added tests according to changes
1921 in sql/operations.lisp.
1922 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
1924 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
1925 and SQL-USERENV to the shared exports list. Removed
1926 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
1927 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1928 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1929 RECORD-SQL-RESULT from shared exports list.
1931 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1932 * db-postgresql/postgresl-sql.lisp: Avoid computing
1933 result-types lisp when nil result-types. Return only
1934 one value when field-types nil.
1935 * db-mysql/mysql-sql.lisp: Simple queries now
1936 working with prepared statements.
1938 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1939 * Version 2.11.4: MySQL 4.1 now passes all tests
1940 * sql/package.lisp: Add API for prepared statments.
1941 * sql/fdml.lisp: Change implicit flatp processing
1942 for string map-query for greater CommonSQL conformance.
1943 Add high-high API for prepared statements.
1944 * tests/test-basic.lisp: Add test for map-query and
1946 * sql/transactions.lisp: Change name/semantics of
1947 autocommit to set-autocommit.
1948 * sql/generic-postgresql.lisp: Add support for
1949 prepared statements.
1950 * tests/test-internal.lisp: New file
1951 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1952 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1953 Controller invocation.
1954 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1955 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1956 function contains a subselect.
1958 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1960 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1961 type (setf slot-value-using-class)
1962 * TODO: add not that need a test case for the above fix
1963 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1965 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1966 introduced in Oracle8. Leave older code selectable by a reader macro
1967 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1968 uses OCILogon and does not the more complex session management.
1970 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1971 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1972 * test/test-init.lisp: Add universal-time slot to person.
1973 * test/test-fddl.lisp: Add tests of universal-time slot
1974 * test/test-ooddl.lisp: Test universal-time slot in an object
1975 * TODO: Remove need for universal-time test
1976 * debian/rules, debian/control: Add cl-sql-oracle binary package
1977 * doc/appendix.xml: Add Oracle backend information
1978 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1979 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1980 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1981 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1982 for map-query to reflect changed in arguments to be CommonSQL compatible.
1983 Updated old clsql conditions to new CommonSQL compatible conditions.
1985 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1986 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1987 type. Added *default-varchar-length* rather than previous hard-coded
1988 varchar length. Remove 'simple-string and 'simple-base-string since they
1989 are subtypes of 'string.
1990 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1991 local hard-coded value.
1992 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1993 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1994 CHAR to lisp type character.
1995 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1996 * sql/operations.lisp: Add userenv
1997 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1999 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
2000 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
2001 * test/test-init.lisp: Add large table with bigint slot
2003 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2004 * Version 2.11.1 released: Much simpler Oracle client library loading.
2005 Now uses ORACLE_HOME environmental variable as well as tests default
2006 path for Oracle Instant Client.
2008 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2009 * Version 2.11.0 released: Full Oracle support. All tests pass
2010 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
2011 * tests/test-init.lisp: capitalize odbc backend name in banner
2012 * CONTRIBUTORS: Add note about Marcus' excellent work
2013 * sql/oodml.lisp: Removed old stub function
2014 * clsql.asd: Use module names in current package rather than keyword package
2015 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
2016 in setting sequence position. Make autocommits more efficient.
2017 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
2018 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
2019 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
2020 and read-sql-value for NUMBER and CHAR.
2021 * sql/base-classes.lisp: Add autocommit slot
2022 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
2023 * doc/intro.xml: Add Oracle
2025 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
2026 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
2027 CLSQL-SIMPLE-WARNING with SQL-WARNING.
2028 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
2030 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
2031 * clsql.asd: reworked module structure in package definition and
2032 file names to better reflect component functionality.
2033 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
2034 exports list. Removed duplicate and obsolete exports. Exported
2035 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
2036 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
2037 according to whether they are specified by CommonSQL or CLSQL
2039 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
2041 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
2042 here from basic-sql.lisp.
2043 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
2044 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
2045 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
2047 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
2048 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
2050 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2051 * Version 2.10.22 released
2052 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
2053 has reversed class slots, change the default for ordered-class-slots so that slots
2054 are now in the same order an in the def-view-class.
2055 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
2056 * test/test-fddl.lisp: Add two tests for mixed case names
2057 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
2058 for computed fields, this will require some adjustment to the test suite which
2059 in many cases expects integers.
2060 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
2062 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2063 * Version 2.10.21 released
2064 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
2065 db-odbc, and db-aodbc.
2066 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
2067 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
2068 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
2069 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
2070 sql/generic-odbc.lisp
2071 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
2072 Move common code to sql/generic-postgresql.lisp
2073 * sql/classes.lisp: honor case of string tables when outputting queries
2074 * sql/objects.lisp: Add database type to default database-get-type-specifier method
2075 * sql/sql.lisp: Add database type to default database-abort-transaction method
2076 * db-mysql/mysql-objects.lisp: New file
2077 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
2078 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
2080 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
2081 default db case for FDML/SELECT/25
2083 22 May 2004 Kevin Rosenberg
2084 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
2085 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
2086 and string identifiers with non-default case
2087 * sql/table.lisp: Don't convert string table name to a symbol.
2088 * sql/classes.lisp: Honor case of string identifiers
2089 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
2091 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
2092 of owner phrases. Obtain server and client versions.
2093 * db-oracle/oracle-objects.lisp: Fix type specifiers
2094 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
2095 * tests/test-init.lisp: Properly get username from Oracle connection-spec
2097 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2098 * sql/generics.lisp: reworked docstrings. Remove generics for
2099 ADD-TO-RELATION and REMOVE-FROM-RELATION.
2100 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
2101 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
2102 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
2103 for CommonSQL compatibility. Remove ADD-TO-RELATION and
2104 REMOVE-FROM-RELATION.
2105 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
2106 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
2107 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
2108 * sql/conditions.lisp: add documentation for conditions. Add
2109 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
2111 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2112 * sql/basic-sql.lisp: reworked docstrings.
2113 * sql/transactions.lisp: reworked docstrings.
2114 * sql/sql.lisp: reworked docstrings.
2115 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
2116 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
2117 * sql/database.lisp: reworked docstrings.
2118 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
2119 and FDML extensions and database extensions.
2121 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2122 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
2123 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
2125 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
2126 Oracle versions with the PURGE option required for drop table. This needs
2127 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
2129 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2130 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
2131 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
2132 * sql/table.lisp: reworked docstrings.
2133 * sql/objects.lisp: moved *default-update-objects-max-len* here from
2135 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
2136 DROP-VIEW and DROP-INDEX and the use of the :transactions and
2137 :constraints keyword args to CREATE-TABLE.
2138 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
2139 CommonSQL compatible with respect to column constraints.
2141 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2142 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
2143 Requires UFFI 1.5.0 or higher
2145 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2147 * sql/conditions.lisp: Fix cerror
2149 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2150 * Version 2.10.18 released: New condition hierarchy to be compatible
2151 with CommonSQL -- not backward compatible with previous CLSQL.
2152 * sql/db-interface.lisp: Add more default methods
2153 * sql/objects.lisp: Add explicit table name to order-by parameters
2154 in find-all when only one table to avoid selecting a duplicate row.
2155 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
2156 as previous logic was adding two fields (foo asc) to SELECT query.
2157 Make :result-types :auto be the default for object selections.
2158 Properly handle caching key when using multiple order-by with asc/desc
2160 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
2162 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2163 * sql/recording.lisp: reworked docstrings.
2164 * sql/syntax.lisp: reworked docstrings.
2165 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
2166 SQL syntax state functions being macros.
2168 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2169 * sql/package.lisp: Export initialize-database-type and
2170 *initialize-database-types* from CLSQL package.
2171 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
2172 remove old CLSQL conditions.
2173 * sql/loop-extensions.lisp: Make errors of type sql-user-error
2174 * */*.lisp: Convert to from old to new conditions
2176 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2177 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
2178 To handle this difference, will need to add a new database-drop-table
2180 * db-oracle/oracle-sql.lisp: Move server-version and
2181 major-version-number to database object to allow multiple connections
2182 to Oracle servers of different versions.
2184 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2185 * TODO: moved notes about backends to doc/TODO.
2186 * doc/TODO: added notes about backends and select extensions.
2187 * sql/base-classes.lisp: remove obsolete schema slot in database
2190 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2191 * db-oracle/oracle-api: Add OCIServerVersion
2192 * db-oracle/oracle-sql: Query and store server version on connect
2193 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
2194 function to handle OCI's lack of bigint support
2195 * test/test-basic.lisp: Separate bigint testing
2196 * test/test-utils.lisp: Add oracle to specs and list of backends
2197 * doc/TODO: New file
2198 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
2199 run-time instantiation of variables in reader macros.
2200 * TODO: Remove item already complete. Add note about
2203 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2204 * sql/syntax.lisp: added condition to the reader macro to treat [*]
2205 as a column identifier (rather than an operation) for CommonSQL
2207 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
2208 keword args to SELECT, [*] as column identifier, new MAP-QUERY
2209 behaviour and the ANY and ALL operators in subqueries.
2210 * tests/test-init.lisp: add set-operation and subquery tests to
2211 appropriate skip lists.
2212 * sql/objects.lisp: remove redundant and non CommonSQL compatible
2213 ORDER-BY-DESCENDING keyword argument for SELECT.
2214 * sql/classes.lisp: remove redundant and non CommonSQL compatible
2215 ORDER-BY-DESCENDING keyword argument for SELECT.
2216 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
2217 with object queries.
2219 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2220 * sql/db-interface.lisp: Add new db-type-has-union?
2221 since Mysql 3.23 does not support unions.
2222 * sql/test-init.lisp: Don't try union tests on database
2223 backends which do not support it.
2224 * db-oracle/*.lisp: initial port to UFFI
2225 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
2226 implement REFRESH for SELECT.
2227 * tests/test-oodml.lisp: Add tests for deferred retrieval,
2228 caching, refresh, and update-object-joins
2229 * tests/test-init.lisp: Add deferred-employee-address class
2231 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2232 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
2233 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
2234 ALL and EXISTS generate function expressions so they output the
2236 * sql/classes.lisp: SELECT now generates appropriate SQL when
2237 passed the SET-OPERATION and ALL keyword arguments.
2238 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
2239 accepts ordering constraints as pairs of the form (column direction)
2240 where direction may be :ASC or :DESC.
2241 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
2242 Correct tests for ANY, SOME, ALL and EXISTS.
2243 * tests/test-fdml.lisp: added test for COALESCE.
2244 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
2245 using funcall unless QUERY-EXPRESSION returns one column and its
2246 FLATP slot is not nil in which case apply is used.
2247 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
2249 * TODO: remove items done.
2250 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
2251 DATABASE-LIST-ATTRIBUTES.
2252 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
2253 results in DATABASE-LIST-ATTRIBUTES.
2255 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2256 * sql/classes.lisp: SELECT now accepts table identifiers as strings
2257 for CommonSQL compliance. Add support for qualified sql identifiers
2258 with aliased table names.
2259 * tests/test-fdml.lisp: added tests for table identifiers as strings
2260 in SELECT and for aliased definitions.
2261 * tests/test-syntax.lisp: added tests for alias definitions.
2263 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2264 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
2265 field-names set to nil.
2266 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
2267 with null attribute values.
2268 * sql/operations.lisp: modify SQL concatenation operator to accept
2269 unescaped || symbol.
2270 * sql/syntax.lisp: modify sql reader macro function to accept
2271 unescaped sql concatenation operator.
2272 * tests/test-fdml.lisp: unescape sql concatenation operator.
2273 * tests/test-syntax.lisp: unescape sql concatenation operator.
2274 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
2275 Note to add test for universal-time. Note about difference from
2276 CommonSQL in transaction handling.
2278 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2279 * tests/test-init.lisp: Add deferred-employee-address
2281 * tests/test-oodml.lisp: Add deferred retrieval testgs
2283 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2285 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
2286 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
2287 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
2288 * *: Fix minor style warnings
2289 * clsql-classic: Remove system and subdirectory
2290 * clsql-base: Remove system and subdirectory and
2291 fold into clsql system
2292 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
2293 as supported platform.
2295 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2296 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
2297 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
2298 Allegro 7.0beta AMD64
2299 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
2300 of ODBC longs since this type can vary on 64-bit platforms depending
2301 upon the compilation options of unixODBC.
2302 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
2303 structures found by testing with AllegroCL 7.0b AMD64.
2304 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
2305 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
2306 Initial caching support for SELECT
2307 * tests/test-oodml.lisp: Avoid using cache when testing select.
2308 * sql/kmr-mop.lisp: Explicitly check slot order and
2309 store as a cl:*feature*
2310 * sql/recording.lisp: Remove additional types to
2311 increase CommonSQL conformance.
2312 * tests/test-init.lisp: Change a :column attribute
2313 to test symbols as value
2314 * sql/relations.lisp: Remove functions since they don't support
2315 many to many relationships.
2316 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
2317 of add-to-relations function and replace with explicit field settings.
2318 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
2320 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2322 * LATEST-TEST-RESULTS: results with current version
2323 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
2324 since cmu19 has opposite order of class slots.
2325 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
2326 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
2328 * tests/test-init.lisp: Check test-database-underlying-type for
2331 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2332 * sql/operations.lisp: complete remaining operations for the sql
2333 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
2334 UNION, INTERSECT, BETWEEN.
2335 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
2336 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
2337 * tests/test-syntax.lisp: add tests for new operations.
2338 * tests/test-fdml.lisp: add tests for queries based on new operations.
2339 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
2340 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
2341 * TODO: removed entries done.
2343 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2344 * tests/benchmarks.lisp: Add immediate vs. deferred
2347 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2348 * Version 2.10.13: Now works on openmcl 0.14.2
2349 * sql/objects.lisp: Add :retrieval :immediate for
2351 * tests/test-init.lisp: Add non-index fields for testing
2352 join class employee-addresss
2353 * test/test-oodml.lisp: Add tests for retrieval immediate
2354 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
2355 values which are now listifed by openmcl 14.2.
2356 * sql/objects.lisp: more framework for supporing immediate retrieval
2358 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2359 * docs/intro.xml: Upload location of a README file
2360 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
2361 changing the type-specifier. Use a lisp type of (OR NULL FOO)
2362 for a specified-type of FOO unless :db-constraints :not-null.
2363 No need to specialize finalize-inheritance for openmcl.
2364 * tests/test-*.lisp: Rename fields so that joins occur on
2365 fields with different names. This ensures that join code is
2366 selecting the proper name.
2367 * test/test-init.lisp: Add :base-table for employee-address
2368 view class for testing.
2369 * sql/objects.lisp: Use view-table rather than name of table
2370 in a number of places to fix errors noted with using :base-table.
2372 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2373 * sql/objects.lisp: replace *update-records-on-make-instance* with
2374 *db-auto-sync* which also controls both automatic creation of
2375 new records on creation of new instance and updating of record
2376 fields on setting of instance slots (as suggested by Edi Weitz).
2377 * tests/test-init.lisp: replace *update-records-on-make-instance*
2378 with *db-auto-sync*.
2379 * sql/package.lisp: replace *update-records-on-make-instance*
2380 with *db-auto-sync*.
2381 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
2382 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
2383 and *default-database* in FIND-ALL.
2384 * sql/package.lisp: import time functions from CLSQL-BASE.
2385 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2386 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2387 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2388 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
2391 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2392 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
2393 now return a sql-object-query type rather than directly performing a query.
2394 This improves CommonSQL conformance.
2395 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
2396 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
2397 depend on sql-object-query-type.
2398 * sql/loop-extensions.lisp: Move from base package
2399 * classic/package.lisp: remove references to map-query and do-query
2401 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2402 * TODO: New section on optimizations, especially optimizing JOINs.
2403 * sql/objects.lisp: Have :target-slot return of list of lists rather
2404 than a list of cons pairs to be conformant with CommonSQL.
2405 Make :target-slot much more efficient by using a SQL inner join
2406 statement and just requiring one SQL query. Add :retrieval :deferrred
2407 to target-slot joins. Add placeholder for update-objects-join.
2408 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
2409 and process them for query output-sql.
2411 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2413 * base/basic-sql.lisp: Avoid multiple evaluation
2414 of query-expression in DO-QUERY
2415 * sql/objects.lisp: Make SELECT a normal function.
2416 SELECT now accepts type-modified database identifiers, such as
2417 [foo :string] which means that the values in column foo are returned
2418 as Lisp strings. Add new *update-records-on-make-instance* special
2419 variable controlling automatic creation of new instances. Add missing
2420 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
2421 * sql/packages.lisp: Export *update-records-on-make-instance*
2422 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
2424 * test/test-fdml.lisp: Add tests for type-modified
2425 database identifiers.
2426 * test/test-init.lisp: Stop using add-relation since implementing
2427 many-to-many joins. Use *update-records-on-make-instance*
2428 to automatically store records on instance creation. Add many-to-many
2429 employee-address view-class.
2431 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2433 * base/loop.lisp: Add object iteration. Use :result-type
2434 :auto for result-set. Remove
2435 duplicate (and non-correct) code for non-list variables by
2436 simply making an atom variable into a list.
2437 * sql/package.lisp: Remove unnecessary clsql-sys package
2438 and replace it with clsql.
2439 * sql/metaclasses.lisp: Properly store specified-type from
2440 direct-slot-definition and then store translated type in
2441 effective-slot-definition
2442 * sql/classes.lisp: Don't output type in sql-output
2443 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
2444 [foo :integer] as fields in SELECT.
2445 * sql/query.lisp: Set default for :result-types to :auto in
2447 * sql/objects.lisp: Use specified-type when invocating
2448 database-get-type-specifier. def-view-class macro now returns
2450 * base/basic-sql.lisp: Make :AUTO the default value for
2451 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
2452 * sql/objects.lisp: Add bigint type
2453 * test/tests-basic.lisp: Add tests for :result-types for
2454 MAP-QUERY and DO-QUERY
2455 * test/test-fdml.lisp: Add test for result-types in LOOP
2456 and also using single symbol rather than a list for variables.
2457 Add test that default :result-types is auto for FDML QUERY.
2458 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
2459 of SQL-IDENT-ATTRIBUTE.
2460 * test/test-oodml.lisp: Enable OO loop iteration test,
2461 modify it so it doesn't depend on boolean where.
2463 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2465 * sql/objects.lisp: added derived type specifier for universal time.
2466 * sql/package.lisp: added #:universal-time to clsql-sys exports.
2467 * tests/test-oodml.lisp: added test for translation of boolean slots
2468 in SELECT with object queries.
2470 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2471 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
2472 for odbc/postgresql backend.
2473 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
2474 it can handle NIL values from the ODBC driver
2475 * tests/benchmarks.lisp: New file with initial
2477 * sql/relations.lisp: fix to add subclassing support,
2478 minor optimizations [Edi Weitz]
2480 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2482 * base/conditions.lisp: Add *backend-warning-behavior*
2484 * db-postgresql-socket/postgresql-socket-sql.lisp:
2485 Honor value of *backend-warning-behavior*
2486 * tests/test-fdml.lisp: Remove test of raw boolean value
2487 since different backends handle this differently. Add
2488 test for :column attribute.
2489 * tests/test-oodml.lisp: Add tests for boolean slot value
2490 and for :void-value attribute
2491 * tests/test-init.lisp: Use *backend-warning-behavior*
2492 to suppress warnings from postgresql about implicitly
2493 creating primary key in tables. Add new address table.
2495 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2497 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
2498 result-types is :auto
2499 * sql/objects.lisp: Properly handled writing/reading Boolean
2500 values from SQL database when retrieving objects.
2501 * test/test-fdml.lisp: Add another test for boolean results
2502 * test/utils.lisp: Fix incorrect declaration
2504 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2506 * sql/generics.lisp: add generic function for SELECT.
2507 * sql/objects.lisp: make SELECT a method specialisation.
2508 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
2509 referred to are View Classes.
2510 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
2511 query-expression arg evaluates to a list, then we have an object
2513 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
2515 * TODO: remove items done and add a todo for SELECT.
2516 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
2518 * sql/sql.lisp: add :field-names arg to QUERY.
2519 * tests/test-fdml.lisp: minor rework to use :field-names arg to
2522 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2523 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
2524 or more View Classes.
2525 * sql/objects.lisp: make the :flatp argument to SELECT work with
2527 * sql/objects.lisp: make SELECT accept a :result-types argument
2528 (defaults to :auto) which is passed on to QUERY.
2529 * sql/objects.lisp: SELECT returns field-names as a second value.
2530 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
2531 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
2532 to SELECT and take only first value as appropriate.
2533 * tests/test-fdml.lisp: add two new tests for query result coercion
2534 and the field-names returned as a second value from SELECT.
2535 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
2537 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2538 * Version 2.10.6-pre1
2539 * sql/metaclasses.lisp: Add void-value slot
2540 * doc/csql.xml: Update def-view-class documentation
2541 * test/test-init.lisp: Change old :db-type to :db-kind.
2542 Remove old :nulls-ok attributes.
2543 * sql/objects.lisp: Add new universal-time and bigint
2544 types. Optimize reading of integers using parse-integer
2545 rather than read-from-string.
2546 * */*.lisp: Merge clsql-base-sys and clsql-base packages
2547 into clsql-base package
2548 * classic/sql.lisp: Move large object support into base, leaving
2549 classic without any functionality that is provided in the clsql
2551 * classic/package.lisp: Rename clsql-classic-sys package to
2552 its former nickname of clsql-classic
2554 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2555 * Version 2.10.5: SQLite backend now passes all result-types tests
2556 * clsql-sqlite.asd: Depend on clsql-uffi system
2557 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
2558 for efficiency and code reuse.
2559 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
2560 for better cross-implementation compatibility.
2562 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2564 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
2566 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
2567 bug on SBCL in result-field-names function as reported by Marcus Pearce
2568 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
2569 manifest in SBCL testing
2571 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2573 * sql/database.lisp: Conform more to CommonSQL output
2574 for STATUS command [Marcus Pearce]
2575 * sql/sqlite-sql.lisp: Rework to use result-types
2576 * sql/sqlite-api-clisp.lisp: Add compatibility layer
2577 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
2578 be cleaned up of most clisp reader conditionals
2579 * sql/test-init.lisp: Now run field type tests on sqlite
2582 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2584 * base/basic-sql.lisp: Set default value of :result-types
2585 to :auto for more CommonSQL conformance.
2586 * test/test-fdml.lisp: Add tests for numeric value of fields
2589 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2590 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
2591 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
2592 Return field names as second value for QUERY. This can be overridden
2593 for efficiency with the new keyword :FIELD-NAMES set to NIL
2594 in the QUERY invocation.
2595 * test/test-fdml.lisp: Add tests for new field-name feature
2596 * sql/metaclass.lisp: Remove old Lispworks cruft
2597 and replace it with invocation of new code in kmr-mop.lisp
2598 which actually works with Lispworks 4.2
2599 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
2601 * base/db-interface.lisp: Document the multiple values
2602 returned by DATABASE-ATTRIBUTE-TYPE so matches the
2603 undocumented CommonSQL behavior.
2604 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
2605 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
2606 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
2607 Implement CACHE-TABLE-QUERIES.
2608 * db-odbc/odbc-sql.lisp: Fix attribute-type function
2609 * test/test-fddl.lisp: Add tests for attribute type
2610 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
2612 * base/classes.lisp: Add attribute-cache slot to database clas
2613 * base/initialize.lisp: initialize-database-type now automatically
2614 loads database-type backend as needed.
2615 * base/test-init.lisp: Utilize new initialize-database-type functionality.
2616 * TODO: remove items done
2618 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2620 * sql/objects.lisp: remove create/drop-sequence-from-class.
2621 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
2622 * sql/objects.lisp: improved CommonSQL compatibility for
2623 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
2624 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
2625 * sql/generics.lisp: move generics from objects.lisp to here.
2627 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2628 * Version 2.9.6-pre1
2629 * db-mysql/mysql-client-info.lisp: Add client version 4.1
2631 * sql/sql.lisp: Make *default-database* the default for
2634 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2636 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
2638 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
2639 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
2640 on a metaclass specialized from standard-db-class.
2643 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2644 * Version 2.9.4: Multiple changes to support Allegro's "modern"
2645 lisp which uses a lowercase reader and has case-sensitive symbols
2646 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
2647 exposed by case-sensitive mlisp.
2649 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2650 * Version 2.9.3: All tests now pass on all platforms!
2651 * LATEST-TEST-RESULTS: New file with summary of test results
2652 * sql/generics.lisp: New file for generic function definitions.
2653 * test/test-init.lisp: Display names of skipped tests.
2654 Use unwind-protect to ensure disconnect
2655 * sql/objects.lisp: Change database-type to database-underlying-type
2656 so that actual database engine is properly identified
2657 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
2658 return an ISO timestring for compatibility with other drivers.
2659 Workaround bug in MyODBC for LIST-TABLE-INDEXES
2660 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
2661 returns floating-point values for floor and truncate operations
2662 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
2663 * tests/test-basic.lisp: Port to regression tester
2664 * test/test-init.lisp: Output to *report-stream*
2665 * docs/appendix.xml: Document ODBC and SQLite backends.
2666 * sql/classes.lisp: Make output-sql require a database parameter.
2667 This allows SQL generation to have the proper case to support
2668 the differences in case handling between CommonSQL API,
2669 Postgresql, MySQL, Oracle.
2671 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2672 * Version 2.9.2: Improvments in database capability introspection
2673 and querying. Support transactions in MySQL where available.
2674 All tests now pass on MySQL and SQLite in addition to postgresql
2675 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
2676 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
2677 DATABASE-LIST-SEQUENCES.
2678 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
2679 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
2680 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
2681 * tests/*.lisp: Check database capabilities and remove tests which
2682 the database backend does not support
2683 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
2684 controls whether InnoDB tables will be created when supported on
2685 the underlying MySQL server.
2687 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2688 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
2689 supported by all database backends (except AODBC since
2690 AODBC doesn't support index querying)
2691 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
2692 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
2693 to support index queries
2694 * db-aodbc/aodbc-sql.lisp: Filter driver manager
2695 "information_schema" tables from LIST-TABLES
2696 * tests/test-basic.lisp: Remove table after testing
2697 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
2698 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
2699 which gets the underlying type of database -- required
2700 when dealing with ODBC databases and want to query
2701 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
2702 as first database-backend specific feature. Is T on
2703 :mysql, NIL on other backends. Change DROP-TABLE to
2706 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2707 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
2709 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2711 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
2712 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
2714 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2715 * Version 2.8.0: New API function: LIST-DATABASES
2716 * base/utils.lisp: Fix command-output on CMUCL/SBCL
2717 * db-*/*-sql.lisp: Add new database-list function
2718 * base/database.lisp: Add new LIST-DATABASES command
2720 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2722 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
2723 * db-sqlite/sqlite-api-uffi.lisp: Print error string
2726 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2728 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
2731 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2733 * base/objects.lisp, base/classes.lisp: Patch
2734 for db-kind from Eduardo Munoz
2736 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2738 * base/basic-sql.lisp: Fix FLATP in QUERY
2740 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2741 * Version 2.7.3: Implement RECONNECT
2743 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2744 * Version 2.7.2: Fix ODBC on Lispworks Windows
2746 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2747 * Version 2.7.1: Fix for new ODBC backend.
2748 clsql-odbc now works on SBCL, CMUCL, OpenMCL
2749 in addition to AllegroCL and Lispworks.
2751 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2752 * Version 2.7.0: New backend: ODBC. Tests as
2753 well as AODBC backend on Allegro,Lispworks.
2754 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
2755 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
2756 to explicitly set ODBC2 support. Add BIGINT support.
2757 Add result-types support. Added SQLTables.
2758 Fix array type in fetch-all-rows. Make width
2759 changable by database or query.
2760 * base/utils.lisp: Add process functions
2761 * base/package.lisp: Export utils to CLSQL-BASE-SYS
2762 * db-aodbc: Implement sequence functions,
2763 database-list-tables, database-list-attributes
2764 * tests/utils.lisp: Add support for ODBC backend,
2765 rework READ-SPECS to use +all-db-types+
2766 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
2769 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2770 * Version 2.6.13. Requires UFFI version 1.4.9
2771 * db-odbc/*.lisp: Further porting.
2772 Pre-alpha code! But, basic query is now working.
2774 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2776 * base/transactions.lisp: Add quote for macro
2777 expansion of WITH-TRANSACTIONS [Time Howe]
2778 * db-sqlite/sqlite-sql.lisp: Support memory database
2779 in database-probe [Ng Pheng Siong]
2780 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
2781 The DBI layer is not finished.
2783 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2785 * sql/objects.lisp: add :root-class functionality for
2786 list-classes and add duration type support [Marcus Pearce]
2787 * db-odbc: Add mid-level [DBI] layer
2789 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2791 * db-aodbc: Add methods for generic functions, some are
2792 not yet implemented.
2793 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
2796 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2798 * base/package.lisp: Add missing symbols [Marcus Pearce]
2800 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2802 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
2803 * utils/time.lisp: Multiple fixes [Marcus Pearce]
2804 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
2806 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2808 * sql/*.lisp: Remove schema versioning cruft
2810 * Makefile: Add classic subdirectory
2812 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2814 * sql/sql.lisp: Fix TRUNCATE command, bug reported
2816 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
2817 specific and easy for an application to directly support.
2818 Idea from Marcus Pearce.
2819 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
2820 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
2821 Keep low-level interface for future optimization
2822 supporting LIST-ATTRIBUTE-TYPES command.
2823 * Makefile: Add to db-sqlite and test directories.
2824 Include them in top-level Makefile
2826 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2828 * sql/relations.lisp: Add missing file
2829 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
2830 * test/test-time.lips: New file [Marcus Pearce]
2832 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2834 * test/test-init.lisp: Properly handle object
2835 creation. Close database after use.
2836 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2837 function so can have methods specialized on
2838 table being a string or an sql-table object.
2839 * base/pool.lisp: Really fix CMUCL locking
2841 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2843 * test/test-init.lisp: Signal correctly
2844 if any errors occurred in any test suite
2845 * base/loop-extensions.lisp: Fix error
2846 introduced for Lispworks
2847 * base/pool.lisp: Fix locking for CMUCL
2848 * base/objects.lisp: Remove schema-version cruft
2850 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2851 * Version 2.6.2: New CLSQL API functions:
2852 DESCRIBE-TABLE AND TRUNCATE-DATABASE
2853 Currently, this are only supported on :postgresql
2854 and :postgresql-socket
2855 * base/database.lisp: automatically load ASDF system
2856 in CONNECT if not already loaded
2857 * base/tests.lisp: disconnect database after testing
2858 * base/*.lisp: Remove CLOSED-DATABASE type in favor
2859 of storing open/closed status in slot of database
2860 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2861 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2862 DATABASE-DESCRIBE-TABLE
2863 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2864 * base/conditions: Remove duplicate condition
2865 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2866 * base/recording.lisp: Add new :QUERY type for recording
2868 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2869 * Version 2.6.1: documentation fixes, merged
2870 classic-tests into tests
2872 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2873 * Version 2.6.0 released: New API functions
2874 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2875 * doc/ref_clsql.xml: Document new functions
2876 * base/database.lisp: New API functions
2877 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2878 * base/utils.lisp: Fix use of position-char.
2879 Add COMMAND-OUTPUT used by backends for running
2880 external programs. Fix parsing of SQL*NET-compatible
2882 * base/loop-extension.lisp: Simplify package use
2883 for Lispworks and Allegro
2884 * db-*/*-sql.lisp: Added DATABASE-CREATE,
2885 DATABASE-DESTORY, PROBE-DATABASE methods
2886 * tests/test-init.lisp, clasic-tests/tests.lisp:
2887 Use destroy-database and create-database to ensure
2888 testing with empty database
2889 * tests/test-connection.lisp: Add tests for
2890 parsing of string connection-specs
2891 * examples/run-tests.sh: New file for running
2892 test suite on all installed CL implementations
2893 * examples/clsql-tutorial.lisp: moved from
2895 * examples/dot.clsql-tests.config: New file
2896 giving an example test configuration
2897 * test/README: Add notes about rtest/ptester
2898 downloads and link to sample test configuration file.
2900 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2901 * Version 2.5.1 released:
2902 * tests/*.lisp: Rework so tests are run
2903 on multiple backends automatically based
2904 on the contents of ~/.clsql-tests.config.
2905 Reuse helper functions from classic-tests.
2906 * base/database.lisp: Support connection-spec
2907 as string for CONNECT
2908 * classic-tests/tests.lisp: Automatically
2909 load database backends as needed.
2911 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2912 * Version 2.5.0 released:
2913 All tests for CLSQL and CLSQL-CLASSIC pass
2915 * base/loop-extension.lisp: Add Lispworks
2916 loop-extension. Improve type specifying on
2919 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2920 * Version 2.4.2 released:
2921 loop extension now supported on Allegro, all
2922 CLSQL-TESTS pass on Allegro.
2923 * sql/metaclasses.lisp: Some optimization
2924 of compute-slots, be selective when
2925 ordered-class-slots needs to be called
2926 instead of class-slots
2927 * TODO: add URL with documentation on
2928 extending Lispworks LOOP form
2930 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2931 * Version 2.4.1 released: CLSQL-TESt suite passes
2932 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2933 Allegro and Lispworks pass all tests except for
2934 FDML/LOOP/1 since the loop extension have not yet
2935 been ported to those implementions.
2936 * sql/metaclasses.lisp: Added new slot to standard-db-class
2937 to hold user-specified type. OpenMCL adjustments to compensate
2938 for its type-predicate function. Since AllegroCL, Lispworks,
2939 and OpenMCL have different slot orders, added compute-slots
2940 and ordered-class-slots functions so their slot order matches
2943 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2944 * Version 2.4.0 released: All tests for clsql-classic now finish
2945 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2946 mysql, postgresql, postgresql-sockets, and sqlite backends.
2947 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2948 * classic-tests/tests.lisp: Fix package name of
2949 number-to-sql-string.
2950 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2951 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2952 now passes tests on all support UFFI platforms.
2953 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2955 * multiple: Finish renaming of :types keyword to :result-types for
2956 greater CommonSQL compatibility, including documentation
2957 * sql/basic-cmds.lisp: Remove obsolete file
2959 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2960 * Version 2.3.3 released
2961 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2962 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2963 * Fix for schema table [Marcus Pearce]
2964 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2965 * Fixes to test suite [Marcus Pearce]
2967 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2968 * db-*/*-sql.lisp: Ensure that expr in
2969 database-query-result-set is a string
2970 * Documentation integration
2972 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2973 * With for Marcus Pearce's excellent work, I've merged
2974 his clsql-usql port into clsql. The original clsql
2975 interface is available in the clsql-classic package.
2977 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2978 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2979 adding further support for providing backend for UncommonSQL
2981 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2982 * Integrate patch from Aurelio Bignoli for SQLite backend
2984 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2985 * Converted documentation to XML format
2986 * Made package installable with asdf-install
2988 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2989 * Add for-each-row macro
2991 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2992 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2994 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2995 * Add support for SBCL, OpenMCL, and SCL
2996 * Add *load-truename* to search path for clsql's
2999 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
3000 * Rework use of file types in .asd files
3002 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
3003 * Add .asd definition files for ASDF users
3005 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
3006 * Restructure directories for Common Lisp Controller v3 compatibility
3008 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
3009 * Also change case of logical host in loader files
3010 * Rework handling of logical pathnames
3012 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
3013 * Change case of logical host
3015 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
3016 * clsql-base.system: Added base package that can be used without
3017 high-level SQL commands. Used for adding support for UncommonSQL.
3018 * *.system: Reworked logical pathnames to be more consistent with
3019 Common Lisp Controller.
3020 * debian/*: Completed initial Debian support
3022 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3024 * sql/transactions.cl:
3025 Added transaction support. Functions/macros added:
3026 with-transaction, commit-transaction, rollback-transaction,
3027 add-transaction-commit-hook, add-transaction-rollback-hook
3029 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3032 * sql/functional.cl:
3033 Added pool support in connect/disconnect and with-database.
3034 Removed with-db-from-pool as with-database can now works with the connections pool
3036 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3041 Completed connection pool.
3042 Added with-db-from-pool macro.
3044 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3046 Added initial support for connection pool
3047 * sql/transactions.cl
3048 Took transaction code from UncommonSQL and integrated
3049 into CLSQL code. See file for disclaimer about why this
3052 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3053 * interfaces/postgresql/postgresql-sql.cl:
3054 Fix keyword typo in database-read-large-object
3055 * interfaces/mysql/mysql-loader.cl
3056 Fix loading on Win32
3057 * test-suite/tester-clsql.cl
3058 Fix type coercion of double-float
3060 Added debian docbook catalog, made it the default
3062 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3063 * interface/postgresql/postgresql-api.cl:
3064 * interface/postgresql/postgresql-sql.cl:
3066 * sql/db-interface.cl:
3067 Added large objects support for postgresql.
3069 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3070 * src/postgresql-socket/postgresql-socket-api.cl:
3071 Fixed find-foreign-function call, eliminated crypt warning
3073 Multiple improvements
3075 Moved functionality from low-level interfaces to this file
3076 via generic functions
3077 * test-suite/tester.cl:
3078 Added test with acl-compat-tester, moved others to old-tests
3081 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3083 Reinstated commented out sections
3084 * interfaces/postgresql/postgresql-loader.cl:
3085 * interfaces/mysql/mysql-loader.cl:
3086 Updated find-forieign-library support.
3087 * interfaces/postgresql-socket/postgresql-socket-package.cl:
3088 Fixed require form for Lispworks (Thanks Marc Battyani!)
3089 * interfaces/postgresql-socket/postgresql-socket-api.cl:
3090 Fixed eval of def-function for crypt library.
3092 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3093 * Added interface to support USQL high-level rouines
3095 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3096 * Separated db-interface and conditions from sql/sql.cl
3097 * Improved foreign library loading testing
3098 * interfaces/postgresql/postgresql-api.cl
3099 Added PQisBusy function
3100 * interfaces/clsql-uffi/clsql-uffi.cl
3101 Fixed sign error for 64-bit processing
3103 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3104 * interfaces/postgresql-socket/postgresql-socket-api.cl:
3105 Fixes to read-double-from-socket. Added 64-bit integer support.
3106 * test-suite/xptest-clsql.cl
3107 Added testint for 64-bit integers
3108 * Additons to installation docs
3110 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3111 * interfaces/postgresql-socket/postgresql-socket-api.cl:
3112 Implemented direct socket reading for field type :double
3113 * Added usage information for :types to documentation
3114 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
3116 * interfaces/clsql-uffi: Created new directory. Split common
3117 interface routines that use UFFI into this package. Required
3118 especially to support direct reading of 64-bit integers into
3119 bignums and bypassing temporary strings.
3120 * test-clsql.cl: Updated to test postgresql-socket's
3121 read-double-from-socket function.
3122 * test-suite/xptest-clsql.cl
3123 Started work on test suite
3125 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3126 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
3127 mysql-fetch-field-direct Got :auto types working
3128 * interfaces/postgresql/postgresql-api.cl
3129 * interfaces/postgresql-socket/postgresql-socket-api.cl
3130 Added pgsql-field-types enum. Got :auto types working.
3132 Renamed :field-types to :types.
3134 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3135 * Added field-types parameter to query, database-query,
3136 database-query-result-set, map-query. Haven't added code
3137 to utilize field types, yet.
3138 * Changed postgresql-socket result set from cons to a structure
3139 * Updated test-clsql.cl to use automated testing with a config
3141 * Changed return types of field accessors from cstring to
3142 (* :unsigned-char). This prepares for being able to use specified
3143 type conversions when taking field data into lisp.
3144 * Added field-type processing for most interfaces. Not done yet.
3146 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3147 * doc/ref.sgml: Updated MAP-QUERY example to use
3148 *read-default-float-format* (John Foderaro)
3149 * Extensive work to foreign library loaders and .system files to
3150 check for successful loading of foreign libraries.
3151 * Modified test-clsql.cl to allow more modularity and
3152 automated testing in future release.
3153 * mysql/mysql-sql.lisp: Added field types
3155 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
3156 * mysql/mysql-sql.lisp:
3157 - Added support for Allegro CL and Lispworks using UFFI layer
3158 - Changed database-connect to use mysql-real-connect. This way,
3159 can avoid using double (unwind-protect)
3160 - Changed database-connect to have MySQL library allocate space
3161 for MYSQL structure. This will make the code more robust in
3162 the event that MySQL library changes the size of the mysql-mysql