1 2014-04-24 Russ Tyndall <russ@acceleration.net>
2 * oodml.lisp, test-oodml.lisp Better handling of view-slots of
3 type symbol/keyword. Better handling of printing and reading
4 bindings (per mailing list request, always read and write in base
7 2014-02-24 Russ Tyndall <russ@acceleration.net>
8 * oodml.lisp bind *print-length* to nil before printing
9 lists/arrays to the database.
11 2014-01-30 Russ Tyndall <russ@acceleration.net>
12 * sqlite3-sql.lisp specify :utf-8 as the default encoding if there
13 is not one (allows :clsql-cffi to be closer to working for this
16 I ran the test suite successfully once with :clsql-cffi, but there
17 after I got spurious errors and especially unrecoverable errors
18 while connecting about the database being locked
20 2014-01-30 Russ Tyndall <russ@acceleration.net>
21 * sqlite3-sql.lisp, fddl.lisp Dont compare database-identifiers
22 with invalid comparison operators
24 2014-01-30 Russ Tyndall <russ@acceleration.net>
25 * generic-odbc.lisp, ooddl.lisp, generic-postgresql.lisp,
26 test-init.lisp, ds-nodes.lisp, generic-odbc.lisp, odbc-sql.lisp
28 auto-increment-column support improvement (mssql esp, now will
29 auto-fill after insert). Use +auto-increment-names+ to determine
30 auto-increment-column-p.
32 This triggered much test failing as regards normalized classes /
33 autoincrement primary key stuff.
35 New odbc-postgresql-database sub-type
37 POSSIBLY BREAKING CHANGES:
38 1 ) Previously all classes in a normalized heirachy had their p-key
39 marked as "auto-increment". Usually auto-increment means a key
40 supplied by the database system, so this was decidedly
41 non-standard usage (clsql is explicitly providing the key for all
42 normalized subclasses of any given parent see ds-nodes.lisp). Some
43 RDMS will not allow insertion/updates of autoincrement columns
44 without hoop jumping and, as it doesnt really make much sense, I
45 removed the "auto-increment" aspects of normalized sub-classes.
46 Now the primary keys are chained regardless. The parent-most key
47 can be autoincrement or not.
49 2 ) ODBC Postgresql connections are now both GENERIC-ODBC-DATABASE
50 and GENERIC-POSTGRESQL-DATABASE. Probably not a widely used path,
51 but this change allows most of the previously failing tests to
52 pass on this backend (we now format stuff correctly for postgres).
53 I anticipate this probably is not perfect yet (IE: I probably
56 2014-01-29 Russ Tyndall <russ@acceleration.net>
57 * oodml.lisp, generics.lisp - added
58 clsql-sys::view-classes-and-storable-slots generic (added method
59 previously). Also added to-database-p keyword to allow overrides
60 to distinguish between the two situations. Mostly so that
61 clsql-helper:dirty-slots-mixin can filter slots when writing
62 values to the database but still allow all slots to be read from
65 2014-01-17 Russ Tyndall <russ@acceleration.net>
66 * oodml.lisp, generics.lisp - added filter-select-list generic
67 to allow fine grained control of generated query/object mappings
69 2014-01-07 Russ Tyndall <russ@acceleration.net>
70 * clsql-uffi.lisp, sqlite3 auto-increment support
71 * clsql-uffi.lisp, test-basic.lisp, fixes related to unsigned vs
72 signed ints (thanks Aaron Burrow)
73 * cleaning and testing
75 2013-09-27 Russ Tyndall <russ@acceleration.net>
76 * fixed bug converting to boolean in db-mysql/mysql-sql.lisp
77 from github user Sectoid https://github.com/UnwashedMeme/clsql/pull/1
79 2013-06-19 Russ Tyndall <russ@acceleration.net>
80 * sql/oodml.lisp, db-postgresql-socket3/sql.lisp,
81 db-mysql/mysql-objects.lisp, sql/generic-odbc.lisp
82 Refactored read-sql-value similar to the other recent refactorings
84 * the symbol case now uses intern instead of read-from-string
85 (which may not return a symbol and could have security issues
86 since read-eval was not being unset)
88 * read-eval is now off for all cases
90 * centralized logic into a single case statement, hopefully making
91 this more readable and debuggable
93 * TODO: make these refactorings to the oracle backend (I cannot
94 test against oracle and am loathe to change without testing
96 2013-06-19 Russ Tyndall <russ@acceleration.net>
97 * sql/mysql-objects.lisp
98 Found and refactored a way some more eql specified methods of
99 database-get-type-specifier in mysql
101 2013-06-18 Russ Tyndall <russ@acceleration.net>
102 * sql/oodml.lisp, sql/mysql-objects.lisp
103 refactored database-output-sql-as-type in a similar fashion to
104 the previous refactor of database-get-type-specifier (fewer
105 methods using case instead of eql specifiers)
107 * removed very strange definition of outputing floats as strings
108 for something sane (it was previously doing silly work like
109 setting the default read float type (which AFAICT doesnt affect
112 * half of the cases nil returned "" other times it returned nil,
113 now if we get a null value we return nil always
115 * removed odd-logic (seemingly untouched since the initial import),
116 that removed null characters from printed lists. If we have #\null
117 in a printed list, we had probably better figure out what went wrong
118 there rather than destructively modifying the list output on the way
119 to the DB ;; removed (substitute-char-string escaped #\Null " ")
121 2013-06-18 Russ Tyndall <russ@acceleration.net>
122 * sql/generic-odbc.lisp, sql/generic-postgresql.lisp, sql/oodml.lisp
125 refactored database-get-type-specifier for postgres and mssql
127 Single methods with a case on the symbol arg (similar to the recent
128 refactoring in oodml.lisp)
130 This reduces line count and generally makes it easier to find and
131 read all the backend-specific types
133 2013-06-10 Russ Tyndall <russ@acceleration.net>
134 * sql/oodml.lisp, sql/generic-postgresql.lisp, doc/ref-fddl.xml,
137 Updated get-database-type-specifier to handle text/longchar type
140 * added a warning above defaulting to VARCHAR (since its probably
141 NOT what is expected on a bad type specifier).
143 * added a case where the specified type being a string, passes
144 that string directly (to better/more easily allow db-specific
147 * added cases where longchar or text converts to text, and
148 exported those symbols (as this seemed type seemed to be missing
149 from fddl/oddl anyway).
151 * reorganized these default methods into a single method with a
152 case statement rather than many eql specified methods (about half
155 * updated the docs to use text instead of longchar since text is
156 a more standard db-type (pg,my,and ms all use text)
158 2013-11-23 Kiss Kalman <kami@zalaszam.hu>
159 * utils/sql.lisp: Commit patch adding ccl getenv support
161 2013-04-17 Kevin Rosenberg <kevin@rosenberg.net>
163 * sql/utils.lisp: Patch from Ben Hyde to add weak hash table
166 2013-03-07 Ryan Davis <ryan@acceleration.net>
167 * db-postgresql-socket/postgresql-socket-api.lisp - bugfix to
168 adapt to changes in md5:md5sum-sequence. CLSQL now requires a
169 version of MD5 released on or after 2012-11-25 (the latest version
170 currenty in quicklisp). Thanks to Nicolas Neuss for the bug
172 * db-odbc/odbc-sql.lisp - keep a reference to the original
173 connection spec used to create `odbc-database` connections
175 2013-01-09 Russ Tyndall <russ@acceleration.net>
176 sql/oodml.lisp - changed view-classes-and-storable-slots to a
177 method (as it was intended to be all along)
179 2012-12-19 Kevin Rosenberg <kevin@rosenberg.net>
182 2012-11-20 Russ Tyndall <russ@acceleration.net>
183 ## Large refactoring of sql/oodml.lisp and surrounding code
184 * cleaned up update-records-from-* to utilize a single codepath
185 previously there was much duplicate code
186 * tried to further unify direct/effective slot-defs
187 * cleaned up much of the normalized classes code to be more
188 consistent in how it operated, and the code it used (less
189 copy/paste more functions)
190 * tried to standardize iteration a bit, previously almost all
191 of the iteration constructs in CL were used. Tried to
192 standardize on loop for readability / cohesiveness
193 * made functions to more easily look up particular slots, since
194 this was being done differently in each function
195 * added more doc-strings and updated documentation about
197 * inner-joins that are referenced in where clauses are no longer
198 added to the select table list (since they are also referenced
199 in the join position and this led to sql errors)
200 * collect-table-references methods added for sql-ident-table and
204 * disallow where-less updates from objects (ie cannot call
205 update-records-from* with a keyless object)
206 * ordered-class-direct-slots now returns direct-slot-definitions
207 instead of effective-slot-definitions (as per name)
208 * direct-slot-definitions now contain the db-info hash table (same
210 * removed this-class arg from update-instance-from-records - used to
211 be used for normalized code, no longer needed for that.
212 * find-all - bug fixes in table references, previously where clauses
213 surrounded by a list would have none of their references added to
214 the select. This was being exploited by certain code paths. Now
215 all where clauses are searched
216 - No longer includes order-by and distinct as columns in the select
217 list. The values seemed to be ignored in every code path and distinct
218 seemed to be intended to be used as a boolean anyway
221 2012-11-20 Nathan Bird <nathan@acceleration.net>
223 * update-objects-joins - changed the default of slot from t (which
224 used to mean :deferred) to :immediate (to match the default
225 behavior of other parts of the system). It also seemed like a bad
226 default to pull all the slots that were explicitly specified to be
227 not pulled by default. This function now accepts more special
228 values (:immediate, :deferred, :all, or a list of slots). To get
229 the old behavior call with :slots :deferred.
232 2012-10-30 Russ Tyndall <russ@acceleration.net>
233 * sql/command-object.lisp - added dates/times to the parameter value
234 coersion and pulled this into a new generic prepare-sql-parameter
236 2012-09-04 Kevin Rosenberg <kevin@rosenberg.net>
237 * Version 6.3 released
239 2012-09-04 Russ Tyndall <russ@acceleration.net>
240 * sql/expressions.lisp - Try to respect the casing of symbols
241 where it seems intentional (ie: is not default). This should fix
242 a failing test case, and I think behaves more understandibly.
244 If you specify a casing '|Foo Bar| lets treat that a string "Foo Bar"
245 and output it escaped
247 2012-08-28 Ryan Davis <ryan@acceleration.net>
248 * db-sqlite3/sqlite3-api.lisp - allow pathnames in the connection
249 settings, so '("/db/my.sqlite") and '(#P"/db/my.sqlite") are
250 equivalent. Updated the docs to match.
252 2012-08-17 Russ Tyndall <russ@acceleration.net>
253 * db-postgresql-socket3/package.lisp - shadow
254 postgresql-notification for compatibility with new
255 cl-postgres (Thanks Zach)
257 2012-07-09 Russ Tyndall <russ@acceleration.net>
258 * sql/oodml.lisp - fixed a bug where the order by was being
259 destructively modified, causing odd caching issues when the
260 selected object was not statically known (eg unreferenced tables
261 could show up in the query if they were cached by a previous call
262 through this function. I replaced this code with a
263 non-destructive variant which should solve this.
265 Thanks to Philipp Marek for the bug report
267 2012-06-25 Russ Tyndall <russ@acceleration.net>
268 * sql/util.lisp, sql/metaclasses.lisp
269 Dequote database-identifiers if needed (passed a quoted symbol)
270 Metaclass args come through unquoted, so this eases interactions
273 2012-06-22 Russ Tyndall <russ@acceleration.net>
274 * sql/metaclasses.lisp: Changed compute-effective-slot-definition
275 to correctly copy the autoincrement-sequence slot to the ESD
276 previously it was being skipped (seemingly by accident). Thanks
277 to flip214 on #lisp for the bug report
279 2012-04-26 Kevin Rosenberg <kevin@rosenberg.net>
280 * Version 6.2 released: thanks to all the contributors!
282 2012-04-25 Nathan Bird <nathan@acceleration.net>
284 * doc/threading-warnings.txt: Adding some notes from J.T.Klein
285 about the current state of thread-safety in clsql. This should be
286 incorporated into the main docs at some point.
288 2012-04-25 Russ Tyndall <russ@acceleration.net>
289 * sql/expressions.lisp (output-sql): on rendering update/insert
290 expression values, ensure that *in-subselect* is bound to T
291 so that the values will be correctly paren delimited
293 2012-04-24 Nathan Bird <nathan@acceleration.net>
295 * sql/expressions.lisp (output-sql): on mysql CREATE TABLE
296 statements use 'ENGINE=innodb' instead of 'Type=InnoDB'. This has
297 apparently been preferred since mysql 4.1 and mysql 5.5 removed
298 type as a valid keyword.
300 2012-03-28 Russ Tyndall <russ@acceleration.net>
302 * sql/sequences.lisp: [A Patch FROM 2011-07-28 changed sequences.
303 They were previously prefixed with _CLSQL_SEQ_ but are now
304 suffixed with _CLSQL_SEQ. This is likely to break existing
305 implementations using the default sequence names
307 setting *old-sequence-names* to T, should force using the older
310 2012-03-27 Ryan Davis <ryan@acceleration.net>
312 * sql/expressions.lisp: Fixed bug with subqueries in the where
313 clause of update-records and delete-records generating invalid
314 SQL. Previously subselects in where clauses would not have enough
315 parentheses, for example: "WHERE Id IN SELECT foo_id FROM bar"
316 vs. "WHERE Id IN (SELECT foo_id FROM bar)"
317 * tests/test-syntax.lisp: Added tests for using subqueries in the
318 where clause in update-records and delete-records. Moved asserts
319 in the test-output-sql/sql-ident-table function into the standard
321 * doc/appendix.xml: added :connection-string to the information on
322 ODBC connection specs, and added example code connecting to ODBC
325 2012-01-05 Nathan Bird <nathan@acceleration.net>
327 * db-odbc/odbc-dbi.lisp: handle sql decimal type in the same way
328 as numeric type-- read into a double float.
330 2011-01-04 Russ Tyndall <russ@acceleration.net>
331 * sql/operations.lisp
333 Fixed bug reported by JTK related to the not-null sql-expression
334 especially as used in conjunction with the is operator.
336 Made null called with more than one argument throw an exception
337 instead of silently discarding all arguments past the first
339 2012-01-04 Nathan Bird <nathan@acceleration.net>
341 * db-odbc/odbc-api.lisp (%sql-driver-connect): in the call to
342 odbc's SQLDriverConnect default the WindowHandle argument to a null ptr so
343 that connecting with :connection-string will work in the default
344 case of SQL_DRIVER_NOPROMPT.
346 I.e. you can now do things like:
347 (clsql:connect '("DsnName" "UserName" "" :connection-string
348 "DRIVER={FreeTDS};SERVER=...;DATABASE=...;UID=...;PWD=...;PORT=1433;TDS_Version=8.0;APP=clsql")
349 :database-type :odbc)
351 I believe the DsnName and Username at that point are only used when
352 printing the connection information.
354 2011-12-20 Kevin Rosenberg <kevin@rosenberg.net>
356 * db-oracle/oracle.lisp: Typo correction (Elias Martenson)
358 2011-12-19 Kevin Rosenberg <kevin@rosenberg.net>
360 * db-oracle/oracle.lisp: Change length function to
361 uffi:foreign-string-length to handle foreign encodings.
362 Thanks to Elias Martenson.
364 2011-11-28 Russ Tyndall <russ@acceleration.net>
365 * db-odbc/odbc-api.lisp, tests/test-time.lisp
367 In ODBC backend, avoid going through the common lisp
368 universal-time type (because it lacks support for historic dates)
370 *time-conversion-function* renamed to *time-format*
372 Patch from: Francisco Vides Fernandez
374 2011-10-18 Russ Tyndall <russ@acceleration.net>
375 * db-odbc/odbc-api.lisp
377 Added type specifier so MSSQL nvarchar fields can make it through
379 2011-09-12 Russ Tyndall <russ@acceleration.net>
380 * sql/fddl.lisp sql/generic-postgres.lisp db-mysql/mysql-sql.lisp
381 sql/generic-odbc.lisp sql/odbc-api.lisp sql/odbc-dbi.lisp
383 Fix bugs in list-attribute(s|-types) where passing an escaped,
384 instead of unescaped column name, caused these functions to return
385 less data than they should have.
387 2011-08-03 Kevin Rosenberg <kevin@rosenberg.net>
388 * CLSQL 6.0.0 released
390 2011-07-28 Russ Tyndall <russ@acceleration.net>
392 * db-postgresql-socket3/: Added a backend that utilized postgres
393 socket api version 3. Uses the cl-postgres project (from
394 postmodern) to handle this. Allows use of parameterized /
395 prepared queries using clsql:command-object
397 * sql/{expressions,fddl, generic-postgresql, ooddl}.lisp:
398 Change how database identifiers are emitted to hopefully make this
399 less brittle, and more easily intuitable.
401 Previously every code path that wanted to emit a
402 database identifier was responsible for coercing what was provided
403 into a correctly escaped string. Sometimes two or three functions
404 in a row were trying to correctly quote and output that string. I
405 have tried to centralize this type coercion and logic into a
408 everything should now call (escaped-database-identifier thing)
409 immediately before splicing a database identifier into string being
412 * sql/oodml.lisp: added method choose-database-for-instance, which
413 allows overriding which database connections are used based on
414 object type. Can be used to prevent connection conflicts in
415 multi-threaded environments
417 * sql/syntax.lisp: [foo bar] and [foo.bar] read into the same
418 clsql expression now (they used to be output the same, but after
419 the above database-identifier change, they were output separately
421 * test/: Better, more tests, better type coercion in tests and
422 throughout (%get-int)
424 [edit 2012-03-28 - RT]
425 * sql/sequences.lisp: Sequences were previously prefixed with
426 _CLSQL_SEQ_ but are now suffixed with _CLSQL_SEQ. This is likely
427 to break existing implementations using the default sequence names
429 setting *old-sequence-names* to T, should force using the older
433 2011-07-16 Kevin Rosenberg <kevin@rosenberg.net>
434 * Version 5.4.0 release
436 2011-06-27 Nathan Bird <nathan@acceleration.net>
437 * db-odbc/: memory management improvements: leak slower
438 * MSSQL: TOP + DISTINCT work together
440 2011-06-20 Nathan Bird <nathan@acceleration.net>
442 * sql/time.lisp: Handle parsing already parsed objects.
443 * sql/oodml.lisp: raise exception if we generate an update with no
444 where clause; incorporate Ryszard Szopa's patch for functional
445 expressions in :order-by
446 * sql/expressions.lisp: (listify nil) => nil instead of (nil).
447 * db-odbc/: bugfixes for working with older versions of FreeTDS;
448 support for bigints that works on mssql and postgres
449 * MSSQL improvements: use top instead of limit, IDENTITY can be a
450 column constraint, clsql:date becomes 'smalldatetime'
452 2011-06-20 Nathan Bird <nathan@acceleration.net>
455 * db-postgresql-socket/postgresql-socket-api.lisp: Addendum
456 to Otto Diesenbacher's patch that had a spurious write a 0
457 byte (to terminate string) that should have been just CCL.
459 2011-06-12 Kevin Rosenberg <kevin@rosenberg.net>
461 * db-postgresql-socket/postgresql-socket-api.lisp:
462 Patch from Otto Diesenbacher for UTF8 encoded strings
463 for CCL. FIXME: The best patch would be to use the
464 user-set encoding from the database object and use
465 UFFI's encoding strings to/from octet vectors rather
466 than SB-UNICODE and CCL specific code in this file.
468 2011-04-21 Kevin Rosenberg <kevin@rosenberg.net>
469 * sql/generics.lisp: Add defgeneric for new
470 database-last-auto-increment-id
472 2011-04-01 Kevin Rosenberg <kevin@rosenberg.net>
474 * db-mysql/mysql-client-info.lisp: Add recognition of
475 version 6 of MySQL client library.
476 * sql/metaclass.lisp: Fix the fix in the reader conditional
478 2011-03-30 Kevin Rosenberg <kevin@rosenberg.net>
480 * sql/metaclasses.lisp: Fix previous patch to work
483 2011-03-29 Kevin Rosenberg <kevin@rosenberg.net>
485 * sql/metaclasses.lisp: Apply one-line patch to fix
486 for newer SBCL (thanks to Nikodemus Siivola)
487 * many_files: Applied multiple patches from Holger Schauer
488 to improve autoincrement capability.
490 2010-10-24 Kevin Rosenberg <kevin@rosenberg.net>
492 * db-odbc/odbc-api.lisp: Change from SBCL-specific
493 to UFFI version of octets-to-strings. Reported by
494 Daniel Brunner <daniel@dbrunner.de>
495 * sql/oodml.lisp: Apply patch from Rupert Swarbrick
496 <rswarbrick@gmail.com>: Fix behaviour with auto-inc
498 * sql/expressions.lisp, tests/test-syntax.lisp: Apply
499 patch from Russ Tyndall to quote identifiers with space
500 or special character.
502 2010-09-20 Kevin Rosenberg <kevin@rosenberg.net>
504 * sql/{pool,database}.lisp: Pass encoding argument to
505 connections made from pool and with reconnect.
507 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
509 * db-odbc/odbc-{api,dbi}.lisp: Commit patch from
510 Memet Bilgin to fix issue with unicode and ODBC.
512 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
514 * uffi/clsql-uffi.lisp: Commit patch from JT Klein fixing
515 invocation of uffi:convert-from-foreign-string macro. When
516 time allows, I'll investigate changing UFFI's macro to
517 a function call and then revert this patch.
519 2010-06-15 Kevin Rosenberg <kevin@rosenberg.net>
521 * clsql-{uffi,mysql}.asd: Modify operation-done-p functions
522 to guard against change introduced in new ASDF traversing.
524 2010-04-20 Kevin Rosenberg <kevin@rosenberg.net>
525 * Version 5.1.0 [DEPENDENCY UPGRADE: UFFI 2.x needed]
526 * clsql-uffi.asd: Depend on UFFI version >= 2.0
527 to support foreign encoding of strings.
529 2010-04-16 Kevin Rosenberg <kevin@rosenberg.net>
531 * db-postgresql.lisp, sql/fddl.lisp: Fix typos [Thanks to
533 * sql/metaclasses.lisp: Work around type-check-function being set
534 during defclass expansion in SBCL [Thanks to Walter C. Pelissero]
535 * uffi/clsql-uffi.lisp: In call to uffi:convert-from-foreign-string,
536 Set null-terminated-p to T when length not specified.
537 [Thanks to Walter C. Pelissero]
539 2010-03-21 Kevin Rosenberg <kevin@rosenberg.net>
541 * sql/fdml.lisp: Fix DO-QUERY to actually return the last value of
544 2010-03-02 Nathan Bird <nathan@acceleration.net>
545 * doc/: Added a README on how to build doc; now builds on Ubuntu.
546 * sql/oodml.lisp: READ-SQL-VALUE now has explicit method for
547 handling double-floats and the default method will no longer
548 attempt to convert values that have already been converted.
549 * sql/syntax.lisp: Introduce file-enable-sql-reader-syntax which
550 enables the syntax for the scope of the file without trying to
551 keep track of the current syntax state.
552 * sql/pool.lisp: Introduce
553 clsql-sys:*db-pool-max-free-connections* which is a heuristic
554 threshold for when to disconnect a connection rather than
555 returning it to the pool.
556 * sql/pool.lisp: Check connections for validity before returning
559 2010-03-01 Kevin Rosenberg <kevin@rosenberg.net>
560 * db-mysql/mysql-api.lisp: Remove spurious enumeration
562 2010-02-16 Kevin Rosenberg <kevin@rosenberg.net>
564 * db-mysql/mysql-api.lisp: Fix mysql_options UFFI parameter list
565 * doc/ref-connect.xml: Document the MySQL options parameter as
566 part of the connection-spec.
568 2010-02-15 Kevin Rosenberg <kevin@rosenberg.net>
569 * db-mysql/mysql-{api,sql}.lisp: Support sending options
570 to MySQL using mysql_options, which occurs between the API calls
571 of mysql_init and mysql_real_connect.
573 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
575 * multiple-files: Further internationalization. Change
576 UFFI:CONVERT-RAW-FIELD and UFFI:CONVERT-FROM-FOREIGN-STRINGS
577 invocations to use the foreign character set encoding of the
578 database object. Requires UFFI v.1.8.6
579 * Makefile.common: Fix OS_DARWIN64 setting
581 2010-02-11 Nathan Bird <nathan@acceleration.net>
582 * MSSQL: better support for fddl 'date type.
584 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
585 * Makefile.common, uffi/Makefile, db-mysql/Makefile:
586 Better support OS X Snow Leopard by building universal
587 (x86_64,i386) dylib bundles
589 2010-02-08 Kevin Rosenberg <kevin@rosenberg.net>
591 * sql/database.lisp: Fix missing slot-accessor
592 (Thanks to Stelian Ionescu)
593 * sql/generics.lisp: Add missing keyword to defgeneric
594 (Thanks to Stelian Ionescu)
596 2010-02-07 Kevin Rosenberg <kevin@rosenberg.net>
598 * sql/{base-classes,database}.lisp: Add encoding slot for
600 * db-mysql/mysql-sql.lisp: Use UFFI:FOREIGN-ENCODED-OCTET-COUNT.
601 Requires UFFI version 1.8.2 or above.
603 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
604 * Version 5.0.0: First release of CLSQL to formally and
605 consistently support non-ASCII strings with encoding of external
606 formats for SQL strings. UFFI version 1.8.1 is higher is required.
608 This change may introduce some differences in string handling for
609 people who are using non-ASCII encoded characters. Thus, because
610 of the risk of BACKWARD INCOMPATIBILITY, the major version number
611 was incremented with this release.
613 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
614 * tests/test-i18n.lisp: Bind UFFI:*DEFAULT-EXTERNAL-FORMAT*
615 for testing multibyte encodings.
616 * uffi/clsql-uffi.lisp: Changes for UFFI 1.7.4's new support
617 for encoding foreign strings with a specified external format.
619 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
620 * sql/metaclasses.lisp: If no declared slot type in
621 compute-lisp-type-from-specified-type, then use t as lisp type.
622 Issue noted when testing Clozure CL 1.4.
624 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
625 * tests/test-init.lisp: Turn off the benign console notices for
628 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
629 * clsql-test.asd, tests/{test-i18n,test-init}.lisp:
630 Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
631 not present in cl:*features*. This requires UFFI 1.7.2 or above.
633 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
634 * sql/utils.lisp: Reading #\no-break_space causes an
635 error for non-unicode SBCL. Conditionalize read of
636 #\no-break_space for non-unicode SBCL and 8-bit string
639 2010-02-03 Kevin Rosenberg <kevin@rosenberg.net>
640 * tests/test-init.lisp: Add *test-report-width* variable
641 and word-wrap skipped test reason field.
643 2010-01-29 Kevin Rosenberg <kevin@rosenberg.net>
645 * clsql-cffi.asd: New file that causes CLSQL to use
646 CFFI-UFFI-COMPAT library rather than UFFI. Perform 'asdf:load-op
647 on CLSQL-CFFI rather than CLSQL system to use CFFI-UFFI-COMPAT.
649 2010-01-29 Nathan Bird <nathan@acceleration.net>
650 * tests/*.lisp: A lot more tests and test setup tweaks.
651 * sql/expressions.lisp: output-sql on sql-relational-exp does
652 better arity checking now. (apply #'sql-and some-list) gives
655 29 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
656 * sql/oodml.lisp: Fix for UPDATE-RECORD-FROM-SLOTS for normalized
659 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
661 * Change "normalise" from British spelling for consistency with
662 other American spellings in CLSQL.
664 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
665 * db-mysql/Makefile: Add directory for Fedora 11/12 on 64-bit
666 platform (Thanks to Michael Pheasant) and remove a 32-bit directory
668 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
670 * sql/utils.lisp: Ensure Lispworks 6 lock is created in sharing mode
672 20 Jan 2009 Nathan Bird <nathan@acceleration.net>
674 * Rewrite tests to use datasets
676 07 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
677 * sql/utils.lisp: Changes to support Lispworks 6
679 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
681 * doc/ref-ooddl.lisp: Add needed CDATA escapes
682 * doc/clsql.pdf, doc/html.tar.gz: Build new manuals with
683 normalized view classes.
685 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
686 Large patch from Thijs Oppermann <thijso+clsql@gmail.com> to add
687 support for normalized view classes. When having view class that
688 inherit from others, CLSQL by default builds tab all the columns
689 from the parent in the child. This patch is meant to normali so
690 that a join is done on the primary keys of the concerned tables to
693 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
694 * sql/time.lisp: Patch from Oleg Tihonov to SYNTAX-PARSE-ISO-8601
695 to properly parse fractions of seconds.
697 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
698 * sql/time.lisp: Patch from Oleg Tihonov to roll function
699 to properly use USEC argument.
701 21 Nov 2009 Kevin Rosenberg <kevin@rosenberg.net>
703 * Makefiles: On 64-bit Linux systems, try to build both 32 and 64-bit
704 interface libraries. This requires the installation of multiarch build tools
705 as well as 32-bit support libraries (libc, libz and libmysqlclient).
707 04 Sep 2009 Kevin Rosenberg <kevin@rosenberg.net>
709 * sql/fdml.lisp: Rework do-query to use supplied database
710 parameter when passed a sql-object-query
711 (thanks to JTK <jetmonk@gmail.com>)
712 * sql/generic-postgresql.lisp: Allow optional connect
713 parameters for postgresql databases (thanks to Stephen Compall)
714 * doc/ref-{clsql,connect}.xml, sql/db-interfaces.lisp:
715 Fix transposed letters (thanks to Stephen Compall)
716 * db-mysql/Makefile: Add directory for MacPorts mysql5 port
717 (thanks to Stephen Compall)
718 * sql/database.lisp: Have database-type default be
719 *default-database-type* (thanks to Desmond O. Chang)
720 * sql/transactions.lisp: Improved handlining of nested
721 transactions (thanks to Eli Naeher)
722 * sql/time.lisp: Commit patch to fix parse-iso-8601-duration
723 (thanks to Stephen Compall)
724 * sql/database.lisp: Use :verbose nil for asdf:operate
725 invocation (Thanks to Mackram Raydan)
726 * sql/metaclasses.lisp: Rework initialize-instance for
727 view-class-direct-slot-definition (thanks to Stephen Compall)
729 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
730 * sql/db-interface.lisp: Fix spelling error (thanks to
732 * clsql-mysql.asd/db-mysql/mysql-loader.lisp: Commit
733 patch from Andreas Franke to honor windows drive letter
734 when loading clsql_mysql C library.
736 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
738 * db-mysql/mysql-{sql,api}.lisp,db-mysql/clsql_mysql.c:
739 Latest version of mysqlclient once again changed the C
740 structures from which the mysql backend reads data.
741 Rather than adding yet another structure definition which
742 is enabled by the client version as read by mysql-client-info.lisp,
743 the mysql backend has been re-written to ignore in the internal
744 C structures. Instead, C wrapper functions for slot access have
745 been added to clsql_mysql.c and are used by mysql-sql.lisp to
746 access the internals of C structures. This adds a bit of overhead,
747 but completely separates the lisp code from trying to keep up
748 with the continually changing internal C structure of mysql.
749 All tests in the test suite executed correctly with this change.
751 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
753 * sql/database.lisp: Fix syntax on process-lock (thanks to
755 * db-mysql/mysql-sql.lisp: Allow use of database parameter
756 in database-list function (thanks to Michael Pheasant)
757 * sql/oodml.lisp: Allow NULL values for floating-point fields
758 (thanks to Jan Rychter)
760 02 Jun 2009 Kevin Rosenberg <kevin@rosenberg.net>
762 * sql/database.lisp: Add process-lock for deleting database from
763 a pool (thanks to Ralf Mattes).
765 25 Feb 2008 Kevin Rosenberg <kevin@rosenberg.net>
767 * sql/expressions.lisp: Remove stray form (thanks to Samuel Ward)
769 12 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
770 * sql/expressions.lisp: Bind *in-subselect* when outputting
771 selections (patch from unknown source).
773 11 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
775 * sql/metaclasses.lisp: Unify base-table processing by extracting
776 the correct code from initialize-instance :around into the helper
777 function set-view-table-slot. Call that function also in
778 reinitialize-instance :around replacing erroneous code discovered
781 17 Nov 2007 Kevin Rosenberg <kevin@rosenberg.net>
782 * BUGS: Add note about benefit of using configure file to create
783 Makefiles (suggestion from Joe Corneli)
785 22 Oct 2007 Kevin Rosenberg <kevin@rosenberg.net>
787 * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
788 Andrew Golding suggestion for more informative :error-id slot.
790 17 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
792 * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
794 * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
796 14 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
797 * Version 4.0.0: Major version increase to warn of potential
798 backwards incompatibility.
799 * NEWS: Document potentional backward incompatible changes
800 * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
801 after connecting. This may break compatibility with some applications
802 who are using non-ANSI features with MySQL. This change is required to
803 properly support view-classes using a string as their :base-table
804 attribute. This allows users to specify the case of table names.
805 This is feature is even more essential for MySQL itself since MySQL
806 uses case-sensitive table names. Use connection-based database-create
807 and database-destroy rather than trying to invoke command-line mysql
808 utility. Remove automatic upcasing of strings from list-indices.
809 * db-postgresql/postgresql-sql.lisp: Use connection-based
810 database-create and database-destroy rather than trying to invoke
811 command-line utilities.
812 * db-postgresql-socket/postgresql-socket-sql.lisp: Use
813 database-execute-command rather than execute-command for
814 database-{create,destroy}. Connect to postgres database
815 rather than template1 for those database creation/deletion.
816 * sql/metaclasses.lisp: Store the string value of :base-table if a
817 string is provided. Perform sql-escape at time of view-table name
819 * tests/test-init.lisp: Use "ej_join" as a string, rather than a
820 symbol, since "ej_join" is specified as :base-table. Clear the
821 expression output-cache in case the code for generating sql output
823 * test/test-oodml.lisp: whitespace fix
824 * sql/ooddl.lisp: Use quoted string for primary key constraint if
825 table name is specified as a string.
826 * sql/oodml.lisp: Don't convert a string view-table name to database's
828 * sql/expressions.lisp: Properly handle table and attribute identifiers
829 when they are a string. Do not change case of symbols to match database
831 * sql/operations.lisp: Change multiword symbols to upper case.
832 * sql/fddl.lisp: Quote base-table if a string to preserve case
833 for drop-table and create-table.
834 * tests/test-syntax.lisp: Add tests of low-level string attribute
837 20 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
839 * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
840 (problem noted on clsql-devel by icardo Boccato Alves)
841 * sql/pool.lisp: Remove incorrect keyword
842 * sql/database.lisp: Rework WITH-DATABASE to not make the database the
843 default database (reported by Saurabh Nanda and Chaitanya Gupta)
844 * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
845 emphasis that make-default has a default value of nil.
846 * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
847 SQL Server. (patch from Nathan Bird)
848 * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
849 of trouble with def-view-class compilations (patch from Nathan Bird)
851 15 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
853 * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
854 not dynamically loaded on Windows
856 22 Jun 2007 Kevin Rosenberg <kevin@rosenberg.net>
858 * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
859 that library is dymically linked to clsql-mysql library. Thus, the mysql
860 library will be automatically loaded. This has only been tested on Linux,
863 29 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
864 * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
865 reported by Ricardo Boccato Alves
867 02 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
868 * sql/database.lisp: Add ability of WITH-DATABASE to return
869 multiple values (patch from Liam Healy)
871 25 Apr 2007 Kevin Rosenberg <kevin@rosenberg.net>
873 * doc/connect.xml: variable description fix by Liam Healy
874 * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
875 Apply patches from Marcus Pierce to reduce load-time warnings
876 * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
878 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
880 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
881 disable wide characters for crypt salt sequence on SBCL, based
882 on patch from Lars Nostdal.
884 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
886 * sql/pool.lisp: Test pooled connection when popped from
887 the pool to ensure the connection still works. Currently, implemented
890 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
891 * db-mysql/Makefile: Add potential mysql directories
893 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
894 * sql/metaclasses.lisp: Remove usused saved-initargs
895 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
896 push search libraries)
898 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
899 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
900 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
901 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
902 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
903 on non-Lispworks platforms, the nickname POSTGRESQL will still be
904 available. Applications directly using low-level POSTGRESQL package
905 are recommended to use the new PGSQL name.
906 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
907 Apply patch from Edi Weitz to reduce compiler warnings.
909 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
911 * sql/expressions.lisp: Commit patch from Edi Weitz to
912 use *default-database* for SQL-OUTPUT if no database is
913 explicitly passed to function.
914 * uffi/clsql-uffi-loader.lisp: Change load order to first try
915 plain name/type before attempting user-specified paths (patch
917 * uffi/ptrbits.c: New file to return number of bits in an pointer
918 * uffi/Makefile: use intbits to name .so file based on bit size.
919 Build both 32-bit and 64-bit libraries on 64-bit platform.
921 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
923 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
926 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
928 * db-postgresql/postgresql-sql.lisp: Remove
929 uffi:convert-foreign-to-native wrapper since using cstring for
932 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
934 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
935 PQresultErrorField foreign function.
937 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
939 * doc/intro.xml: Update supported platforms.
940 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
941 changes from Andew Golding to use a more-specific error code
942 from PostgreSQL than the generic fatal error code of the result set.
944 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
945 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
946 readtable modifications
948 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
949 * sql/syntax.lisp: Check that original reader syntax functions
950 stored before trying to restore them.
952 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
953 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
954 display sql reader syntax.
956 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
957 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
958 to decide on 64-bit platform and check size of most-positive-fixnum instead.
959 Needed to support clisp amd64.
961 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
963 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
964 compatibile. Add warning for a metaclass condition that should
966 * sql/time.lisp: Fixed symbol case inconsistency causing problem
967 in AllegroCL's modern lisp. First sign of bug noted by
968 Joel Reymond on clsql-devel.
969 * clsql.asd: Make time.lisp depend on utils.lisp
971 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
972 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
973 *library-file-dir* to CLSQL's library path.
975 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
976 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
977 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
978 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
979 * Makefile.common: Add OS detection
980 * uffi/make.sh, db-mysql/make.sh: Remove files
981 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
982 Refactor to remove need to make.sh shell scripts.
983 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
984 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
985 package rather than CL-USER. Add support for ansi-loop on clisp.
986 * sql/ansi-loop.lisp: New file to support iteration on clisp.
987 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
988 longer exist in the mysql client library.
989 * doc/ref-fdml.lisp: Correct default field-type.
990 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
991 Fixed bug with noted with MySQL 5.0.24 and boolean values.
993 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
995 * sql/oodml.lisp: Remove high debugging level declaration
997 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
999 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
1000 is always 1. Fixes problem noted with PostgreSQL 8.1.
1002 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1004 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
1005 lazily cache if pg_roles tables exist. Selectively use SQL from
1006 Joel's previous patch if pg_roles table exists. Should now work
1007 with both postgresql 7.4 and 8.x.
1009 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
1011 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
1012 local initialization file
1013 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
1015 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
1016 that generates incorrect integer return type
1017 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
1018 it fails on versions of postgresql that lack the pg_role table
1020 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
1022 * sql/transactions.lisp: Important typo fix from Alexey Antipov
1023 for database-start-transaction
1025 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
1027 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
1028 to close connection when failing to connect to database.
1029 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
1030 to avoid dropping system views.
1031 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
1032 a nil value [patch sponsored by Flektor]
1033 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
1034 for netbsd compilation
1036 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1037 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
1038 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
1040 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1041 * db-postgresql-socket/postgresql-socket-api.lisp:
1042 Apply patch from Marko Kocic adding the socket creation
1043 function needed for CLISP.
1045 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1046 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
1047 * db-oracle/metaclasses.lisp: Patch from James Bielman for
1048 checking slot constraints.
1049 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
1050 saved openmcl images (based on patch from James Bielman)
1052 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1053 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
1055 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
1057 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
1058 duration parsing and unparsing to include year and month.
1059 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
1060 improving library search on Windows platform.
1061 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
1062 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
1064 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
1066 * clsql-postgresql-socket.asd,
1067 * db-postgresql-socket/postgresql-socket-package.lisp:
1068 Use the cl-md5 package on all platforms. Based on report
1071 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
1073 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
1075 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
1077 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
1078 fix accessor for new versions of SBCL
1079 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
1080 to improving parsing of time.
1081 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
1083 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
1084 as noted by Russ Tyndall.
1086 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
1088 * sql/time.lisp: Commit patch from Aleksandar Bakic
1089 to properly handle destructive flag
1090 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
1091 from Steven Harris for socket files with SBCL.
1092 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
1093 new connections added to the pool do not become the *default-database*
1094 * sql/connect.lisp: Optionally set *default-database* for pooled
1095 connection when make-default is generalized true.
1097 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
1099 * sql/expressions.lisp: Ensure table names are properly escaped
1100 before comparing -- fixes bug reported by Asbjørn Bjørnstad
1103 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
1104 * sql/generic-postgresql.lisp: improved decoding of table attribute
1105 parameters [from Vladimir Sekissov]
1106 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
1107 it's subclass to prevent adding standard-db-object to supers if
1108 somebody in the path has it already when metaclass inherited from
1109 standard-db-class. [from Vladimir Sekissov]
1111 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1113 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
1114 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
1115 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
1116 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
1117 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
1118 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
1119 Commit patch from Dominic Robinson providing support for
1120 Microsoft SQL Server
1121 * doc/csql.lisp: Fix typo in slot name
1123 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1125 * sql/time.lisp: Commit patch from Aleksandar Bakic for
1126 correct handling of decode-time usec value
1127 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
1128 correct the name of the shared library file.
1130 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1132 * sql/metaclasses.lisp: Avoid calling change-class on
1133 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
1136 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1138 * sql/expressions.lisp: Patch from James Biel to add subselects
1140 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1141 * Version 3.4.4 [ Requires UFFI 1.5.7+]
1142 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1143 to fix lifetime of foreign strings for Oracle calls
1145 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1147 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1148 to improve performance
1150 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1152 * clsql-uffi.asd: Patch from James Biel improving loading
1153 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1154 to support 64-bit lisps
1156 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1158 * sql/expressions.lisp: Escape numbers to SQL strings
1159 at expression level.
1161 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1162 * Version 3.4: Add MySQL 5 support
1163 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
1164 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
1165 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
1167 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1168 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
1170 * BUGS: Added report for update-object-joins by Aleksandar Bakic
1172 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1173 * Version 3.3.4 [UFFI >= 1.5.5 needed]
1174 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
1175 to add missing #\' character.
1176 * clsql.asd: Add support for CLSQLINIT environmental variable,
1177 based on patch from Yaroslav Kavenchcuk. New version of UFFI
1180 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1182 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
1183 update-objects-joins when using the :target-slot attribute
1185 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1187 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
1188 as noted by Harald Hanche-Olsen.
1189 * tests/test-syntax.lisp: Add test for multiple field group-by
1191 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1193 * sql/time.lisp: Commit patch from Alan Shields to
1194 display escape string on wall-time display only when *print-escape*
1197 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1198 * sql/metaclasses.lisp: Commit patch from Will to
1199 properly set db-reader slot in effective-slot-definition
1200 * sql/expressions.lisp: Commit patch from Alan Shields
1201 adding make-load-form for sql-relational-exp
1202 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
1203 adding support for new NUMBER type
1205 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1207 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
1208 * doc/ref-ooddl.xml: Documentation of new type
1209 * notes/add-type-hints.txt: New file from Alan Shields
1210 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
1212 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
1213 as noted by Francis Leboutte. Similar fix applied to db-mysql and
1215 * sql/expressions.lisp: Allow string table names for output as
1216 contributed by Francis Leboutte.
1217 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
1220 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1222 * doc/into.xml: Change download from ftp to http protocol
1224 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1226 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
1229 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1231 * db-oracle/oracle-sql.lisp: Add check for zero increment as
1232 suggested by Edi Weitz. Add missing database-sequence-last function
1233 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
1234 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
1235 stmthp object when query cursor is freed with OCI.
1237 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
1238 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
1239 display search path when error occurs loading foreign library.
1241 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
1243 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
1244 with changes to support case-sensitive lisp implementations. Add
1245 paragraph on using /etc/clsql-init.lisp site initialization file.
1246 * clsql.asd: Load file /etc/clsql-init.lisp, if it
1247 exists, after package is loaded to set site-specific configuration
1249 2005-06-24 Edi Weitz <edi@agharta.de>
1250 * sql/db-interface.lisp: Added new special variable
1251 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
1253 * sql/package.lisp: Export these.
1254 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
1256 * db-mysql/mysql-loader.lisp: Changed order of libs.
1258 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1259 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
1260 * clsql-mysql.asd: Renamed clsql/mysql interface library from
1261 mysql to clsql_mysql
1262 * clsql-uffi.asd: Renamed clsql/uffi interface library from
1264 * uffi/clsql_uffi.c: Renamed from uffi.c
1265 * db-mysql/clsql_mysql.c: Renamed from mysql.c
1266 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
1267 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
1268 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
1269 absolute pathnames when searching for foreign libraries.
1270 foreign library loading.
1272 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1274 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
1275 to support UTF-8 on sbcl unicode.
1277 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1279 * sql/time.lisp: Fix bug in roll that caused failure in test suite
1281 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1283 * sql/oodml.lisp: Properly handle when db-writer is NIL
1285 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1286 * sql/expressions.lisp: Avoid using simple-string declaration when
1287 a non-simple string may be encountered. [issue noted by
1288 will@cesmail.net] Add a simple-string declaration for a local
1291 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1292 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
1293 a symbol as well as function to serve as a function designator
1294 [issue noted by will@cesmail.net]
1296 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1298 * sql/time.lisp: Fix error in submitted patch which caused error
1299 in timestrings with 19 or less characters.
1301 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1303 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
1304 to fix read-socket-sequence on non-sb-unicode sbcl.
1306 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1308 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
1309 for fractional seconds which is required by PostgreSQL
1310 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
1312 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1313 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
1315 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1317 * sql/syntax: Commit patch from Alan Shields to supress reader
1318 macros when *read-supress* is T.
1320 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1322 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1323 from Janis Dzerins to support unicode on SBCL
1324 * sql/syntax: Commit patch from Alan Shields to improve reporting
1325 of invalid syntax statements.
1327 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1329 * db-mysql/mysql-sql.lisp: Add port to connection specification
1330 based on patch from Dave Watson
1331 * doc/appendix.xml: Document MySQL port parameter to connection spec
1333 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1335 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
1337 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1338 * sql/oodml.lisp: Add missing database argument [Patch from
1341 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1342 * sql/oodml.lisp: Improve database priority in
1343 update-records-from-instance [Patch from Walter C. Pelissero]
1345 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1347 * sql/package.lisp: Export database-reconnect from clsql-sys
1349 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1350 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
1351 [Patch from Walter Pelissero]
1353 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1354 * db-postgresql/postgresql-loader.lisp: Add additional
1355 directories to Fink on darwin [patch from Cyrus Harmon].
1357 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1359 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
1360 is invoked [suggested by Alan Shutko].
1361 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
1362 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
1363 to def-view-class [fix suggested by Fred Gilham].
1365 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1366 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
1368 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
1369 * doc/*.xml: Fix spelling of Vladimir
1371 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1372 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
1373 now that LispWorks is an independant company [noted by
1376 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1377 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
1378 Better support for 64 bit environments
1380 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1382 * sql/metaclass.lisp: Make t the default value of :set
1383 [noted by Cyrus Harmon]
1385 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1387 * uffi/clsql-uffi.lisp: Add support for unsigned integers
1388 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
1389 unsigned integers. Apply patch from Yannick Gingras to
1390 implement database-sequence-last.
1392 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1393 * doc/ref-fdml.lisp: Fix variable tag name to varname
1394 [noted by Eduardo Munoz]
1395 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
1397 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1399 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
1400 update-object-joins.
1401 * sql/metaclass.lisp: Remove unnecssary (and runtime error
1402 causing) change-class invocation when running on CLISP.
1403 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
1404 to fix structure name.
1405 * sql/database.lisp: More specific error message with trying
1406 to use a database value of NIL.
1407 * sql/expressions.lisp: Accept a string for the table name
1408 in (sql-output sql-delete database) [suggested by Ed Symanzik].
1410 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1412 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
1413 ignore columns which have been dropped.
1414 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
1415 Use sb-md5 package on SBCL, recommended by Chris Capel
1417 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1418 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
1419 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
1420 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
1422 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1423 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
1425 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1426 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
1427 contributed by Aurelio Bignoli
1429 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1430 * sql/oodml.lisp: Commit patch from Walter Pelis
1431 to use an object's database for a select on its slot.
1433 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1434 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
1435 Aurelio Bignoli to fix negative 64-bit integers
1437 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1438 * db-mysql/mysql.c: Fix parameters in bind_param call
1440 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1441 * uffi/clsql-uffi.lisp: Add support for :blob result-type
1442 * db-mysql/mysql-sql.lisp: Add support for :blob
1445 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1446 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
1447 missing quotes for types in code that is still in development
1448 (thanks to Joerg Hoehle)
1450 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1451 * Version 3.0.8 released
1452 * db-sqlite/sqlite-*.lisp: Apply patch from
1453 Aurelio Bignoli with improvements
1455 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1456 * multiple: Apply patch from Joerg Hoehle with multiple
1459 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1460 * Version 3.0.7 released
1461 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
1462 Add support for mediumint.
1463 * sql/metaclass.lisp: Rework CLISP MOP handling
1464 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
1466 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1467 * sql/metaclass.lisp: Support CLISP's attribute name
1468 for the type field in direct class slots
1470 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1471 * Version 3.0.6 released
1472 * BUGS: New file. Document suspected SIGPIPE
1473 interaction between SBCL and libpq used in
1475 * doc/ref-fdml.lisp: Document the :caching and :refresh
1476 keywords of the SELECT function.
1477 * doc/ref-ooddml.lisp: Document the new *default-caching*
1479 * sql/package.lisp: Export *default-caching*
1480 * sql/oodml.lisp: Use *default-caching* to
1481 control default caching behavior.
1483 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1484 * Version 3.0.5 release
1485 * doc/appendix.xml: Add note about loading Oracle8 version
1486 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
1487 data from David Young.
1489 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1490 * doc/Makefile, doc/catalog-darwin.xml: Apply
1491 patch from Cyrus Harmon for building docs on Mac OS X
1492 * sql/package.lisp: Add new (pre-release) clisp MOP package
1494 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1495 * Version 3.0.4 Release
1496 * multiple: Remove superfluous quotes in UFFI def-type
1497 and def-foreign-type forms.
1499 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1500 * Version 3.0.3 Release
1501 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1502 from Tagore Smith to call force-output after sending authentication
1503 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
1504 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
1505 to a database of that type so that functions that indicate capabilities of
1506 database are available.
1508 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1509 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
1511 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1512 * Version 3.0.2 Release
1513 * TODO: Add note about ODBC on Windows
1514 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
1516 * db-odbc/odbc-ff-interface.lisp: Change the return type
1517 of SQLSetEnvAttr to :short
1519 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1520 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
1521 slot of the employee View Class definition [reported by Franz Deuzer].
1523 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1524 * Version 3.0.1 Release
1525 * tests/test-init.lisp: Add second join class to employee-address
1526 to test a class with two join slots.
1527 * sql/oodml.lisp: Fix find-all function for a class with multiple
1529 * TODO: Remove need to test/fix multiple join classes
1531 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1532 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
1533 from Jon Buffington for file locations on Darwin.
1535 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1536 * sql/db-interface.lisp: Improve messages when functions
1537 are passed a database object, but the method is not specialized
1538 for that database type.
1539 * sql/metaclasses.lisp: Fix inline declaration (reported by
1542 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1543 * TODO: Add bug report about SQL generation with a table
1544 containing two join slots.
1545 * sql/oodml.lisp: Add optional size to VARCHAR type
1547 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1548 * Version 3.0.0 Release
1549 * sql/expressions.lisp: Change declaration that
1550 caused error on openmcl
1551 * db-aodbc/aodbc-sql.lisp: Fix storage location
1552 of odbc connection. Specialize database-query since
1553 dbi's :types keyword is different than generic-odbc's
1554 :result-types keyword
1555 * sql/db-interface.lisp: Add warnings for methods
1556 not specialized by a db backends
1557 * tests/test-fddl.lisp: Fix case of symbols to support
1558 case-sensitive Allegro
1559 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
1560 * tests/test-init.lisp: Note that odbc driver for postgresql
1561 doesn't properly handle table ownership
1562 * LATEST-TEST-RESULTS: update with version 3.0.0
1564 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1565 * sql/expressions.lisp: conditionalise escaping of backslash in
1566 generated SQL strings on backend.
1567 * tests/test-fdml.lisp: test for escaping of backslash.
1568 * sql/oodml.lisp: minor tidying in FIND-ALL.
1570 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1571 * NEWS: Initial 3.0 announcement draft
1572 * README: Expand acknowledgements of incorporated projects
1573 * CONTRIBUTORS: Further document Marcus Pearce contributions
1575 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1576 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
1577 to print floats with the exponent markers removed.
1578 * tests/test-oodml.lisp: add tests for updating records with floats.
1580 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1581 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
1582 CommonSQL compatibility.
1583 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
1584 this column constraint syntax is not supported.
1585 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
1586 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
1589 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1590 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
1591 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
1592 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
1594 * doc/ref-oodml.xml: add examples for OODML.
1595 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
1597 * sql/metaclasses.lisp: update docstrings.
1598 * tests/test-init.lisp: change :db-constraints for emplid to
1599 (:not-null :unique) as a temporary test for multiple column constraints
1601 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
1602 return type of (SETF SLOT-VALUE-USING-CLASS).
1603 * TODO, doc/TODO: remove items done.
1606 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1607 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
1609 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
1611 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1612 * sql/expressions.lisp: reactivate caching of generated SQL strings.
1613 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
1614 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
1615 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
1616 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
1617 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
1618 sql/expressions.lisp.
1619 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
1620 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
1621 * sql/generics.lisp: add docstrings.
1623 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1625 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
1626 code in favor of fixing UFFI with James Bielman's patch
1628 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1630 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
1633 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1634 * README, INSTALL: update URLs. Minor updates to descriptions.
1635 * tests/README: remove stuff about editing contexts.
1637 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1638 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
1639 *default-string-length*
1641 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1642 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
1644 * tests/test-fddl.lisp: add tests for column and table constraints
1645 in CREATE-TABLE. Add test for OWNER keyword parameter to
1646 LIST-TABLES (assuming same underlying machinery in other FDDL
1648 * tests/test-init.lisp: restrict above test to postgresql and oracle.
1650 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1651 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
1654 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1655 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
1657 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1659 * doc/*.xml: documentation additionals and fixes so
1660 that docbook passes xmllint.
1662 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1664 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
1665 to change escaping of single quotes. Mild optimizations
1666 for escaped string output.
1667 * doc/ref-ooddl.lisp: documentation additions
1668 * doc/ref-oodml.lisp: Add purpose to functions
1669 * TODO: Add need to test single quote escaping
1671 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1672 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
1673 * sql/ooddl.lisp: Added SMALLINT type
1674 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
1675 * db-mysql/mysql-objects.lisp: Added SMALLINT type
1676 * sql/package.lisp: Export SMALLINT
1677 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
1680 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1681 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
1682 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
1683 View Class slot option.
1684 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
1685 slot option accepting a list of constraints [reported by Travis Cross].
1686 * doc/ref-fddl.xml: add some examples of specifying column and
1687 table constraints to the documentation for CREATE-TABLE.
1688 * TODO: add note about adding tests for table/column constraints. Add
1689 optimisation note about using cached attribute types in insert/update
1692 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1693 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
1694 features and so on the documentation for each backend.
1695 * doc/TODO: remove items done.
1696 * doc/ref-transaction.xml: add note in introduction about
1697 autocommit mode as a difference from CommonSQL.
1698 * doc/ref-syntax.xml: add notes about SQL syntax state functions
1699 being macros in CLSQL. Add note about SQL operators which are
1702 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1703 * Version 2.11.12 released
1704 * doc/ref-recording.xml: document SQL I/O recording.
1705 * doc/ref-prepared.xml: new file for documenting prepared statements.
1706 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
1708 * doc/ref-conditions.xml: complete documentation of condition system.
1709 * doc/global-index.xml: add symbols from condition system and remove
1710 those from LOB and prepared statement APIs.
1711 * doc/ref-fdml.xml: complete documentation of FDML.
1712 * doc/glossary.xml: add View Class.
1713 * doc/TODO: remove items done.
1714 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
1715 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
1716 additional slot accessors for condition classes.
1718 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1719 * doc/ref-ooddl.lisp: Add documentation
1720 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
1721 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
1722 * doc/oodml.lisp: Rename references to new name of
1723 *DEFAULT-STRING-LENGTH*
1725 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1726 * doc/ref-transaction.xml: document transaction handling.
1727 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
1728 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
1729 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
1730 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
1733 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1734 * doc/ref-fdml.xml: document the FDML.
1735 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
1736 * sql/ooddl.lisp: moved *default-varchar-length* to here from
1737 oodml.lisp and renamed to *default-string-length*
1739 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1740 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
1741 to allow specifying transactionless table creation
1742 * doc/ref-oodml.lisp: Add new keyword to signature of
1745 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1747 * sql/expressions.lisp: when removing duplicate table identifiers
1748 in the FROM clause of a query, check both table name and alias
1750 * sql/fdml.lisp: remove DESCRIBE-TABLE.
1751 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
1752 DATABASE-DESCRIBE-TABLE.
1753 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
1754 and LIST-TABLE-INDEXES.
1755 * sql/generic-postgresql.lisp: add reader conditional #+nil for
1756 DATABASE-DESCRIBE-TABLE and comment about its uses for
1757 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
1758 returning type info for all attributes.
1759 Fix DATABASE-SEQUENCE-LAST.
1760 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
1761 LIST-INDEXES with additional keyword parameter :ON.
1762 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
1763 with LIST-INDEXES (with :ON parameter).
1764 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
1765 * doc/ref-connect.xml: minor tidying.
1766 * doc/ref-fddl.xml: document the FDDL.
1767 * doc/TODO: removed items done. Moved note about transaction handling
1769 * TODO: move note about transaction handling to doc/TODO. Added
1770 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
1772 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1774 * sql/syntax.lisp: updated docstrings.
1775 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
1777 * sql/database.lisp: add docstrings for CREATE-DATABASE,
1778 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
1779 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
1780 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
1781 * doc/ref-connect.xml: document connection/initialisation.
1782 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
1783 * doc/TODO: remove items done.
1784 * Makefile: add db-oracle to to SUBDIRS.
1786 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1787 * sql/oodml.lisp: Add new serialization functions:
1788 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1789 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1790 from a table that has more than one primary index.
1791 * sql/conditions.lisp: Fix printing of closed-database error
1793 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1795 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1796 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1798 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1799 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
1800 of SQL-EXPRESSION from CLSQL-SYS.
1801 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
1802 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
1803 * doc/Makefile: added Mandrake linux.
1804 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
1805 * doc/appendix.xml: fixed little typo (adsf).
1806 * doc/glossary.xml: removed closed-database and note about
1807 sql-expression, added some entries.
1808 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
1810 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1812 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1813 * multiple: Add generalized-boolean type as requested by
1815 * TODO: Added need for test of generalized-boolean
1817 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1818 * Version 2.11.7 released
1819 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1820 for loading with clc-register-user-package. Remove personal
1821 directory from path lisp.
1822 * db-mysql/mysql-loader.lisp: Similar changes
1824 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1825 * Version 2.11.6 released
1826 * sql/oodml.lisp: Commit patch from Edi Weitz
1827 to fix symbol writing/reading
1828 * TODO: Add need for symbol slot test
1830 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1831 * sql/package.lisp: remove duplicate export of
1832 *CACHE-TABLE-QUERIES-DEFAULT*.
1833 * doc/ref-*.xml, doc/global-index.xml: new files documenting
1834 the CommonSQL compatible api.
1835 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
1836 reflect changes in return values of WITH-TRANSACTION.
1838 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1839 * tests/README: Fix filename [reported by Bill Clementson]
1840 * sql/transactions.lisp: Apply return value patch from
1841 Edi Weitz for WITH-TRANSACTION
1842 * tests/README: Remove ptester package requirement (as noted
1845 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1846 * Version 2.11.5 released
1847 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1848 Select connection-spec based on connection type. Bugs reported by
1850 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1851 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1852 name on Windows, add \bin\ directory to search path
1854 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1855 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
1857 * sql/operations.lisp: substr now generates SUBSTR for use on
1858 Oracle; added a new operator SUBSTRING for use elsewhere. minus
1859 now generates MINUS for use on Oracle. Nvl signals an error if
1860 not called with exactly 2 arguments. Add concat function for use
1861 instead of the || operator on MySQL and Oracle.
1862 * sql/syntax.lisp: changed internal symbol for the || operator to
1864 * sql/expressions.lisp: removed redundant and unused functions
1865 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1866 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
1867 * sql/generics.lisp: removed generic function for
1868 DATABASE-CONSTRAINT-DESCRIPTION (see above).
1869 * tests/test-syntax.lisp: modified/added tests according to changes
1870 in sql/operations.lisp.
1871 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
1873 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
1874 and SQL-USERENV to the shared exports list. Removed
1875 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
1876 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1877 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1878 RECORD-SQL-RESULT from shared exports list.
1880 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1881 * db-postgresql/postgresl-sql.lisp: Avoid computing
1882 result-types lisp when nil result-types. Return only
1883 one value when field-types nil.
1884 * db-mysql/mysql-sql.lisp: Simple queries now
1885 working with prepared statements.
1887 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1888 * Version 2.11.4: MySQL 4.1 now passes all tests
1889 * sql/package.lisp: Add API for prepared statments.
1890 * sql/fdml.lisp: Change implicit flatp processing
1891 for string map-query for greater CommonSQL conformance.
1892 Add high-high API for prepared statements.
1893 * tests/test-basic.lisp: Add test for map-query and
1895 * sql/transactions.lisp: Change name/semantics of
1896 autocommit to set-autocommit.
1897 * sql/generic-postgresql.lisp: Add support for
1898 prepared statements.
1899 * tests/test-internal.lisp: New file
1900 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1901 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1902 Controller invocation.
1903 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1904 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1905 function contains a subselect.
1907 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1909 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1910 type (setf slot-value-using-class)
1911 * TODO: add not that need a test case for the above fix
1912 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1914 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1915 introduced in Oracle8. Leave older code selectable by a reader macro
1916 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1917 uses OCILogon and does not the more complex session management.
1919 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1920 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1921 * test/test-init.lisp: Add universal-time slot to person.
1922 * test/test-fddl.lisp: Add tests of universal-time slot
1923 * test/test-ooddl.lisp: Test universal-time slot in an object
1924 * TODO: Remove need for universal-time test
1925 * debian/rules, debian/control: Add cl-sql-oracle binary package
1926 * doc/appendix.xml: Add Oracle backend information
1927 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1928 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1929 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1930 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1931 for map-query to reflect changed in arguments to be CommonSQL compatible.
1932 Updated old clsql conditions to new CommonSQL compatible conditions.
1934 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1935 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1936 type. Added *default-varchar-length* rather than previous hard-coded
1937 varchar length. Remove 'simple-string and 'simple-base-string since they
1938 are subtypes of 'string.
1939 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1940 local hard-coded value.
1941 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1942 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1943 CHAR to lisp type character.
1944 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1945 * sql/operations.lisp: Add userenv
1946 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1948 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1949 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1950 * test/test-init.lisp: Add large table with bigint slot
1952 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1953 * Version 2.11.1 released: Much simpler Oracle client library loading.
1954 Now uses ORACLE_HOME environmental variable as well as tests default
1955 path for Oracle Instant Client.
1957 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1958 * Version 2.11.0 released: Full Oracle support. All tests pass
1959 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1960 * tests/test-init.lisp: capitalize odbc backend name in banner
1961 * CONTRIBUTORS: Add note about Marcus' excellent work
1962 * sql/oodml.lisp: Removed old stub function
1963 * clsql.asd: Use module names in current package rather than keyword package
1964 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1965 in setting sequence position. Make autocommits more efficient.
1966 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
1967 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1968 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1969 and read-sql-value for NUMBER and CHAR.
1970 * sql/base-classes.lisp: Add autocommit slot
1971 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1972 * doc/intro.xml: Add Oracle
1974 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
1975 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
1976 CLSQL-SIMPLE-WARNING with SQL-WARNING.
1977 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
1979 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
1980 * clsql.asd: reworked module structure in package definition and
1981 file names to better reflect component functionality.
1982 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
1983 exports list. Removed duplicate and obsolete exports. Exported
1984 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
1985 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
1986 according to whether they are specified by CommonSQL or CLSQL
1988 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
1990 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
1991 here from basic-sql.lisp.
1992 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
1993 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
1994 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1996 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
1997 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
1999 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2000 * Version 2.10.22 released
2001 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
2002 has reversed class slots, change the default for ordered-class-slots so that slots
2003 are now in the same order an in the def-view-class.
2004 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
2005 * test/test-fddl.lisp: Add two tests for mixed case names
2006 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
2007 for computed fields, this will require some adjustment to the test suite which
2008 in many cases expects integers.
2009 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
2011 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
2012 * Version 2.10.21 released
2013 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
2014 db-odbc, and db-aodbc.
2015 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
2016 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
2017 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
2018 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
2019 sql/generic-odbc.lisp
2020 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
2021 Move common code to sql/generic-postgresql.lisp
2022 * sql/classes.lisp: honor case of string tables when outputting queries
2023 * sql/objects.lisp: Add database type to default database-get-type-specifier method
2024 * sql/sql.lisp: Add database type to default database-abort-transaction method
2025 * db-mysql/mysql-objects.lisp: New file
2026 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
2027 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
2029 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
2030 default db case for FDML/SELECT/25
2032 22 May 2004 Kevin Rosenberg
2033 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
2034 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
2035 and string identifiers with non-default case
2036 * sql/table.lisp: Don't convert string table name to a symbol.
2037 * sql/classes.lisp: Honor case of string identifiers
2038 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
2040 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
2041 of owner phrases. Obtain server and client versions.
2042 * db-oracle/oracle-objects.lisp: Fix type specifiers
2043 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
2044 * tests/test-init.lisp: Properly get username from Oracle connection-spec
2046 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2047 * sql/generics.lisp: reworked docstrings. Remove generics for
2048 ADD-TO-RELATION and REMOVE-FROM-RELATION.
2049 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
2050 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
2051 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
2052 for CommonSQL compatibility. Remove ADD-TO-RELATION and
2053 REMOVE-FROM-RELATION.
2054 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
2055 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
2056 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
2057 * sql/conditions.lisp: add documentation for conditions. Add
2058 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
2060 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2061 * sql/basic-sql.lisp: reworked docstrings.
2062 * sql/transactions.lisp: reworked docstrings.
2063 * sql/sql.lisp: reworked docstrings.
2064 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
2065 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
2066 * sql/database.lisp: reworked docstrings.
2067 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
2068 and FDML extensions and database extensions.
2070 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2071 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
2072 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
2074 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
2075 Oracle versions with the PURGE option required for drop table. This needs
2076 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
2078 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2079 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
2080 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
2081 * sql/table.lisp: reworked docstrings.
2082 * sql/objects.lisp: moved *default-update-objects-max-len* here from
2084 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
2085 DROP-VIEW and DROP-INDEX and the use of the :transactions and
2086 :constraints keyword args to CREATE-TABLE.
2087 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
2088 CommonSQL compatible with respect to column constraints.
2090 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2091 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
2092 Requires UFFI 1.5.0 or higher
2094 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2096 * sql/conditions.lisp: Fix cerror
2098 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2099 * Version 2.10.18 released: New condition hierarchy to be compatible
2100 with CommonSQL -- not backward compatible with previous CLSQL.
2101 * sql/db-interface.lisp: Add more default methods
2102 * sql/objects.lisp: Add explicit table name to order-by parameters
2103 in find-all when only one table to avoid selecting a duplicate row.
2104 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
2105 as previous logic was adding two fields (foo asc) to SELECT query.
2106 Make :result-types :auto be the default for object selections.
2107 Properly handle caching key when using multiple order-by with asc/desc
2109 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
2111 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2112 * sql/recording.lisp: reworked docstrings.
2113 * sql/syntax.lisp: reworked docstrings.
2114 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
2115 SQL syntax state functions being macros.
2117 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2118 * sql/package.lisp: Export initialize-database-type and
2119 *initialize-database-types* from CLSQL package.
2120 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
2121 remove old CLSQL conditions.
2122 * sql/loop-extensions.lisp: Make errors of type sql-user-error
2123 * */*.lisp: Convert to from old to new conditions
2125 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2126 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
2127 To handle this difference, will need to add a new database-drop-table
2129 * db-oracle/oracle-sql.lisp: Move server-version and
2130 major-version-number to database object to allow multiple connections
2131 to Oracle servers of different versions.
2133 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2134 * TODO: moved notes about backends to doc/TODO.
2135 * doc/TODO: added notes about backends and select extensions.
2136 * sql/base-classes.lisp: remove obsolete schema slot in database
2139 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2140 * db-oracle/oracle-api: Add OCIServerVersion
2141 * db-oracle/oracle-sql: Query and store server version on connect
2142 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
2143 function to handle OCI's lack of bigint support
2144 * test/test-basic.lisp: Separate bigint testing
2145 * test/test-utils.lisp: Add oracle to specs and list of backends
2146 * doc/TODO: New file
2147 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
2148 run-time instantiation of variables in reader macros.
2149 * TODO: Remove item already complete. Add note about
2152 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2153 * sql/syntax.lisp: added condition to the reader macro to treat [*]
2154 as a column identifier (rather than an operation) for CommonSQL
2156 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
2157 keword args to SELECT, [*] as column identifier, new MAP-QUERY
2158 behaviour and the ANY and ALL operators in subqueries.
2159 * tests/test-init.lisp: add set-operation and subquery tests to
2160 appropriate skip lists.
2161 * sql/objects.lisp: remove redundant and non CommonSQL compatible
2162 ORDER-BY-DESCENDING keyword argument for SELECT.
2163 * sql/classes.lisp: remove redundant and non CommonSQL compatible
2164 ORDER-BY-DESCENDING keyword argument for SELECT.
2165 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
2166 with object queries.
2168 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2169 * sql/db-interface.lisp: Add new db-type-has-union?
2170 since Mysql 3.23 does not support unions.
2171 * sql/test-init.lisp: Don't try union tests on database
2172 backends which do not support it.
2173 * db-oracle/*.lisp: initial port to UFFI
2174 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
2175 implement REFRESH for SELECT.
2176 * tests/test-oodml.lisp: Add tests for deferred retrieval,
2177 caching, refresh, and update-object-joins
2178 * tests/test-init.lisp: Add deferred-employee-address class
2180 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2181 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
2182 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
2183 ALL and EXISTS generate function expressions so they output the
2185 * sql/classes.lisp: SELECT now generates appropriate SQL when
2186 passed the SET-OPERATION and ALL keyword arguments.
2187 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
2188 accepts ordering constraints as pairs of the form (column direction)
2189 where direction may be :ASC or :DESC.
2190 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
2191 Correct tests for ANY, SOME, ALL and EXISTS.
2192 * tests/test-fdml.lisp: added test for COALESCE.
2193 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
2194 using funcall unless QUERY-EXPRESSION returns one column and its
2195 FLATP slot is not nil in which case apply is used.
2196 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
2198 * TODO: remove items done.
2199 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
2200 DATABASE-LIST-ATTRIBUTES.
2201 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
2202 results in DATABASE-LIST-ATTRIBUTES.
2204 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2205 * sql/classes.lisp: SELECT now accepts table identifiers as strings
2206 for CommonSQL compliance. Add support for qualified sql identifiers
2207 with aliased table names.
2208 * tests/test-fdml.lisp: added tests for table identifiers as strings
2209 in SELECT and for aliased definitions.
2210 * tests/test-syntax.lisp: added tests for alias definitions.
2212 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2213 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
2214 field-names set to nil.
2215 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
2216 with null attribute values.
2217 * sql/operations.lisp: modify SQL concatenation operator to accept
2218 unescaped || symbol.
2219 * sql/syntax.lisp: modify sql reader macro function to accept
2220 unescaped sql concatenation operator.
2221 * tests/test-fdml.lisp: unescape sql concatenation operator.
2222 * tests/test-syntax.lisp: unescape sql concatenation operator.
2223 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
2224 Note to add test for universal-time. Note about difference from
2225 CommonSQL in transaction handling.
2227 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2228 * tests/test-init.lisp: Add deferred-employee-address
2230 * tests/test-oodml.lisp: Add deferred retrieval testgs
2232 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2234 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
2235 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
2236 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
2237 * *: Fix minor style warnings
2238 * clsql-classic: Remove system and subdirectory
2239 * clsql-base: Remove system and subdirectory and
2240 fold into clsql system
2241 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
2242 as supported platform.
2244 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2245 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
2246 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
2247 Allegro 7.0beta AMD64
2248 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
2249 of ODBC longs since this type can vary on 64-bit platforms depending
2250 upon the compilation options of unixODBC.
2251 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
2252 structures found by testing with AllegroCL 7.0b AMD64.
2253 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
2254 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
2255 Initial caching support for SELECT
2256 * tests/test-oodml.lisp: Avoid using cache when testing select.
2257 * sql/kmr-mop.lisp: Explicitly check slot order and
2258 store as a cl:*feature*
2259 * sql/recording.lisp: Remove additional types to
2260 increase CommonSQL conformance.
2261 * tests/test-init.lisp: Change a :column attribute
2262 to test symbols as value
2263 * sql/relations.lisp: Remove functions since they don't support
2264 many to many relationships.
2265 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
2266 of add-to-relations function and replace with explicit field settings.
2267 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
2269 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2271 * LATEST-TEST-RESULTS: results with current version
2272 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
2273 since cmu19 has opposite order of class slots.
2274 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
2275 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
2277 * tests/test-init.lisp: Check test-database-underlying-type for
2280 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2281 * sql/operations.lisp: complete remaining operations for the sql
2282 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
2283 UNION, INTERSECT, BETWEEN.
2284 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
2285 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
2286 * tests/test-syntax.lisp: add tests for new operations.
2287 * tests/test-fdml.lisp: add tests for queries based on new operations.
2288 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
2289 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
2290 * TODO: removed entries done.
2292 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2293 * tests/benchmarks.lisp: Add immediate vs. deferred
2296 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2297 * Version 2.10.13: Now works on openmcl 0.14.2
2298 * sql/objects.lisp: Add :retrieval :immediate for
2300 * tests/test-init.lisp: Add non-index fields for testing
2301 join class employee-addresss
2302 * test/test-oodml.lisp: Add tests for retrieval immediate
2303 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
2304 values which are now listifed by openmcl 14.2.
2305 * sql/objects.lisp: more framework for supporing immediate retrieval
2307 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2308 * docs/intro.xml: Upload location of a README file
2309 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
2310 changing the type-specifier. Use a lisp type of (OR NULL FOO)
2311 for a specified-type of FOO unless :db-constraints :not-null.
2312 No need to specialize finalize-inheritance for openmcl.
2313 * tests/test-*.lisp: Rename fields so that joins occur on
2314 fields with different names. This ensures that join code is
2315 selecting the proper name.
2316 * test/test-init.lisp: Add :base-table for employee-address
2317 view class for testing.
2318 * sql/objects.lisp: Use view-table rather than name of table
2319 in a number of places to fix errors noted with using :base-table.
2321 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2322 * sql/objects.lisp: replace *update-records-on-make-instance* with
2323 *db-auto-sync* which also controls both automatic creation of
2324 new records on creation of new instance and updating of record
2325 fields on setting of instance slots (as suggested by Edi Weitz).
2326 * tests/test-init.lisp: replace *update-records-on-make-instance*
2327 with *db-auto-sync*.
2328 * sql/package.lisp: replace *update-records-on-make-instance*
2329 with *db-auto-sync*.
2330 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
2331 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
2332 and *default-database* in FIND-ALL.
2333 * sql/package.lisp: import time functions from CLSQL-BASE.
2334 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2335 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2336 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2337 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
2340 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2341 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
2342 now return a sql-object-query type rather than directly performing a query.
2343 This improves CommonSQL conformance.
2344 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
2345 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
2346 depend on sql-object-query-type.
2347 * sql/loop-extensions.lisp: Move from base package
2348 * classic/package.lisp: remove references to map-query and do-query
2350 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2351 * TODO: New section on optimizations, especially optimizing JOINs.
2352 * sql/objects.lisp: Have :target-slot return of list of lists rather
2353 than a list of cons pairs to be conformant with CommonSQL.
2354 Make :target-slot much more efficient by using a SQL inner join
2355 statement and just requiring one SQL query. Add :retrieval :deferrred
2356 to target-slot joins. Add placeholder for update-objects-join.
2357 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
2358 and process them for query output-sql.
2360 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2362 * base/basic-sql.lisp: Avoid multiple evaluation
2363 of query-expression in DO-QUERY
2364 * sql/objects.lisp: Make SELECT a normal function.
2365 SELECT now accepts type-modified database identifiers, such as
2366 [foo :string] which means that the values in column foo are returned
2367 as Lisp strings. Add new *update-records-on-make-instance* special
2368 variable controlling automatic creation of new instances. Add missing
2369 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
2370 * sql/packages.lisp: Export *update-records-on-make-instance*
2371 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
2373 * test/test-fdml.lisp: Add tests for type-modified
2374 database identifiers.
2375 * test/test-init.lisp: Stop using add-relation since implementing
2376 many-to-many joins. Use *update-records-on-make-instance*
2377 to automatically store records on instance creation. Add many-to-many
2378 employee-address view-class.
2380 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2382 * base/loop.lisp: Add object iteration. Use :result-type
2383 :auto for result-set. Remove
2384 duplicate (and non-correct) code for non-list variables by
2385 simply making an atom variable into a list.
2386 * sql/package.lisp: Remove unnecessary clsql-sys package
2387 and replace it with clsql.
2388 * sql/metaclasses.lisp: Properly store specified-type from
2389 direct-slot-definition and then store translated type in
2390 effective-slot-definition
2391 * sql/classes.lisp: Don't output type in sql-output
2392 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
2393 [foo :integer] as fields in SELECT.
2394 * sql/query.lisp: Set default for :result-types to :auto in
2396 * sql/objects.lisp: Use specified-type when invocating
2397 database-get-type-specifier. def-view-class macro now returns
2399 * base/basic-sql.lisp: Make :AUTO the default value for
2400 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
2401 * sql/objects.lisp: Add bigint type
2402 * test/tests-basic.lisp: Add tests for :result-types for
2403 MAP-QUERY and DO-QUERY
2404 * test/test-fdml.lisp: Add test for result-types in LOOP
2405 and also using single symbol rather than a list for variables.
2406 Add test that default :result-types is auto for FDML QUERY.
2407 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
2408 of SQL-IDENT-ATTRIBUTE.
2409 * test/test-oodml.lisp: Enable OO loop iteration test,
2410 modify it so it doesn't depend on boolean where.
2412 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2414 * sql/objects.lisp: added derived type specifier for universal time.
2415 * sql/package.lisp: added #:universal-time to clsql-sys exports.
2416 * tests/test-oodml.lisp: added test for translation of boolean slots
2417 in SELECT with object queries.
2419 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2420 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
2421 for odbc/postgresql backend.
2422 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
2423 it can handle NIL values from the ODBC driver
2424 * tests/benchmarks.lisp: New file with initial
2426 * sql/relations.lisp: fix to add subclassing support,
2427 minor optimizations [Edi Weitz]
2429 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2431 * base/conditions.lisp: Add *backend-warning-behavior*
2433 * db-postgresql-socket/postgresql-socket-sql.lisp:
2434 Honor value of *backend-warning-behavior*
2435 * tests/test-fdml.lisp: Remove test of raw boolean value
2436 since different backends handle this differently. Add
2437 test for :column attribute.
2438 * tests/test-oodml.lisp: Add tests for boolean slot value
2439 and for :void-value attribute
2440 * tests/test-init.lisp: Use *backend-warning-behavior*
2441 to suppress warnings from postgresql about implicitly
2442 creating primary key in tables. Add new address table.
2444 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2446 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
2447 result-types is :auto
2448 * sql/objects.lisp: Properly handled writing/reading Boolean
2449 values from SQL database when retrieving objects.
2450 * test/test-fdml.lisp: Add another test for boolean results
2451 * test/utils.lisp: Fix incorrect declaration
2453 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2455 * sql/generics.lisp: add generic function for SELECT.
2456 * sql/objects.lisp: make SELECT a method specialisation.
2457 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
2458 referred to are View Classes.
2459 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
2460 query-expression arg evaluates to a list, then we have an object
2462 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
2464 * TODO: remove items done and add a todo for SELECT.
2465 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
2467 * sql/sql.lisp: add :field-names arg to QUERY.
2468 * tests/test-fdml.lisp: minor rework to use :field-names arg to
2471 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2472 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
2473 or more View Classes.
2474 * sql/objects.lisp: make the :flatp argument to SELECT work with
2476 * sql/objects.lisp: make SELECT accept a :result-types argument
2477 (defaults to :auto) which is passed on to QUERY.
2478 * sql/objects.lisp: SELECT returns field-names as a second value.
2479 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
2480 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
2481 to SELECT and take only first value as appropriate.
2482 * tests/test-fdml.lisp: add two new tests for query result coercion
2483 and the field-names returned as a second value from SELECT.
2484 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
2486 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2487 * Version 2.10.6-pre1
2488 * sql/metaclasses.lisp: Add void-value slot
2489 * doc/csql.xml: Update def-view-class documentation
2490 * test/test-init.lisp: Change old :db-type to :db-kind.
2491 Remove old :nulls-ok attributes.
2492 * sql/objects.lisp: Add new universal-time and bigint
2493 types. Optimize reading of integers using parse-integer
2494 rather than read-from-string.
2495 * */*.lisp: Merge clsql-base-sys and clsql-base packages
2496 into clsql-base package
2497 * classic/sql.lisp: Move large object support into base, leaving
2498 classic without any functionality that is provided in the clsql
2500 * classic/package.lisp: Rename clsql-classic-sys package to
2501 its former nickname of clsql-classic
2503 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2504 * Version 2.10.5: SQLite backend now passes all result-types tests
2505 * clsql-sqlite.asd: Depend on clsql-uffi system
2506 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
2507 for efficiency and code reuse.
2508 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
2509 for better cross-implementation compatibility.
2511 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2513 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
2515 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
2516 bug on SBCL in result-field-names function as reported by Marcus Pearce
2517 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
2518 manifest in SBCL testing
2520 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2522 * sql/database.lisp: Conform more to CommonSQL output
2523 for STATUS command [Marcus Pearce]
2524 * sql/sqlite-sql.lisp: Rework to use result-types
2525 * sql/sqlite-api-clisp.lisp: Add compatibility layer
2526 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
2527 be cleaned up of most clisp reader conditionals
2528 * sql/test-init.lisp: Now run field type tests on sqlite
2531 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2533 * base/basic-sql.lisp: Set default value of :result-types
2534 to :auto for more CommonSQL conformance.
2535 * test/test-fdml.lisp: Add tests for numeric value of fields
2538 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2539 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
2540 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
2541 Return field names as second value for QUERY. This can be overridden
2542 for efficiency with the new keyword :FIELD-NAMES set to NIL
2543 in the QUERY invocation.
2544 * test/test-fdml.lisp: Add tests for new field-name feature
2545 * sql/metaclass.lisp: Remove old Lispworks cruft
2546 and replace it with invocation of new code in kmr-mop.lisp
2547 which actually works with Lispworks 4.2
2548 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
2550 * base/db-interface.lisp: Document the multiple values
2551 returned by DATABASE-ATTRIBUTE-TYPE so matches the
2552 undocumented CommonSQL behavior.
2553 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
2554 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
2555 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
2556 Implement CACHE-TABLE-QUERIES.
2557 * db-odbc/odbc-sql.lisp: Fix attribute-type function
2558 * test/test-fddl.lisp: Add tests for attribute type
2559 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
2561 * base/classes.lisp: Add attribute-cache slot to database clas
2562 * base/initialize.lisp: initialize-database-type now automatically
2563 loads database-type backend as needed.
2564 * base/test-init.lisp: Utilize new initialize-database-type functionality.
2565 * TODO: remove items done
2567 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2569 * sql/objects.lisp: remove create/drop-sequence-from-class.
2570 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
2571 * sql/objects.lisp: improved CommonSQL compatibility for
2572 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
2573 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
2574 * sql/generics.lisp: move generics from objects.lisp to here.
2576 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2577 * Version 2.9.6-pre1
2578 * db-mysql/mysql-client-info.lisp: Add client version 4.1
2580 * sql/sql.lisp: Make *default-database* the default for
2583 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2585 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
2587 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
2588 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
2589 on a metaclass specialized from standard-db-class.
2592 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2593 * Version 2.9.4: Multiple changes to support Allegro's "modern"
2594 lisp which uses a lowercase reader and has case-sensitive symbols
2595 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
2596 exposed by case-sensitive mlisp.
2598 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2599 * Version 2.9.3: All tests now pass on all platforms!
2600 * LATEST-TEST-RESULTS: New file with summary of test results
2601 * sql/generics.lisp: New file for generic function definitions.
2602 * test/test-init.lisp: Display names of skipped tests.
2603 Use unwind-protect to ensure disconnect
2604 * sql/objects.lisp: Change database-type to database-underlying-type
2605 so that actual database engine is properly identified
2606 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
2607 return an ISO timestring for compatibility with other drivers.
2608 Workaround bug in MyODBC for LIST-TABLE-INDEXES
2609 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
2610 returns floating-point values for floor and truncate operations
2611 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
2612 * tests/test-basic.lisp: Port to regression tester
2613 * test/test-init.lisp: Output to *report-stream*
2614 * docs/appendix.xml: Document ODBC and SQLite backends.
2615 * sql/classes.lisp: Make output-sql require a database parameter.
2616 This allows SQL generation to have the proper case to support
2617 the differences in case handling between CommonSQL API,
2618 Postgresql, MySQL, Oracle.
2620 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2621 * Version 2.9.2: Improvments in database capability introspection
2622 and querying. Support transactions in MySQL where available.
2623 All tests now pass on MySQL and SQLite in addition to postgresql
2624 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
2625 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
2626 DATABASE-LIST-SEQUENCES.
2627 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
2628 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
2629 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
2630 * tests/*.lisp: Check database capabilities and remove tests which
2631 the database backend does not support
2632 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
2633 controls whether InnoDB tables will be created when supported on
2634 the underlying MySQL server.
2636 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2637 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
2638 supported by all database backends (except AODBC since
2639 AODBC doesn't support index querying)
2640 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
2641 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
2642 to support index queries
2643 * db-aodbc/aodbc-sql.lisp: Filter driver manager
2644 "information_schema" tables from LIST-TABLES
2645 * tests/test-basic.lisp: Remove table after testing
2646 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
2647 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
2648 which gets the underlying type of database -- required
2649 when dealing with ODBC databases and want to query
2650 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
2651 as first database-backend specific feature. Is T on
2652 :mysql, NIL on other backends. Change DROP-TABLE to
2655 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2656 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
2658 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2660 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
2661 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
2663 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2664 * Version 2.8.0: New API function: LIST-DATABASES
2665 * base/utils.lisp: Fix command-output on CMUCL/SBCL
2666 * db-*/*-sql.lisp: Add new database-list function
2667 * base/database.lisp: Add new LIST-DATABASES command
2669 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2671 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
2672 * db-sqlite/sqlite-api-uffi.lisp: Print error string
2675 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2677 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
2680 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2682 * base/objects.lisp, base/classes.lisp: Patch
2683 for db-kind from Eduardo Munoz
2685 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2687 * base/basic-sql.lisp: Fix FLATP in QUERY
2689 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2690 * Version 2.7.3: Implement RECONNECT
2692 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2693 * Version 2.7.2: Fix ODBC on Lispworks Windows
2695 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2696 * Version 2.7.1: Fix for new ODBC backend.
2697 clsql-odbc now works on SBCL, CMUCL, OpenMCL
2698 in addition to AllegroCL and Lispworks.
2700 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2701 * Version 2.7.0: New backend: ODBC. Tests as
2702 well as AODBC backend on Allegro,Lispworks.
2703 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
2704 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
2705 to explicitly set ODBC2 support. Add BIGINT support.
2706 Add result-types support. Added SQLTables.
2707 Fix array type in fetch-all-rows. Make width
2708 changable by database or query.
2709 * base/utils.lisp: Add process functions
2710 * base/package.lisp: Export utils to CLSQL-BASE-SYS
2711 * db-aodbc: Implement sequence functions,
2712 database-list-tables, database-list-attributes
2713 * tests/utils.lisp: Add support for ODBC backend,
2714 rework READ-SPECS to use +all-db-types+
2715 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
2718 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2719 * Version 2.6.13. Requires UFFI version 1.4.9
2720 * db-odbc/*.lisp: Further porting.
2721 Pre-alpha code! But, basic query is now working.
2723 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2725 * base/transactions.lisp: Add quote for macro
2726 expansion of WITH-TRANSACTIONS [Time Howe]
2727 * db-sqlite/sqlite-sql.lisp: Support memory database
2728 in database-probe [Ng Pheng Siong]
2729 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
2730 The DBI layer is not finished.
2732 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2734 * sql/objects.lisp: add :root-class functionality for
2735 list-classes and add duration type support [Marcus Pearce]
2736 * db-odbc: Add mid-level [DBI] layer
2738 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2740 * db-aodbc: Add methods for generic functions, some are
2741 not yet implemented.
2742 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
2745 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2747 * base/package.lisp: Add missing symbols [Marcus Pearce]
2749 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2751 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
2752 * utils/time.lisp: Multiple fixes [Marcus Pearce]
2753 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
2755 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2757 * sql/*.lisp: Remove schema versioning cruft
2759 * Makefile: Add classic subdirectory
2761 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2763 * sql/sql.lisp: Fix TRUNCATE command, bug reported
2765 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
2766 specific and easy for an application to directly support.
2767 Idea from Marcus Pearce.
2768 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
2769 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
2770 Keep low-level interface for future optimization
2771 supporting LIST-ATTRIBUTE-TYPES command.
2772 * Makefile: Add to db-sqlite and test directories.
2773 Include them in top-level Makefile
2775 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2777 * sql/relations.lisp: Add missing file
2778 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
2779 * test/test-time.lips: New file [Marcus Pearce]
2781 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2783 * test/test-init.lisp: Properly handle object
2784 creation. Close database after use.
2785 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2786 function so can have methods specialized on
2787 table being a string or an sql-table object.
2788 * base/pool.lisp: Really fix CMUCL locking
2790 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2792 * test/test-init.lisp: Signal correctly
2793 if any errors occurred in any test suite
2794 * base/loop-extensions.lisp: Fix error
2795 introduced for Lispworks
2796 * base/pool.lisp: Fix locking for CMUCL
2797 * base/objects.lisp: Remove schema-version cruft
2799 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2800 * Version 2.6.2: New CLSQL API functions:
2801 DESCRIBE-TABLE AND TRUNCATE-DATABASE
2802 Currently, this are only supported on :postgresql
2803 and :postgresql-socket
2804 * base/database.lisp: automatically load ASDF system
2805 in CONNECT if not already loaded
2806 * base/tests.lisp: disconnect database after testing
2807 * base/*.lisp: Remove CLOSED-DATABASE type in favor
2808 of storing open/closed status in slot of database
2809 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2810 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2811 DATABASE-DESCRIBE-TABLE
2812 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2813 * base/conditions: Remove duplicate condition
2814 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2815 * base/recording.lisp: Add new :QUERY type for recording
2817 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2818 * Version 2.6.1: documentation fixes, merged
2819 classic-tests into tests
2821 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2822 * Version 2.6.0 released: New API functions
2823 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2824 * doc/ref_clsql.xml: Document new functions
2825 * base/database.lisp: New API functions
2826 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2827 * base/utils.lisp: Fix use of position-char.
2828 Add COMMAND-OUTPUT used by backends for running
2829 external programs. Fix parsing of SQL*NET-compatible
2831 * base/loop-extension.lisp: Simplify package use
2832 for Lispworks and Allegro
2833 * db-*/*-sql.lisp: Added DATABASE-CREATE,
2834 DATABASE-DESTORY, PROBE-DATABASE methods
2835 * tests/test-init.lisp, clasic-tests/tests.lisp:
2836 Use destroy-database and create-database to ensure
2837 testing with empty database
2838 * tests/test-connection.lisp: Add tests for
2839 parsing of string connection-specs
2840 * examples/run-tests.sh: New file for running
2841 test suite on all installed CL implementations
2842 * examples/clsql-tutorial.lisp: moved from
2844 * examples/dot.clsql-tests.config: New file
2845 giving an example test configuration
2846 * test/README: Add notes about rtest/ptester
2847 downloads and link to sample test configuration file.
2849 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2850 * Version 2.5.1 released:
2851 * tests/*.lisp: Rework so tests are run
2852 on multiple backends automatically based
2853 on the contents of ~/.clsql-tests.config.
2854 Reuse helper functions from classic-tests.
2855 * base/database.lisp: Support connection-spec
2856 as string for CONNECT
2857 * classic-tests/tests.lisp: Automatically
2858 load database backends as needed.
2860 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2861 * Version 2.5.0 released:
2862 All tests for CLSQL and CLSQL-CLASSIC pass
2864 * base/loop-extension.lisp: Add Lispworks
2865 loop-extension. Improve type specifying on
2868 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2869 * Version 2.4.2 released:
2870 loop extension now supported on Allegro, all
2871 CLSQL-TESTS pass on Allegro.
2872 * sql/metaclasses.lisp: Some optimization
2873 of compute-slots, be selective when
2874 ordered-class-slots needs to be called
2875 instead of class-slots
2876 * TODO: add URL with documentation on
2877 extending Lispworks LOOP form
2879 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2880 * Version 2.4.1 released: CLSQL-TESt suite passes
2881 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2882 Allegro and Lispworks pass all tests except for
2883 FDML/LOOP/1 since the loop extension have not yet
2884 been ported to those implementions.
2885 * sql/metaclasses.lisp: Added new slot to standard-db-class
2886 to hold user-specified type. OpenMCL adjustments to compensate
2887 for its type-predicate function. Since AllegroCL, Lispworks,
2888 and OpenMCL have different slot orders, added compute-slots
2889 and ordered-class-slots functions so their slot order matches
2892 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2893 * Version 2.4.0 released: All tests for clsql-classic now finish
2894 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2895 mysql, postgresql, postgresql-sockets, and sqlite backends.
2896 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2897 * classic-tests/tests.lisp: Fix package name of
2898 number-to-sql-string.
2899 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2900 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2901 now passes tests on all support UFFI platforms.
2902 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2904 * multiple: Finish renaming of :types keyword to :result-types for
2905 greater CommonSQL compatibility, including documentation
2906 * sql/basic-cmds.lisp: Remove obsolete file
2908 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2909 * Version 2.3.3 released
2910 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2911 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2912 * Fix for schema table [Marcus Pearce]
2913 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2914 * Fixes to test suite [Marcus Pearce]
2916 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2917 * db-*/*-sql.lisp: Ensure that expr in
2918 database-query-result-set is a string
2919 * Documentation integration
2921 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2922 * With for Marcus Pearce's excellent work, I've merged
2923 his clsql-usql port into clsql. The original clsql
2924 interface is available in the clsql-classic package.
2926 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2927 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2928 adding further support for providing backend for UncommonSQL
2930 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2931 * Integrate patch from Aurelio Bignoli for SQLite backend
2933 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2934 * Converted documentation to XML format
2935 * Made package installable with asdf-install
2937 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2938 * Add for-each-row macro
2940 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2941 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2943 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2944 * Add support for SBCL, OpenMCL, and SCL
2945 * Add *load-truename* to search path for clsql's
2948 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2949 * Rework use of file types in .asd files
2951 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2952 * Add .asd definition files for ASDF users
2954 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2955 * Restructure directories for Common Lisp Controller v3 compatibility
2957 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2958 * Also change case of logical host in loader files
2959 * Rework handling of logical pathnames
2961 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2962 * Change case of logical host
2964 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2965 * clsql-base.system: Added base package that can be used without
2966 high-level SQL commands. Used for adding support for UncommonSQL.
2967 * *.system: Reworked logical pathnames to be more consistent with
2968 Common Lisp Controller.
2969 * debian/*: Completed initial Debian support
2971 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2973 * sql/transactions.cl:
2974 Added transaction support. Functions/macros added:
2975 with-transaction, commit-transaction, rollback-transaction,
2976 add-transaction-commit-hook, add-transaction-rollback-hook
2978 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2981 * sql/functional.cl:
2982 Added pool support in connect/disconnect and with-database.
2983 Removed with-db-from-pool as with-database can now works with the connections pool
2985 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2990 Completed connection pool.
2991 Added with-db-from-pool macro.
2993 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2995 Added initial support for connection pool
2996 * sql/transactions.cl
2997 Took transaction code from UncommonSQL and integrated
2998 into CLSQL code. See file for disclaimer about why this
3001 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3002 * interfaces/postgresql/postgresql-sql.cl:
3003 Fix keyword typo in database-read-large-object
3004 * interfaces/mysql/mysql-loader.cl
3005 Fix loading on Win32
3006 * test-suite/tester-clsql.cl
3007 Fix type coercion of double-float
3009 Added debian docbook catalog, made it the default
3011 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
3012 * interface/postgresql/postgresql-api.cl:
3013 * interface/postgresql/postgresql-sql.cl:
3015 * sql/db-interface.cl:
3016 Added large objects support for postgresql.
3018 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3019 * src/postgresql-socket/postgresql-socket-api.cl:
3020 Fixed find-foreign-function call, eliminated crypt warning
3022 Multiple improvements
3024 Moved functionality from low-level interfaces to this file
3025 via generic functions
3026 * test-suite/tester.cl:
3027 Added test with acl-compat-tester, moved others to old-tests
3030 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
3032 Reinstated commented out sections
3033 * interfaces/postgresql/postgresql-loader.cl:
3034 * interfaces/mysql/mysql-loader.cl:
3035 Updated find-forieign-library support.
3036 * interfaces/postgresql-socket/postgresql-socket-package.cl:
3037 Fixed require form for Lispworks (Thanks Marc Battyani!)
3038 * interfaces/postgresql-socket/postgresql-socket-api.cl:
3039 Fixed eval of def-function for crypt library.
3041 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3042 * Added interface to support USQL high-level rouines
3044 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3045 * Separated db-interface and conditions from sql/sql.cl
3046 * Improved foreign library loading testing
3047 * interfaces/postgresql/postgresql-api.cl
3048 Added PQisBusy function
3049 * interfaces/clsql-uffi/clsql-uffi.cl
3050 Fixed sign error for 64-bit processing
3052 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3053 * interfaces/postgresql-socket/postgresql-socket-api.cl:
3054 Fixes to read-double-from-socket. Added 64-bit integer support.
3055 * test-suite/xptest-clsql.cl
3056 Added testint for 64-bit integers
3057 * Additons to installation docs
3059 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3060 * interfaces/postgresql-socket/postgresql-socket-api.cl:
3061 Implemented direct socket reading for field type :double
3062 * Added usage information for :types to documentation
3063 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
3065 * interfaces/clsql-uffi: Created new directory. Split common
3066 interface routines that use UFFI into this package. Required
3067 especially to support direct reading of 64-bit integers into
3068 bignums and bypassing temporary strings.
3069 * test-clsql.cl: Updated to test postgresql-socket's
3070 read-double-from-socket function.
3071 * test-suite/xptest-clsql.cl
3072 Started work on test suite
3074 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3075 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
3076 mysql-fetch-field-direct Got :auto types working
3077 * interfaces/postgresql/postgresql-api.cl
3078 * interfaces/postgresql-socket/postgresql-socket-api.cl
3079 Added pgsql-field-types enum. Got :auto types working.
3081 Renamed :field-types to :types.
3083 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3084 * Added field-types parameter to query, database-query,
3085 database-query-result-set, map-query. Haven't added code
3086 to utilize field types, yet.
3087 * Changed postgresql-socket result set from cons to a structure
3088 * Updated test-clsql.cl to use automated testing with a config
3090 * Changed return types of field accessors from cstring to
3091 (* :unsigned-char). This prepares for being able to use specified
3092 type conversions when taking field data into lisp.
3093 * Added field-type processing for most interfaces. Not done yet.
3095 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3096 * doc/ref.sgml: Updated MAP-QUERY example to use
3097 *read-default-float-format* (John Foderaro)
3098 * Extensive work to foreign library loaders and .system files to
3099 check for successful loading of foreign libraries.
3100 * Modified test-clsql.cl to allow more modularity and
3101 automated testing in future release.
3102 * mysql/mysql-sql.lisp: Added field types
3104 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
3105 * mysql/mysql-sql.lisp:
3106 - Added support for Allegro CL and Lispworks using UFFI layer
3107 - Changed database-connect to use mysql-real-connect. This way,
3108 can avoid using double (unwind-protect)
3109 - Changed database-connect to have MySQL library allocate space
3110 for MYSQL structure. This will make the code more robust in
3111 the event that MySQL library changes the size of the mysql-mysql