1 2014-01-17 Russ Tyndall <russ@acceleration.net>
2 * oodml.lisp, generics.lisp - added filter-select-list generic
3 to allow fine grained control of generated query/object mappings
5 2014-01-07 Russ Tyndall <russ@acceleration.net>
6 * clsql-uffi.lisp, sqlite3 auto-increment support
7 * clsql-uffi.lisp, test-basic.lisp, fixes related to unsigned vs
8 signed ints (thanks Aaron Burrow)
11 2013-09-27 Russ Tyndall <russ@acceleration.net>
12 * fixed bug converting to boolean in db-mysql/mysql-sql.lisp
13 from github user Sectoid https://github.com/UnwashedMeme/clsql/pull/1
15 2013-06-19 Russ Tyndall <russ@acceleration.net>
16 * sql/oodml.lisp, db-postgresql-socket3/sql.lisp,
17 db-mysql/mysql-objects.lisp, sql/generic-odbc.lisp
18 Refactored read-sql-value similar to the other recent refactorings
20 * the symbol case now uses intern instead of read-from-string
21 (which may not return a symbol and could have security issues
22 since read-eval was not being unset)
24 * read-eval is now off for all cases
26 * centralized logic into a single case statement, hopefully making
27 this more readable and debuggable
29 * TODO: make these refactorings to the oracle backend (I cannot
30 test against oracle and am loathe to change without testing
32 2013-06-19 Russ Tyndall <russ@acceleration.net>
33 * sql/mysql-objects.lisp
34 Found and refactored a way some more eql specified methods of
35 database-get-type-specifier in mysql
37 2013-06-18 Russ Tyndall <russ@acceleration.net>
38 * sql/oodml.lisp, sql/mysql-objects.lisp
39 refactored database-output-sql-as-type in a similar fashion to
40 the previous refactor of database-get-type-specifier (fewer
41 methods using case instead of eql specifiers)
43 * removed very strange definition of outputing floats as strings
44 for something sane (it was previously doing silly work like
45 setting the default read float type (which AFAICT doesnt affect
48 * half of the cases nil returned "" other times it returned nil,
49 now if we get a null value we return nil always
51 * removed odd-logic (seemingly untouched since the initial import),
52 that removed null characters from printed lists. If we have #\null
53 in a printed list, we had probably better figure out what went wrong
54 there rather than destructively modifying the list output on the way
55 to the DB ;; removed (substitute-char-string escaped #\Null " ")
57 2013-06-18 Russ Tyndall <russ@acceleration.net>
58 * sql/generic-odbc.lisp, sql/generic-postgresql.lisp, sql/oodml.lisp
61 refactored database-get-type-specifier for postgres and mssql
63 Single methods with a case on the symbol arg (similar to the recent
64 refactoring in oodml.lisp)
66 This reduces line count and generally makes it easier to find and
67 read all the backend-specific types
69 2013-06-10 Russ Tyndall <russ@acceleration.net>
70 * sql/oodml.lisp, sql/generic-postgresql.lisp, doc/ref-fddl.xml,
73 Updated get-database-type-specifier to handle text/longchar type
76 * added a warning above defaulting to VARCHAR (since its probably
77 NOT what is expected on a bad type specifier).
79 * added a case where the specified type being a string, passes
80 that string directly (to better/more easily allow db-specific
83 * added cases where longchar or text converts to text, and
84 exported those symbols (as this seemed type seemed to be missing
85 from fddl/oddl anyway).
87 * reorganized these default methods into a single method with a
88 case statement rather than many eql specified methods (about half
91 * updated the docs to use text instead of longchar since text is
92 a more standard db-type (pg,my,and ms all use text)
94 2013-04-17 Kevin Rosenberg <kevin@rosenberg.net>
96 * sql/utils.lisp: Patch from Ben Hyde to add weak hash table
99 2013-03-07 Ryan Davis <ryan@acceleration.net>
100 * db-postgresql-socket/postgresql-socket-api.lisp - bugfix to
101 adapt to changes in md5:md5sum-sequence. CLSQL now requires a
102 version of MD5 released on or after 2012-11-25 (the latest version
103 currenty in quicklisp). Thanks to Nicolas Neuss for the bug
105 * db-odbc/odbc-sql.lisp - keep a reference to the original
106 connection spec used to create `odbc-database` connections
108 2013-01-09 Russ Tyndall <russ@acceleration.net>
109 sql/oodml.lisp - changed view-classes-and-storable-slots to a
110 method (as it was intended to be all along)
112 2012-12-19 Kevin Rosenberg <kevin@rosenberg.net>
115 2012-11-20 Russ Tyndall <russ@acceleration.net>
116 ## Large refactoring of sql/oodml.lisp and surrounding code
117 * cleaned up update-records-from-* to utilize a single codepath
118 previously there was much duplicate code
119 * tried to further unify direct/effective slot-defs
120 * cleaned up much of the normalized classes code to be more
121 consistent in how it operated, and the code it used (less
122 copy/paste more functions)
123 * tried to standardize iteration a bit, previously almost all
124 of the iteration constructs in CL were used. Tried to
125 standardize on loop for readability / cohesiveness
126 * made functions to more easily look up particular slots, since
127 this was being done differently in each function
128 * added more doc-strings and updated documentation about
130 * inner-joins that are referenced in where clauses are no longer
131 added to the select table list (since they are also referenced
132 in the join position and this led to sql errors)
133 * collect-table-references methods added for sql-ident-table and
137 * disallow where-less updates from objects (ie cannot call
138 update-records-from* with a keyless object)
139 * ordered-class-direct-slots now returns direct-slot-definitions
140 instead of effective-slot-definitions (as per name)
141 * direct-slot-definitions now contain the db-info hash table (same
143 * removed this-class arg from update-instance-from-records - used to
144 be used for normalized code, no longer needed for that.
145 * find-all - bug fixes in table references, previously where clauses
146 surrounded by a list would have none of their references added to
147 the select. This was being exploited by certain code paths. Now
148 all where clauses are searched
149 - No longer includes order-by and distinct as columns in the select
150 list. The values seemed to be ignored in every code path and distinct
151 seemed to be intended to be used as a boolean anyway
154 2012-11-20 Nathan Bird <nathan@acceleration.net>
156 * update-objects-joins - changed the default of slot from t (which
157 used to mean :deferred) to :immediate (to match the default
158 behavior of other parts of the system). It also seemed like a bad
159 default to pull all the slots that were explicitly specified to be
160 not pulled by default. This function now accepts more special
161 values (:immediate, :deferred, :all, or a list of slots). To get
162 the old behavior call with :slots :deferred.
165 2012-10-30 Russ Tyndall <russ@acceleration.net>
166 * sql/command-object.lisp - added dates/times to the parameter value
167 coersion and pulled this into a new generic prepare-sql-parameter
169 2012-09-04 Kevin Rosenberg <kevin@rosenberg.net>
170 * Version 6.3 released
172 2012-09-04 Russ Tyndall <russ@acceleration.net>
173 * sql/expressions.lisp - Try to respect the casing of symbols
174 where it seems intentional (ie: is not default). This should fix
175 a failing test case, and I think behaves more understandibly.
177 If you specify a casing '|Foo Bar| lets treat that a string "Foo Bar"
178 and output it escaped
180 2012-08-28 Ryan Davis <ryan@acceleration.net>
181 * db-sqlite3/sqlite3-api.lisp - allow pathnames in the connection
182 settings, so '("/db/my.sqlite") and '(#P"/db/my.sqlite") are
183 equivalent. Updated the docs to match.
185 2012-08-17 Russ Tyndall <russ@acceleration.net>
186 * db-postgresql-socket3/package.lisp - shadow
187 postgresql-notification for compatibility with new
188 cl-postgres (Thanks Zach)
190 2012-07-09 Russ Tyndall <russ@acceleration.net>
191 * sql/oodml.lisp - fixed a bug where the order by was being
192 destructively modified, causing odd caching issues when the
193 selected object was not statically known (eg unreferenced tables
194 could show up in the query if they were cached by a previous call
195 through this function. I replaced this code with a
196 non-destructive variant which should solve this.
198 Thanks to Philipp Marek for the bug report
200 2012-06-25 Russ Tyndall <russ@acceleration.net>
201 * sql/util.lisp, sql/metaclasses.lisp
202 Dequote database-identifiers if needed (passed a quoted symbol)
203 Metaclass args come through unquoted, so this eases interactions
206 2012-06-22 Russ Tyndall <russ@acceleration.net>
207 * sql/metaclasses.lisp: Changed compute-effective-slot-definition
208 to correctly copy the autoincrement-sequence slot to the ESD
209 previously it was being skipped (seemingly by accident). Thanks
210 to flip214 on #lisp for the bug report
212 2012-04-26 Kevin Rosenberg <kevin@rosenberg.net>
213 * Version 6.2 released: thanks to all the contributors!
215 2012-04-25 Nathan Bird <nathan@acceleration.net>
217 * doc/threading-warnings.txt: Adding some notes from J.T.Klein
218 about the current state of thread-safety in clsql. This should be
219 incorporated into the main docs at some point.
221 2012-04-25 Russ Tyndall <russ@acceleration.net>
222 * sql/expressions.lisp (output-sql): on rendering update/insert
223 expression values, ensure that *in-subselect* is bound to T
224 so that the values will be correctly paren delimited
226 2012-04-24 Nathan Bird <nathan@acceleration.net>
228 * sql/expressions.lisp (output-sql): on mysql CREATE TABLE
229 statements use 'ENGINE=innodb' instead of 'Type=InnoDB'. This has
230 apparently been preferred since mysql 4.1 and mysql 5.5 removed
231 type as a valid keyword.
233 2012-03-28 Russ Tyndall <russ@acceleration.net>
235 * sql/sequences.lisp: [A Patch FROM 2011-07-28 changed sequences.
236 They were previously prefixed with _CLSQL_SEQ_ but are now
237 suffixed with _CLSQL_SEQ. This is likely to break existing
238 implementations using the default sequence names
240 setting *old-sequence-names* to T, should force using the older
243 2012-03-27 Ryan Davis <ryan@acceleration.net>
245 * sql/expressions.lisp: Fixed bug with subqueries in the where
246 clause of update-records and delete-records generating invalid
247 SQL. Previously subselects in where clauses would not have enough
248 parentheses, for example: "WHERE Id IN SELECT foo_id FROM bar"
249 vs. "WHERE Id IN (SELECT foo_id FROM bar)"
250 * tests/test-syntax.lisp: Added tests for using subqueries in the
251 where clause in update-records and delete-records. Moved asserts
252 in the test-output-sql/sql-ident-table function into the standard
254 * doc/appendix.xml: added :connection-string to the information on
255 ODBC connection specs, and added example code connecting to ODBC
258 2012-01-05 Nathan Bird <nathan@acceleration.net>
260 * db-odbc/odbc-dbi.lisp: handle sql decimal type in the same way
261 as numeric type-- read into a double float.
263 2011-01-04 Russ Tyndall <russ@acceleration.net>
264 * sql/operations.lisp
266 Fixed bug reported by JTK related to the not-null sql-expression
267 especially as used in conjunction with the is operator.
269 Made null called with more than one argument throw an exception
270 instead of silently discarding all arguments past the first
272 2012-01-04 Nathan Bird <nathan@acceleration.net>
274 * db-odbc/odbc-api.lisp (%sql-driver-connect): in the call to
275 odbc's SQLDriverConnect default the WindowHandle argument to a null ptr so
276 that connecting with :connection-string will work in the default
277 case of SQL_DRIVER_NOPROMPT.
279 I.e. you can now do things like:
280 (clsql:connect '("DsnName" "UserName" "" :connection-string
281 "DRIVER={FreeTDS};SERVER=...;DATABASE=...;UID=...;PWD=...;PORT=1433;TDS_Version=8.0;APP=clsql")
282 :database-type :odbc)
284 I believe the DsnName and Username at that point are only used when
285 printing the connection information.
287 2011-12-20 Kevin Rosenberg <kevin@rosenberg.net>
289 * db-oracle/oracle.lisp: Typo correction (Elias Martenson)
291 2011-12-19 Kevin Rosenberg <kevin@rosenberg.net>
293 * db-oracle/oracle.lisp: Change length function to
294 uffi:foreign-string-length to handle foreign encodings.
295 Thanks to Elias Martenson.
297 2011-11-28 Russ Tyndall <russ@acceleration.net>
298 * db-odbc/odbc-api.lisp, tests/test-time.lisp
300 In ODBC backend, avoid going through the common lisp
301 universal-time type (because it lacks support for historic dates)
303 *time-conversion-function* renamed to *time-format*
305 Patch from: Francisco Vides Fernandez
307 2011-10-18 Russ Tyndall <russ@acceleration.net>
308 * db-odbc/odbc-api.lisp
310 Added type specifier so MSSQL nvarchar fields can make it through
312 2011-09-12 Russ Tyndall <russ@acceleration.net>
313 * sql/fddl.lisp sql/generic-postgres.lisp db-mysql/mysql-sql.lisp
314 sql/generic-odbc.lisp sql/odbc-api.lisp sql/odbc-dbi.lisp
316 Fix bugs in list-attribute(s|-types) where passing an escaped,
317 instead of unescaped column name, caused these functions to return
318 less data than they should have.
320 2011-08-03 Kevin Rosenberg <kevin@rosenberg.net>
321 * CLSQL 6.0.0 released
323 2011-07-28 Russ Tyndall <russ@acceleration.net>
325 * db-postgresql-socket3/: Added a backend that utilized postgres
326 socket api version 3. Uses the cl-postgres project (from
327 postmodern) to handle this. Allows use of parameterized /
328 prepared queries using clsql:command-object
330 * sql/{expressions,fddl, generic-postgresql, ooddl}.lisp:
331 Change how database identifiers are emitted to hopefully make this
332 less brittle, and more easily intuitable.
334 Previously every code path that wanted to emit a
335 database identifier was responsible for coercing what was provided
336 into a correctly escaped string. Sometimes two or three functions
337 in a row were trying to correctly quote and output that string. I
338 have tried to centralize this type coercion and logic into a
341 everything should now call (escaped-database-identifier thing)
342 immediately before splicing a database identifier into string being
345 * sql/oodml.lisp: added method choose-database-for-instance, which
346 allows overriding which database connections are used based on
347 object type. Can be used to prevent connection conflicts in
348 multi-threaded environments
350 * sql/syntax.lisp: [foo bar] and [foo.bar] read into the same
351 clsql expression now (they used to be output the same, but after
352 the above database-identifier change, they were output separately
354 * test/: Better, more tests, better type coercion in tests and
355 throughout (%get-int)
357 [edit 2012-03-28 - RT]
358 * sql/sequences.lisp: Sequences were previously prefixed with
359 _CLSQL_SEQ_ but are now suffixed with _CLSQL_SEQ. This is likely
360 to break existing implementations using the default sequence names
362 setting *old-sequence-names* to T, should force using the older
366 2011-07-16 Kevin Rosenberg <kevin@rosenberg.net>
367 * Version 5.4.0 release
369 2011-06-27 Nathan Bird <nathan@acceleration.net>
370 * db-odbc/: memory management improvements: leak slower
371 * MSSQL: TOP + DISTINCT work together
373 2011-06-20 Nathan Bird <nathan@acceleration.net>
375 * sql/time.lisp: Handle parsing already parsed objects.
376 * sql/oodml.lisp: raise exception if we generate an update with no
377 where clause; incorporate Ryszard Szopa's patch for functional
378 expressions in :order-by
379 * sql/expressions.lisp: (listify nil) => nil instead of (nil).
380 * db-odbc/: bugfixes for working with older versions of FreeTDS;
381 support for bigints that works on mssql and postgres
382 * MSSQL improvements: use top instead of limit, IDENTITY can be a
383 column constraint, clsql:date becomes 'smalldatetime'
385 2011-06-20 Nathan Bird <nathan@acceleration.net>
388 * db-postgresql-socket/postgresql-socket-api.lisp: Addendum
389 to Otto Diesenbacher's patch that had a spurious write a 0
390 byte (to terminate string) that should have been just CCL.
392 2011-06-12 Kevin Rosenberg <kevin@rosenberg.net>
394 * db-postgresql-socket/postgresql-socket-api.lisp:
395 Patch from Otto Diesenbacher for UTF8 encoded strings
396 for CCL. FIXME: The best patch would be to use the
397 user-set encoding from the database object and use
398 UFFI's encoding strings to/from octet vectors rather
399 than SB-UNICODE and CCL specific code in this file.
401 2011-04-21 Kevin Rosenberg <kevin@rosenberg.net>
402 * sql/generics.lisp: Add defgeneric for new
403 database-last-auto-increment-id
405 2011-04-01 Kevin Rosenberg <kevin@rosenberg.net>
407 * db-mysql/mysql-client-info.lisp: Add recognition of
408 version 6 of MySQL client library.
409 * sql/metaclass.lisp: Fix the fix in the reader conditional
411 2011-03-30 Kevin Rosenberg <kevin@rosenberg.net>
413 * sql/metaclasses.lisp: Fix previous patch to work
416 2011-03-29 Kevin Rosenberg <kevin@rosenberg.net>
418 * sql/metaclasses.lisp: Apply one-line patch to fix
419 for newer SBCL (thanks to Nikodemus Siivola)
420 * many_files: Applied multiple patches from Holger Schauer
421 to improve autoincrement capability.
423 2010-10-24 Kevin Rosenberg <kevin@rosenberg.net>
425 * db-odbc/odbc-api.lisp: Change from SBCL-specific
426 to UFFI version of octets-to-strings. Reported by
427 Daniel Brunner <daniel@dbrunner.de>
428 * sql/oodml.lisp: Apply patch from Rupert Swarbrick
429 <rswarbrick@gmail.com>: Fix behaviour with auto-inc
431 * sql/expressions.lisp, tests/test-syntax.lisp: Apply
432 patch from Russ Tyndall to quote identifiers with space
433 or special character.
435 2010-09-20 Kevin Rosenberg <kevin@rosenberg.net>
437 * sql/{pool,database}.lisp: Pass encoding argument to
438 connections made from pool and with reconnect.
440 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
442 * db-odbc/odbc-{api,dbi}.lisp: Commit patch from
443 Memet Bilgin to fix issue with unicode and ODBC.
445 2010-08-16 Kevin Rosenberg <kevin@rosenberg.net>
447 * uffi/clsql-uffi.lisp: Commit patch from JT Klein fixing
448 invocation of uffi:convert-from-foreign-string macro. When
449 time allows, I'll investigate changing UFFI's macro to
450 a function call and then revert this patch.
452 2010-06-15 Kevin Rosenberg <kevin@rosenberg.net>
454 * clsql-{uffi,mysql}.asd: Modify operation-done-p functions
455 to guard against change introduced in new ASDF traversing.
457 2010-04-20 Kevin Rosenberg <kevin@rosenberg.net>
458 * Version 5.1.0 [DEPENDENCY UPGRADE: UFFI 2.x needed]
459 * clsql-uffi.asd: Depend on UFFI version >= 2.0
460 to support foreign encoding of strings.
462 2010-04-16 Kevin Rosenberg <kevin@rosenberg.net>
464 * db-postgresql.lisp, sql/fddl.lisp: Fix typos [Thanks to
466 * sql/metaclasses.lisp: Work around type-check-function being set
467 during defclass expansion in SBCL [Thanks to Walter C. Pelissero]
468 * uffi/clsql-uffi.lisp: In call to uffi:convert-from-foreign-string,
469 Set null-terminated-p to T when length not specified.
470 [Thanks to Walter C. Pelissero]
472 2010-03-21 Kevin Rosenberg <kevin@rosenberg.net>
474 * sql/fdml.lisp: Fix DO-QUERY to actually return the last value of
477 2010-03-02 Nathan Bird <nathan@acceleration.net>
478 * doc/: Added a README on how to build doc; now builds on Ubuntu.
479 * sql/oodml.lisp: READ-SQL-VALUE now has explicit method for
480 handling double-floats and the default method will no longer
481 attempt to convert values that have already been converted.
482 * sql/syntax.lisp: Introduce file-enable-sql-reader-syntax which
483 enables the syntax for the scope of the file without trying to
484 keep track of the current syntax state.
485 * sql/pool.lisp: Introduce
486 clsql-sys:*db-pool-max-free-connections* which is a heuristic
487 threshold for when to disconnect a connection rather than
488 returning it to the pool.
489 * sql/pool.lisp: Check connections for validity before returning
492 2010-03-01 Kevin Rosenberg <kevin@rosenberg.net>
493 * db-mysql/mysql-api.lisp: Remove spurious enumeration
495 2010-02-16 Kevin Rosenberg <kevin@rosenberg.net>
497 * db-mysql/mysql-api.lisp: Fix mysql_options UFFI parameter list
498 * doc/ref-connect.xml: Document the MySQL options parameter as
499 part of the connection-spec.
501 2010-02-15 Kevin Rosenberg <kevin@rosenberg.net>
502 * db-mysql/mysql-{api,sql}.lisp: Support sending options
503 to MySQL using mysql_options, which occurs between the API calls
504 of mysql_init and mysql_real_connect.
506 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
508 * multiple-files: Further internationalization. Change
509 UFFI:CONVERT-RAW-FIELD and UFFI:CONVERT-FROM-FOREIGN-STRINGS
510 invocations to use the foreign character set encoding of the
511 database object. Requires UFFI v.1.8.6
512 * Makefile.common: Fix OS_DARWIN64 setting
514 2010-02-11 Nathan Bird <nathan@acceleration.net>
515 * MSSQL: better support for fddl 'date type.
517 2010-02-11 Kevin Rosenberg <kevin@rosenberg.net>
518 * Makefile.common, uffi/Makefile, db-mysql/Makefile:
519 Better support OS X Snow Leopard by building universal
520 (x86_64,i386) dylib bundles
522 2010-02-08 Kevin Rosenberg <kevin@rosenberg.net>
524 * sql/database.lisp: Fix missing slot-accessor
525 (Thanks to Stelian Ionescu)
526 * sql/generics.lisp: Add missing keyword to defgeneric
527 (Thanks to Stelian Ionescu)
529 2010-02-07 Kevin Rosenberg <kevin@rosenberg.net>
531 * sql/{base-classes,database}.lisp: Add encoding slot for
533 * db-mysql/mysql-sql.lisp: Use UFFI:FOREIGN-ENCODED-OCTET-COUNT.
534 Requires UFFI version 1.8.2 or above.
536 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
537 * Version 5.0.0: First release of CLSQL to formally and
538 consistently support non-ASCII strings with encoding of external
539 formats for SQL strings. UFFI version 1.8.1 is higher is required.
541 This change may introduce some differences in string handling for
542 people who are using non-ASCII encoded characters. Thus, because
543 of the risk of BACKWARD INCOMPATIBILITY, the major version number
544 was incremented with this release.
546 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
547 * tests/test-i18n.lisp: Bind UFFI:*DEFAULT-EXTERNAL-FORMAT*
548 for testing multibyte encodings.
549 * uffi/clsql-uffi.lisp: Changes for UFFI 1.7.4's new support
550 for encoding foreign strings with a specified external format.
552 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
553 * sql/metaclasses.lisp: If no declared slot type in
554 compute-lisp-type-from-specified-type, then use t as lisp type.
555 Issue noted when testing Clozure CL 1.4.
557 2010-02-06 Kevin Rosenberg <kevin@rosenberg.net>
558 * tests/test-init.lisp: Turn off the benign console notices for
561 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
562 * clsql-test.asd, tests/{test-i18n,test-init}.lisp:
563 Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
564 not present in cl:*features*. This requires UFFI 1.7.2 or above.
566 2010-02-05 Kevin Rosenberg <kevin@rosenberg.net>
567 * sql/utils.lisp: Reading #\no-break_space causes an
568 error for non-unicode SBCL. Conditionalize read of
569 #\no-break_space for non-unicode SBCL and 8-bit string
572 2010-02-03 Kevin Rosenberg <kevin@rosenberg.net>
573 * tests/test-init.lisp: Add *test-report-width* variable
574 and word-wrap skipped test reason field.
576 2010-01-29 Kevin Rosenberg <kevin@rosenberg.net>
578 * clsql-cffi.asd: New file that causes CLSQL to use
579 CFFI-UFFI-COMPAT library rather than UFFI. Perform 'asdf:load-op
580 on CLSQL-CFFI rather than CLSQL system to use CFFI-UFFI-COMPAT.
582 2010-01-29 Nathan Bird <nathan@acceleration.net>
583 * tests/*.lisp: A lot more tests and test setup tweaks.
584 * sql/expressions.lisp: output-sql on sql-relational-exp does
585 better arity checking now. (apply #'sql-and some-list) gives
588 29 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
589 * sql/oodml.lisp: Fix for UPDATE-RECORD-FROM-SLOTS for normalized
592 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
594 * Change "normalise" from British spelling for consistency with
595 other American spellings in CLSQL.
597 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
598 * db-mysql/Makefile: Add directory for Fedora 11/12 on 64-bit
599 platform (Thanks to Michael Pheasant) and remove a 32-bit directory
601 28 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
603 * sql/utils.lisp: Ensure Lispworks 6 lock is created in sharing mode
605 20 Jan 2009 Nathan Bird <nathan@acceleration.net>
607 * Rewrite tests to use datasets
609 07 Jan 2009 Kevin Rosenberg <kevin@rosenberg.net>
610 * sql/utils.lisp: Changes to support Lispworks 6
612 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
614 * doc/ref-ooddl.lisp: Add needed CDATA escapes
615 * doc/clsql.pdf, doc/html.tar.gz: Build new manuals with
616 normalized view classes.
618 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
619 Large patch from Thijs Oppermann <thijso+clsql@gmail.com> to add
620 support for normalized view classes. When having view class that
621 inherit from others, CLSQL by default builds tab all the columns
622 from the parent in the child. This patch is meant to normali so
623 that a join is done on the primary keys of the concerned tables to
626 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
627 * sql/time.lisp: Patch from Oleg Tihonov to SYNTAX-PARSE-ISO-8601
628 to properly parse fractions of seconds.
630 10 Dec 2009 Kevin Rosenberg <kevin@rosenberg.net>
631 * sql/time.lisp: Patch from Oleg Tihonov to roll function
632 to properly use USEC argument.
634 21 Nov 2009 Kevin Rosenberg <kevin@rosenberg.net>
636 * Makefiles: On 64-bit Linux systems, try to build both 32 and 64-bit
637 interface libraries. This requires the installation of multiarch build tools
638 as well as 32-bit support libraries (libc, libz and libmysqlclient).
640 04 Sep 2009 Kevin Rosenberg <kevin@rosenberg.net>
642 * sql/fdml.lisp: Rework do-query to use supplied database
643 parameter when passed a sql-object-query
644 (thanks to JTK <jetmonk@gmail.com>)
645 * sql/generic-postgresql.lisp: Allow optional connect
646 parameters for postgresql databases (thanks to Stephen Compall)
647 * doc/ref-{clsql,connect}.xml, sql/db-interfaces.lisp:
648 Fix transposed letters (thanks to Stephen Compall)
649 * db-mysql/Makefile: Add directory for MacPorts mysql5 port
650 (thanks to Stephen Compall)
651 * sql/database.lisp: Have database-type default be
652 *default-database-type* (thanks to Desmond O. Chang)
653 * sql/transactions.lisp: Improved handlining of nested
654 transactions (thanks to Eli Naeher)
655 * sql/time.lisp: Commit patch to fix parse-iso-8601-duration
656 (thanks to Stephen Compall)
657 * sql/database.lisp: Use :verbose nil for asdf:operate
658 invocation (Thanks to Mackram Raydan)
659 * sql/metaclasses.lisp: Rework initialize-instance for
660 view-class-direct-slot-definition (thanks to Stephen Compall)
662 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
663 * sql/db-interface.lisp: Fix spelling error (thanks to
665 * clsql-mysql.asd/db-mysql/mysql-loader.lisp: Commit
666 patch from Andreas Franke to honor windows drive letter
667 when loading clsql_mysql C library.
669 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
671 * db-mysql/mysql-{sql,api}.lisp,db-mysql/clsql_mysql.c:
672 Latest version of mysqlclient once again changed the C
673 structures from which the mysql backend reads data.
674 Rather than adding yet another structure definition which
675 is enabled by the client version as read by mysql-client-info.lisp,
676 the mysql backend has been re-written to ignore in the internal
677 C structures. Instead, C wrapper functions for slot access have
678 been added to clsql_mysql.c and are used by mysql-sql.lisp to
679 access the internals of C structures. This adds a bit of overhead,
680 but completely separates the lisp code from trying to keep up
681 with the continually changing internal C structure of mysql.
682 All tests in the test suite executed correctly with this change.
684 31 Aug 2009 Kevin Rosenberg <kevin@rosenberg.net>
686 * sql/database.lisp: Fix syntax on process-lock (thanks to
688 * db-mysql/mysql-sql.lisp: Allow use of database parameter
689 in database-list function (thanks to Michael Pheasant)
690 * sql/oodml.lisp: Allow NULL values for floating-point fields
691 (thanks to Jan Rychter)
693 02 Jun 2009 Kevin Rosenberg <kevin@rosenberg.net>
695 * sql/database.lisp: Add process-lock for deleting database from
696 a pool (thanks to Ralf Mattes).
698 25 Feb 2008 Kevin Rosenberg <kevin@rosenberg.net>
700 * sql/expressions.lisp: Remove stray form (thanks to Samuel Ward)
702 12 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
703 * sql/expressions.lisp: Bind *in-subselect* when outputting
704 selections (patch from unknown source).
706 11 Dec 2007 Kevin Rosenberg <kevin@rosenberg.net>
708 * sql/metaclasses.lisp: Unify base-table processing by extracting
709 the correct code from initialize-instance :around into the helper
710 function set-view-table-slot. Call that function also in
711 reinitialize-instance :around replacing erroneous code discovered
714 17 Nov 2007 Kevin Rosenberg <kevin@rosenberg.net>
715 * BUGS: Add note about benefit of using configure file to create
716 Makefiles (suggestion from Joe Corneli)
718 22 Oct 2007 Kevin Rosenberg <kevin@rosenberg.net>
720 * db-postgresql/postgresql-sql.lisp: Patch from Gabriele Favalessa based on
721 Andrew Golding suggestion for more informative :error-id slot.
723 17 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
725 * db-mysql/mysql-sql.lisp: Convert query to uffi cstring (thanks to
727 * doc/Makefile, doc/html.xsl: Change output encoding from ISO-8859-1 to UTF-8
729 14 Sep 2007 Kevin Rosenberg <kevin@rosenberg.net>
730 * Version 4.0.0: Major version increase to warn of potential
731 backwards incompatibility.
732 * NEWS: Document potentional backward incompatible changes
733 * db-mysql/mysql-sql.lisp: Changes session SQL mode to ANSI immediately
734 after connecting. This may break compatibility with some applications
735 who are using non-ANSI features with MySQL. This change is required to
736 properly support view-classes using a string as their :base-table
737 attribute. This allows users to specify the case of table names.
738 This is feature is even more essential for MySQL itself since MySQL
739 uses case-sensitive table names. Use connection-based database-create
740 and database-destroy rather than trying to invoke command-line mysql
741 utility. Remove automatic upcasing of strings from list-indices.
742 * db-postgresql/postgresql-sql.lisp: Use connection-based
743 database-create and database-destroy rather than trying to invoke
744 command-line utilities.
745 * db-postgresql-socket/postgresql-socket-sql.lisp: Use
746 database-execute-command rather than execute-command for
747 database-{create,destroy}. Connect to postgres database
748 rather than template1 for those database creation/deletion.
749 * sql/metaclasses.lisp: Store the string value of :base-table if a
750 string is provided. Perform sql-escape at time of view-table name
752 * tests/test-init.lisp: Use "ej_join" as a string, rather than a
753 symbol, since "ej_join" is specified as :base-table. Clear the
754 expression output-cache in case the code for generating sql output
756 * test/test-oodml.lisp: whitespace fix
757 * sql/ooddl.lisp: Use quoted string for primary key constraint if
758 table name is specified as a string.
759 * sql/oodml.lisp: Don't convert a string view-table name to database's
761 * sql/expressions.lisp: Properly handle table and attribute identifiers
762 when they are a string. Do not change case of symbols to match database
764 * sql/operations.lisp: Change multiword symbols to upper case.
765 * sql/fddl.lisp: Quote base-table if a string to preserve case
766 for drop-table and create-table.
767 * tests/test-syntax.lisp: Add tests of low-level string attribute
770 20 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
772 * db-oracle/oracle-loader.lisp: Rework use of ORACLE_HOME directory
773 (problem noted on clsql-devel by icardo Boccato Alves)
774 * sql/pool.lisp: Remove incorrect keyword
775 * sql/database.lisp: Rework WITH-DATABASE to not make the database the
776 default database (reported by Saurabh Nanda and Chaitanya Gupta)
777 * doc/ref-connect.lisp: Update the documentation to WITH-DATABASE to
778 emphasis that make-default has a default value of nil.
779 * sql/transaction.lisp: Adjust commit/rollback messages for Microsoft
780 SQL Server. (patch from Nathan Bird)
781 * sql/metaclasses.lisp: Use finalize-inheritance hack on SBCL because
782 of trouble with def-view-class compilations (patch from Nathan Bird)
784 15 Jul 2007 Kevin Rosenberg <kevin@rosenberg.net>
786 * db-mysql/mysql-loader.lisp: Revert previous change since libmysql is
787 not dynamically loaded on Windows
789 22 Jun 2007 Kevin Rosenberg <kevin@rosenberg.net>
791 * db-mysql/mysql-loader.lisp: Do not bother loading libmysqlclient since
792 that library is dymically linked to clsql-mysql library. Thus, the mysql
793 library will be automatically loaded. This has only been tested on Linux,
796 29 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
797 * tests/test-fddl.lisp: Add :order-by for :fddl/big/1 as
798 reported by Ricardo Boccato Alves
800 02 May 2007 Kevin Rosenberg <kevin@rosenberg.net>
801 * sql/database.lisp: Add ability of WITH-DATABASE to return
802 multiple values (patch from Liam Healy)
804 25 Apr 2007 Kevin Rosenberg <kevin@rosenberg.net>
806 * doc/connect.xml: variable description fix by Liam Healy
807 * db-sqlite3/sqlite3-api.lisp, uffi/clsql-uffi-loader.lisp:
808 Apply patches from Marcus Pierce to reduce load-time warnings
809 * sql/package.lisp: Export iso-timestring as requested by Kevin Blaisdell
811 23 Mar 2007 Kevin Rosenberg <kevin@rosenberg.net>
813 * sql/db-postgresql-socket-api.lisp: Change read-socket-sequence to
814 disable wide characters for crypt salt sequence on SBCL, based
815 on patch from Lars Nostdal.
817 26 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
819 * sql/pool.lisp: Test pooled connection when popped from
820 the pool to ensure the connection still works. Currently, implemented
823 17 Jan 2007 Kevin Rosenberg <kevin@rosenberg.net>
824 * db-mysql/Makefile: Add potential mysql directories
826 31 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
827 * sql/metaclasses.lisp: Remove usused saved-initargs
828 * clsql.asd: Also check ~/.clsql-init.lisp at load-time (usually used to
829 push search libraries)
831 30 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
832 * Version 3.8.0: BACKWARD INCOMPATABLE CHANGE!
833 * db-postgresql/postgresql-{api,loader,sql,package}.lisp:
834 Apply patch from Edi Weitz to avoid conflict with new Lispworks 5
835 POSTGRESQL package name. CLSQL's new package will be PGSQL, however
836 on non-Lispworks platforms, the nickname POSTGRESQL will still be
837 available. Applications directly using low-level POSTGRESQL package
838 are recommended to use the new PGSQL name.
839 * db-oracle/oracle-{api,sql}.lisp, sql/{expressions,loop-extension}.lisp,
840 Apply patch from Edi Weitz to reduce compiler warnings.
842 28 Dec 2006 Kevin Rosenberg <kevin@rosenberg.net>
844 * sql/expressions.lisp: Commit patch from Edi Weitz to
845 use *default-database* for SQL-OUTPUT if no database is
846 explicitly passed to function.
847 * uffi/clsql-uffi-loader.lisp: Change load order to first try
848 plain name/type before attempting user-specified paths (patch
850 * uffi/ptrbits.c: New file to return number of bits in an pointer
851 * uffi/Makefile: use intbits to name .so file based on bit size.
852 Build both 32-bit and 64-bit libraries on 64-bit platform.
854 30 Nov 2006 Kevin Rosenberg <kevin@rosenberg.net>
856 * db-sqlite3/sqlite3-sql.lisp: Commit patch from Edi Weitz fixing
859 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
861 * db-postgresql/postgresql-sql.lisp: Remove
862 uffi:convert-foreign-to-native wrapper since using cstring for
865 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
867 * db-postgresql/postgresql-api.lisp: Fix UFFI return type for
868 PQresultErrorField foreign function.
870 16 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
872 * doc/intro.xml: Update supported platforms.
873 * db-postgresql/postgresql-{package,api,sql}.lisp: Apply
874 changes from Andew Golding to use a more-specific error code
875 from PostgreSQL than the generic fatal error code of the result set.
877 03 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
878 * sql/syntax.lisp: Commit patch from Marcus Pearce to improve
879 readtable modifications
881 02 Oct 2006 Kevin Rosenberg <kevin@rosenberg.net>
882 * sql/syntax.lisp: Check that original reader syntax functions
883 stored before trying to restore them.
885 20 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
886 * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
887 display sql reader syntax.
889 06 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
890 * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
891 to decide on 64-bit platform and check size of most-positive-fixnum instead.
892 Needed to support clisp amd64.
894 03 Sep 2006 Kevin Rosenberg <kevin@rosenberg.net>
896 * sql/metaclasses.lisp: Rework slot type's to be more AMOP
897 compatibile. Add warning for a metaclass condition that should
899 * sql/time.lisp: Fixed symbol case inconsistency causing problem
900 in AllegroCL's modern lisp. First sign of bug noted by
901 Joel Reymond on clsql-devel.
902 * clsql.asd: Make time.lisp depend on utils.lisp
904 31 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
905 * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push
906 *library-file-dir* to CLSQL's library path.
908 30 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
909 * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
910 CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
911 latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
912 * Makefile.common: Add OS detection
913 * uffi/make.sh, db-mysql/make.sh: Remove files
914 * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
915 Refactor to remove need to make.sh shell scripts.
916 * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
917 * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS
918 package rather than CL-USER. Add support for ansi-loop on clisp.
919 * sql/ansi-loop.lisp: New file to support iteration on clisp.
920 * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
921 longer exist in the mysql client library.
922 * doc/ref-fdml.lisp: Correct default field-type.
923 * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
924 Fixed bug with noted with MySQL 5.0.24 and boolean values.
926 28 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
928 * sql/oodml.lisp: Remove high debugging level declaration
930 14 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
932 * sql/generic-postgresql.lisp: Fix assumption that postgres user id
933 is always 1. Fixes problem noted with PostgreSQL 8.1.
935 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
937 * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
938 lazily cache if pg_roles tables exist. Selectively use SQL from
939 Joel's previous patch if pg_roles table exists. Should now work
940 with both postgresql 7.4 and 8.x.
942 12 Aug 2006 Kevin Rosenberg <kevin@rosenberg.net>
944 * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
945 local initialization file
946 * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
948 * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
949 that generates incorrect integer return type
950 * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
951 it fails on versions of postgresql that lack the pg_role table
953 07 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
955 * sql/transactions.lisp: Important typo fix from Alexey Antipov
956 for database-start-transaction
958 04 Jul 2006 Kevin Rosenberg <kevin@rosenberg.net>
960 * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
961 to close connection when failing to connect to database.
962 * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
963 to avoid dropping system views.
964 * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
965 a nil value [patch sponsored by Flektor]
966 * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
967 for netbsd compilation
969 15 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
970 * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
971 slots for def-view-class macro [as reported missing by Thomas Fischbacher].
973 09 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
974 * db-postgresql-socket/postgresql-socket-api.lisp:
975 Apply patch from Marko Kocic adding the socket creation
976 function needed for CLISP.
978 08 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
979 * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
980 * db-oracle/metaclasses.lisp: Patch from James Bielman for
981 checking slot constraints.
982 * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
983 saved openmcl images (based on patch from James Bielman)
985 06 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
986 * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
988 03 May 2006 Kevin Rosenberg <kevin@rosenberg.net>
990 * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
991 duration parsing and unparsing to include year and month.
992 * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
993 improving library search on Windows platform.
994 * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
995 Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
997 20 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
999 * clsql-postgresql-socket.asd,
1000 * db-postgresql-socket/postgresql-socket-package.lisp:
1001 Use the cl-md5 package on all platforms. Based on report
1004 09 Mar 2006 Kevin Rosenberg <kevin@rosenberg.net>
1006 * uffi/make.sh, db-mysql/make.sh: Add GNU uname
1008 28 Feb 2006 Kevin Rosenberg <kevin@rosenberg.net>
1010 * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
1011 fix accessor for new versions of SBCL
1012 * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
1013 to improving parsing of time.
1014 * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
1016 * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
1017 as noted by Russ Tyndall.
1019 16 Jan 2006 Kevin Rosenberg <kevin@rosenberg.net>
1021 * sql/time.lisp: Commit patch from Aleksandar Bakic
1022 to properly handle destructive flag
1023 * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
1024 from Steven Harris for socket files with SBCL.
1025 * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
1026 new connections added to the pool do not become the *default-database*
1027 * sql/connect.lisp: Optionally set *default-database* for pooled
1028 connection when make-default is generalized true.
1030 23 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
1032 * sql/expressions.lisp: Ensure table names are properly escaped
1033 before comparing -- fixes bug reported by Asbjørn Bjørnstad
1036 02 Dec 2005 Kevin Rosenberg <kevin@rosenberg.net>
1037 * sql/generic-postgresql.lisp: improved decoding of table attribute
1038 parameters [from Vladimir Sekissov]
1039 * sql/metaclasses.lisp: check that metaclass is standard-db-class or
1040 it's subclass to prevent adding standard-db-object to supers if
1041 somebody in the path has it already when metaclass inherited from
1042 standard-db-class. [from Vladimir Sekissov]
1044 26 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1046 * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp,
1047 * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
1048 * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
1049 * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
1050 * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
1051 * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
1052 Commit patch from Dominic Robinson providing support for
1053 Microsoft SQL Server
1054 * doc/csql.lisp: Fix typo in slot name
1056 24 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1058 * sql/time.lisp: Commit patch from Aleksandar Bakic for
1059 correct handling of decode-time usec value
1060 * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
1061 correct the name of the shared library file.
1063 16 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1065 * sql/metaclasses.lisp: Avoid calling change-class on
1066 effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
1069 15 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1071 * sql/expressions.lisp: Patch from James Biel to add subselects
1073 14 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1074 * Version 3.4.4 [ Requires UFFI 1.5.7+]
1075 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1076 to fix lifetime of foreign strings for Oracle calls
1078 13 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1080 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1081 to improve performance
1083 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1085 * clsql-uffi.asd: Patch from James Biel improving loading
1086 * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
1087 to support 64-bit lisps
1089 12 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1091 * sql/expressions.lisp: Escape numbers to SQL strings
1092 at expression level.
1094 11 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1095 * Version 3.4: Add MySQL 5 support
1096 * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
1097 * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
1098 * doc/mysql-macosx-notes.txt: New document from Martin Brooks
1100 7 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1101 * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
1103 * BUGS: Added report for update-object-joins by Aleksandar Bakic
1105 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
1106 * Version 3.3.4 [UFFI >= 1.5.5 needed]
1107 * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
1108 to add missing #\' character.
1109 * clsql.asd: Add support for CLSQLINIT environmental variable,
1110 based on patch from Yaroslav Kavenchcuk. New version of UFFI
1113 30 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1115 * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
1116 update-objects-joins when using the :target-slot attribute
1118 26 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1120 * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
1121 as noted by Harald Hanche-Olsen.
1122 * tests/test-syntax.lisp: Add test for multiple field group-by
1124 25 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1126 * sql/time.lisp: Commit patch from Alan Shields to
1127 display escape string on wall-time display only when *print-escape*
1130 11 Oct 2005 Kevin Rosenberg <kevin@rosenberg.net>
1131 * sql/metaclasses.lisp: Commit patch from Will to
1132 properly set db-reader slot in effective-slot-definition
1133 * sql/expressions.lisp: Commit patch from Alan Shields
1134 adding make-load-form for sql-relational-exp
1135 * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
1136 adding support for new NUMBER type
1138 17 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1140 * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
1141 * doc/ref-ooddl.xml: Documentation of new type
1142 * notes/add-type-hints.txt: New file from Alan Shields
1143 * sql/fddl.lisp: Add owner keyword to drop-table as suggested
1145 * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
1146 as noted by Francis Leboutte. Similar fix applied to db-mysql and
1148 * sql/expressions.lisp: Allow string table names for output as
1149 contributed by Francis Leboutte.
1150 * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted
1153 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1155 * doc/into.xml: Change download from ftp to http protocol
1157 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1159 * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
1162 08 Sep 2005 Kevin Rosenberg <kevin@rosenberg.net>
1164 * db-oracle/oracle-sql.lisp: Add check for zero increment as
1165 suggested by Edi Weitz. Add missing database-sequence-last function
1166 as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
1167 in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
1168 stmthp object when query cursor is freed with OCI.
1170 22 Aug 2005 Kevin Rosenberg <kevin@rosenberg.net>
1171 * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
1172 display search path when error occurs loading foreign library.
1174 05 Jul 2005 Kevin Rosenberg <kevin@rosenberg.net>
1176 * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
1177 with changes to support case-sensitive lisp implementations. Add
1178 paragraph on using /etc/clsql-init.lisp site initialization file.
1179 * clsql.asd: Load file /etc/clsql-init.lisp, if it
1180 exists, after package is loaded to set site-specific configuration
1182 2005-06-24 Edi Weitz <edi@agharta.de>
1183 * sql/db-interface.lisp: Added new special variable
1184 *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
1186 * sql/package.lisp: Export these.
1187 * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
1189 * db-mysql/mysql-loader.lisp: Changed order of libs.
1191 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1192 * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
1193 * clsql-mysql.asd: Renamed clsql/mysql interface library from
1194 mysql to clsql_mysql
1195 * clsql-uffi.asd: Renamed clsql/uffi interface library from
1197 * uffi/clsql_uffi.c: Renamed from uffi.c
1198 * db-mysql/clsql_mysql.c: Renamed from mysql.c
1199 * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
1200 * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
1201 * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
1202 absolute pathnames when searching for foreign libraries.
1203 foreign library loading.
1205 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
1207 * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
1208 to support UTF-8 on sbcl unicode.
1210 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1212 * sql/time.lisp: Fix bug in roll that caused failure in test suite
1214 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1216 * sql/oodml.lisp: Properly handle when db-writer is NIL
1218 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1219 * sql/expressions.lisp: Avoid using simple-string declaration when
1220 a non-simple string may be encountered. [issue noted by
1221 will@cesmail.net] Add a simple-string declaration for a local
1224 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1225 * sql/oodml.lisp: Change db-writer and db-reader processing to accept
1226 a symbol as well as function to serve as a function designator
1227 [issue noted by will@cesmail.net]
1229 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
1231 * sql/time.lisp: Fix error in submitted patch which caused error
1232 in timestrings with 19 or less characters.
1234 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1236 * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
1237 to fix read-socket-sequence on non-sb-unicode sbcl.
1239 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1241 * sql/time.lisp: Commit patch from Daniel Lowe which adds support
1242 for fractional seconds which is required by PostgreSQL
1243 * db-postgresql/postgresql-loader.lisp: Add library path for Windows
1245 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1246 * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
1248 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1250 * sql/syntax: Commit patch from Alan Shields to supress reader
1251 macros when *read-supress* is T.
1253 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1255 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1256 from Janis Dzerins to support unicode on SBCL
1257 * sql/syntax: Commit patch from Alan Shields to improve reporting
1258 of invalid syntax statements.
1260 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1262 * db-mysql/mysql-sql.lisp: Add port to connection specification
1263 based on patch from Dave Watson
1264 * doc/appendix.xml: Document MySQL port parameter to connection spec
1266 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
1268 * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
1270 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1271 * sql/oodml.lisp: Add missing database argument [Patch from
1274 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
1275 * sql/oodml.lisp: Improve database priority in
1276 update-records-from-instance [Patch from Walter C. Pelissero]
1278 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1280 * sql/package.lisp: Export database-reconnect from clsql-sys
1282 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
1283 * sql/oodml.lisp: Use explicit database in fault-join-target-slot
1284 [Patch from Walter Pelissero]
1286 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1287 * db-postgresql/postgresql-loader.lisp: Add additional
1288 directories to Fink on darwin [patch from Cyrus Harmon].
1290 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1292 * sql/oodml.lisp: Clear view instance cache when delete-instance-records
1293 is invoked [suggested by Alan Shutko].
1294 * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
1295 * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
1296 to def-view-class [fix suggested by Fred Gilham].
1298 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1299 * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
1301 * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
1302 * doc/*.xml: Fix spelling of Vladimir
1304 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1305 * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
1306 now that LispWorks is an independant company [noted by
1309 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1310 * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
1311 Better support for 64 bit environments
1313 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
1315 * sql/metaclass.lisp: Make t the default value of :set
1316 [noted by Cyrus Harmon]
1318 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1320 * uffi/clsql-uffi.lisp: Add support for unsigned integers
1321 * db-mysql/mysql-sql.lisp: Add support for detecting/marking
1322 unsigned integers. Apply patch from Yannick Gingras to
1323 implement database-sequence-last.
1325 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1326 * doc/ref-fdml.lisp: Fix variable tag name to varname
1327 [noted by Eduardo Munoz]
1328 * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
1330 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
1332 * sql/ooddl.lisp: Accept patch from Klaus Harbo for
1333 update-object-joins.
1334 * sql/metaclass.lisp: Remove unnecssary (and runtime error
1335 causing) change-class invocation when running on CLISP.
1336 * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
1337 to fix structure name.
1338 * sql/database.lisp: More specific error message with trying
1339 to use a database value of NIL.
1340 * sql/expressions.lisp: Accept a string for the table name
1341 in (sql-output sql-delete database) [suggested by Ed Symanzik].
1343 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1345 * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
1346 ignore columns which have been dropped.
1347 * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
1348 Use sb-md5 package on SBCL, recommended by Chris Capel
1350 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1351 * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
1352 * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
1353 * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
1355 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
1356 * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
1358 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1359 * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
1360 contributed by Aurelio Bignoli
1362 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1363 * sql/oodml.lisp: Commit patch from Walter Pelis
1364 to use an object's database for a select on its slot.
1366 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1367 * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
1368 Aurelio Bignoli to fix negative 64-bit integers
1370 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1371 * db-mysql/mysql.c: Fix parameters in bind_param call
1373 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1374 * uffi/clsql-uffi.lisp: Add support for :blob result-type
1375 * db-mysql/mysql-sql.lisp: Add support for :blob
1378 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1379 * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
1380 missing quotes for types in code that is still in development
1381 (thanks to Joerg Hoehle)
1383 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1384 * Version 3.0.8 released
1385 * db-sqlite/sqlite-*.lisp: Apply patch from
1386 Aurelio Bignoli with improvements
1388 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1389 * multiple: Apply patch from Joerg Hoehle with multiple
1392 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
1393 * Version 3.0.7 released
1394 * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
1395 Add support for mediumint.
1396 * sql/metaclass.lisp: Rework CLISP MOP handling
1397 * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
1399 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1400 * sql/metaclass.lisp: Support CLISP's attribute name
1401 for the type field in direct class slots
1403 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1404 * Version 3.0.6 released
1405 * BUGS: New file. Document suspected SIGPIPE
1406 interaction between SBCL and libpq used in
1408 * doc/ref-fdml.lisp: Document the :caching and :refresh
1409 keywords of the SELECT function.
1410 * doc/ref-ooddml.lisp: Document the new *default-caching*
1412 * sql/package.lisp: Export *default-caching*
1413 * sql/oodml.lisp: Use *default-caching* to
1414 control default caching behavior.
1416 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1417 * Version 3.0.5 release
1418 * doc/appendix.xml: Add note about loading Oracle8 version
1419 * db-oracle/oracle-loader.lisp: Support Oracle8 based on
1420 data from David Young.
1422 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1423 * doc/Makefile, doc/catalog-darwin.xml: Apply
1424 patch from Cyrus Harmon for building docs on Mac OS X
1425 * sql/package.lisp: Add new (pre-release) clisp MOP package
1427 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1428 * Version 3.0.4 Release
1429 * multiple: Remove superfluous quotes in UFFI def-type
1430 and def-foreign-type forms.
1432 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1433 * Version 3.0.3 Release
1434 * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
1435 from Tagore Smith to call force-output after sending authentication
1436 * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
1437 * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
1438 to a database of that type so that functions that indicate capabilities of
1439 database are available.
1441 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1442 * db-odbc/odbc-api.lisp: More conversions to ODBC v3
1444 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1445 * Version 3.0.2 Release
1446 * TODO: Add note about ODBC on Windows
1447 * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
1449 * db-odbc/odbc-ff-interface.lisp: Change the return type
1450 of SQLSetEnvAttr to :short
1452 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1453 * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
1454 slot of the employee View Class definition [reported by Franz Deuzer].
1456 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
1457 * Version 3.0.1 Release
1458 * tests/test-init.lisp: Add second join class to employee-address
1459 to test a class with two join slots.
1460 * sql/oodml.lisp: Fix find-all function for a class with multiple
1462 * TODO: Remove need to test/fix multiple join classes
1464 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1465 * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
1466 from Jon Buffington for file locations on Darwin.
1468 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1469 * sql/db-interface.lisp: Improve messages when functions
1470 are passed a database object, but the method is not specialized
1471 for that database type.
1472 * sql/metaclasses.lisp: Fix inline declaration (reported by
1475 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1476 * TODO: Add bug report about SQL generation with a table
1477 containing two join slots.
1478 * sql/oodml.lisp: Add optional size to VARCHAR type
1480 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
1481 * Version 3.0.0 Release
1482 * sql/expressions.lisp: Change declaration that
1483 caused error on openmcl
1484 * db-aodbc/aodbc-sql.lisp: Fix storage location
1485 of odbc connection. Specialize database-query since
1486 dbi's :types keyword is different than generic-odbc's
1487 :result-types keyword
1488 * sql/db-interface.lisp: Add warnings for methods
1489 not specialized by a db backends
1490 * tests/test-fddl.lisp: Fix case of symbols to support
1491 case-sensitive Allegro
1492 * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
1493 * tests/test-init.lisp: Note that odbc driver for postgresql
1494 doesn't properly handle table ownership
1495 * LATEST-TEST-RESULTS: update with version 3.0.0
1497 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1498 * sql/expressions.lisp: conditionalise escaping of backslash in
1499 generated SQL strings on backend.
1500 * tests/test-fdml.lisp: test for escaping of backslash.
1501 * sql/oodml.lisp: minor tidying in FIND-ALL.
1503 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1504 * NEWS: Initial 3.0 announcement draft
1505 * README: Expand acknowledgements of incorporated projects
1506 * CONTRIBUTORS: Further document Marcus Pearce contributions
1508 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1509 * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
1510 to print floats with the exponent markers removed.
1511 * tests/test-oodml.lisp: add tests for updating records with floats.
1513 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1514 * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for
1515 CommonSQL compatibility.
1516 * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since
1517 this column constraint syntax is not supported.
1518 * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
1519 from EMPLID to LAST_NAME since Oracle complains that EMPLID is already
1522 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1523 * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES.
1524 * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES.
1525 * doc/ref-ooddl.xml: minor changes to syntax and examples entries
1527 * doc/ref-oodml.xml: add examples for OODML.
1528 * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument
1530 * sql/metaclasses.lisp: update docstrings.
1531 * tests/test-init.lisp: change :db-constraints for emplid to
1532 (:not-null :unique) as a temporary test for multiple column constraints
1534 * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and
1535 return type of (SETF SLOT-VALUE-USING-CLASS).
1536 * TODO, doc/TODO: remove items done.
1539 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1540 * sql/oodml.lisp: on Lispworks, use weak valued hash tables for
1542 * sql/expressions.lisp: Fix SQL generation for the symbol NIL.
1544 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1545 * sql/expressions.lisp: reactivate caching of generated SQL strings.
1546 Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY
1547 here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT,
1548 OUTPUT-SQL and DATABASE-OUTPUT-SQL.
1549 * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move
1550 methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to
1551 sql/expressions.lisp.
1552 * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in
1553 DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT.
1554 * sql/generics.lisp: add docstrings.
1556 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1558 * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
1559 code in favor of fixing UFFI with James Bielman's patch
1561 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1563 * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
1566 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1567 * README, INSTALL: update URLs. Minor updates to descriptions.
1568 * tests/README: remove stuff about editing contexts.
1570 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1571 * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to
1572 *default-string-length*
1574 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1575 * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping
1577 * tests/test-fddl.lisp: add tests for column and table constraints
1578 in CREATE-TABLE. Add test for OWNER keyword parameter to
1579 LIST-TABLES (assuming same underlying machinery in other FDDL
1581 * tests/test-init.lisp: restrict above test to postgresql and oracle.
1583 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1584 * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio
1587 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1588 * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
1590 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1592 * doc/*.xml: documentation additionals and fixes so
1593 that docbook passes xmllint.
1595 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1597 * sql/fdml.lisp: Apply patch from Kim Minh Kaplan
1598 to change escaping of single quotes. Mild optimizations
1599 for escaped string output.
1600 * doc/ref-ooddl.lisp: documentation additions
1601 * doc/ref-oodml.lisp: Add purpose to functions
1602 * TODO: Add need to test single quote escaping
1604 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1605 * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
1606 * sql/ooddl.lisp: Added SMALLINT type
1607 * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
1608 * db-mysql/mysql-objects.lisp: Added SMALLINT type
1609 * sql/package.lisp: Export SMALLINT
1610 * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
1613 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1614 * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the
1615 recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS
1616 View Class slot option.
1617 * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class
1618 slot option accepting a list of constraints [reported by Travis Cross].
1619 * doc/ref-fddl.xml: add some examples of specifying column and
1620 table constraints to the documentation for CREATE-TABLE.
1621 * TODO: add note about adding tests for table/column constraints. Add
1622 optimisation note about using cached attribute types in insert/update
1625 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1626 * doc/appendix.xml: add notes about idiosyncrasies/unsupported
1627 features and so on the documentation for each backend.
1628 * doc/TODO: remove items done.
1629 * doc/ref-transaction.xml: add note in introduction about
1630 autocommit mode as a difference from CommonSQL.
1631 * doc/ref-syntax.xml: add notes about SQL syntax state functions
1632 being macros in CLSQL. Add note about SQL operators which are
1635 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1636 * Version 2.11.12 released
1637 * doc/ref-recording.xml: document SQL I/O recording.
1638 * doc/ref-prepared.xml: new file for documenting prepared statements.
1639 * doc/clsql.xml: comment out include for large object and CLSQL-SYS
1641 * doc/ref-conditions.xml: complete documentation of condition system.
1642 * doc/global-index.xml: add symbols from condition system and remove
1643 those from LOB and prepared statement APIs.
1644 * doc/ref-fdml.xml: complete documentation of FDML.
1645 * doc/glossary.xml: add View Class.
1646 * doc/TODO: remove items done.
1647 * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR.
1648 * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export
1649 additional slot accessors for condition classes.
1651 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
1652 * doc/ref-ooddl.lisp: Add documentation
1653 * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
1654 and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
1655 * doc/oodml.lisp: Rename references to new name of
1656 *DEFAULT-STRING-LENGTH*
1658 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1659 * doc/ref-transaction.xml: document transaction handling.
1660 * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and
1661 START-TRANSACTION return NIL as per the CommonSQL spec. Modify
1662 ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is
1663 passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
1666 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1667 * doc/ref-fdml.xml: document the FDML.
1668 * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here.
1669 * sql/ooddl.lisp: moved *default-varchar-length* to here from
1670 oodml.lisp and renamed to *default-string-length*
1672 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1673 * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
1674 to allow specifying transactionless table creation
1675 * doc/ref-oodml.lisp: Add new keyword to signature of
1678 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1680 * sql/expressions.lisp: when removing duplicate table identifiers
1681 in the FROM clause of a query, check both table name and alias
1683 * sql/fdml.lisp: remove DESCRIBE-TABLE.
1684 * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and
1685 DATABASE-DESCRIBE-TABLE.
1686 * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE
1687 and LIST-TABLE-INDEXES.
1688 * sql/generic-postgresql.lisp: add reader conditional #+nil for
1689 DATABASE-DESCRIBE-TABLE and comment about its uses for
1690 re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query
1691 returning type info for all attributes.
1692 Fix DATABASE-SEQUENCE-LAST.
1693 * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine
1694 LIST-INDEXES with additional keyword parameter :ON.
1695 * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3
1696 with LIST-INDEXES (with :ON parameter).
1697 * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES.
1698 * doc/ref-connect.xml: minor tidying.
1699 * doc/ref-fddl.xml: document the FDDL.
1700 * doc/TODO: removed items done. Moved note about transaction handling
1702 * TODO: move note about transaction handling to doc/TODO. Added
1703 optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES.
1705 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1707 * sql/syntax.lisp: updated docstrings.
1708 * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL
1710 * sql/database.lisp: add docstrings for CREATE-DATABASE,
1711 DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace
1712 CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR.
1713 * doc/ref-syntax.xml, doc/global-index.xml: minor tidying.
1714 * doc/ref-connect.xml: document connection/initialisation.
1715 * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here.
1716 * doc/TODO: remove items done.
1717 * Makefile: add db-oracle to to SUBDIRS.
1719 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1720 * sql/oodml.lisp: Add new serialization functions:
1721 WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
1722 * sql/expressions.lisp: Avoid duplicate FROM names when selecting
1723 from a table that has more than one primary index.
1724 * sql/conditions.lisp: Fix printing of closed-database error
1726 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1728 * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
1729 * sql/transactions.lisp: Correctly set slots of SQL-WARNING
1731 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1732 * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses
1733 of SQL-EXPRESSION from CLSQL-SYS.
1734 * sql/syntax.lisp: make error signalled in SQL-OPERATION an
1735 SQL-USER-ERROR. Make SQL-OPERATOR return just one value.
1736 * doc/Makefile: added Mandrake linux.
1737 * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files.
1738 * doc/appendix.xml: fixed little typo (adsf).
1739 * doc/glossary.xml: removed closed-database and note about
1740 sql-expression, added some entries.
1741 * doc/ref-syntax.xml: documented the symbolic SQL syntax.
1743 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1745 * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
1746 * multiple: Add generalized-boolean type as requested by
1748 * TODO: Added need for test of generalized-boolean
1750 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1751 * Version 2.11.7 released
1752 * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
1753 for loading with clc-register-user-package. Remove personal
1754 directory from path lisp.
1755 * db-mysql/mysql-loader.lisp: Similar changes
1757 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1758 * Version 2.11.6 released
1759 * sql/oodml.lisp: Commit patch from Edi Weitz
1760 to fix symbol writing/reading
1761 * TODO: Add need for symbol slot test
1763 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1764 * sql/package.lisp: remove duplicate export of
1765 *CACHE-TABLE-QUERIES-DEFAULT*.
1766 * doc/ref-*.xml, doc/global-index.xml: new files documenting
1767 the CommonSQL compatible api.
1768 * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to
1769 reflect changes in return values of WITH-TRANSACTION.
1771 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1772 * tests/README: Fix filename [reported by Bill Clementson]
1773 * sql/transactions.lisp: Apply return value patch from
1774 Edi Weitz for WITH-TRANSACTION
1775 * tests/README: Remove ptester package requirement (as noted
1778 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
1779 * Version 2.11.5 released
1780 * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
1781 Select connection-spec based on connection type. Bugs reported by
1783 * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
1784 * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
1785 name on Windows, add \bin\ directory to search path
1787 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
1788 * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in
1790 * sql/operations.lisp: substr now generates SUBSTR for use on
1791 Oracle; added a new operator SUBSTRING for use elsewhere. minus
1792 now generates MINUS for use on Oracle. Nvl signals an error if
1793 not called with exactly 2 arguments. Add concat function for use
1794 instead of the || operator on MySQL and Oracle.
1795 * sql/syntax.lisp: changed internal symbol for the || operator to
1797 * sql/expressions.lisp: removed redundant and unused functions
1798 GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
1799 (cf. MAKE-CONSTRAINTS-DESCRIPTION).
1800 * sql/generics.lisp: removed generic function for
1801 DATABASE-CONSTRAINT-DESCRIPTION (see above).
1802 * tests/test-syntax.lisp: modified/added tests according to changes
1803 in sql/operations.lisp.
1804 * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test
1806 * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP
1807 and SQL-USERENV to the shared exports list. Removed
1808 ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION,
1809 DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION,
1810 TRANSACTION-LEVEL, TRANSACTION, RECORD-SQL-COMMAND and
1811 RECORD-SQL-RESULT from shared exports list.
1813 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1814 * db-postgresql/postgresl-sql.lisp: Avoid computing
1815 result-types lisp when nil result-types. Return only
1816 one value when field-types nil.
1817 * db-mysql/mysql-sql.lisp: Simple queries now
1818 working with prepared statements.
1820 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1821 * Version 2.11.4: MySQL 4.1 now passes all tests
1822 * sql/package.lisp: Add API for prepared statments.
1823 * sql/fdml.lisp: Change implicit flatp processing
1824 for string map-query for greater CommonSQL conformance.
1825 Add high-high API for prepared statements.
1826 * tests/test-basic.lisp: Add test for map-query and
1828 * sql/transactions.lisp: Change name/semantics of
1829 autocommit to set-autocommit.
1830 * sql/generic-postgresql.lisp: Add support for
1831 prepared statements.
1832 * tests/test-internal.lisp: New file
1833 * sql/odbc-api.lisp: Update to using ODBC V3 protocol
1834 * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
1835 Controller invocation.
1836 * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
1837 * sql/expressions.lisp: Avoid emitting double parenthesis when a
1838 function contains a subselect.
1840 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1842 * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
1843 type (setf slot-value-using-class)
1844 * TODO: add not that need a test case for the above fix
1845 * db-sqlite: Remove clisp support since clisp can not run CLSQL
1847 * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as
1848 introduced in Oracle8. Leave older code selectable by a reader macro
1849 for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
1850 uses OCILogon and does not the more complex session management.
1852 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1853 * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
1854 * test/test-init.lisp: Add universal-time slot to person.
1855 * test/test-fddl.lisp: Add tests of universal-time slot
1856 * test/test-ooddl.lisp: Test universal-time slot in an object
1857 * TODO: Remove need for universal-time test
1858 * debian/rules, debian/control: Add cl-sql-oracle binary package
1859 * doc/appendix.xml: Add Oracle backend information
1860 * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
1861 universal-time. Convert BIGINT CLSQL type to CHAR SQL type
1862 * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
1863 * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
1864 for map-query to reflect changed in arguments to be CommonSQL compatible.
1865 Updated old clsql conditions to new CommonSQL compatible conditions.
1867 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1868 * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
1869 type. Added *default-varchar-length* rather than previous hard-coded
1870 varchar length. Remove 'simple-string and 'simple-base-string since they
1871 are subtypes of 'string.
1872 * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
1873 local hard-coded value.
1874 * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
1875 type string. Convert specified-type (CHAR n) to string. Convert specified-type
1876 CHAR to lisp type character.
1877 * sql/generic-postgresql.lisp: (string n) => (CHAR n)
1878 * sql/operations.lisp: Add userenv
1879 * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1881 * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1882 * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1883 * test/test-init.lisp: Add large table with bigint slot
1885 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1886 * Version 2.11.1 released: Much simpler Oracle client library loading.
1887 Now uses ORACLE_HOME environmental variable as well as tests default
1888 path for Oracle Instant Client.
1890 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1891 * Version 2.11.0 released: Full Oracle support. All tests pass
1892 * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1893 * tests/test-init.lisp: capitalize odbc backend name in banner
1894 * CONTRIBUTORS: Add note about Marcus' excellent work
1895 * sql/oodml.lisp: Removed old stub function
1896 * clsql.asd: Use module names in current package rather than keyword package
1897 * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1898 in setting sequence position. Make autocommits more efficient.
1899 * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax
1900 * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1901 strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1902 and read-sql-value for NUMBER and CHAR.
1903 * sql/base-classes.lisp: Add autocommit slot
1904 * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1905 * doc/intro.xml: Add Oracle
1907 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk)
1908 * db-postgresql-socket/postgresql-socket-sql.lisp: replace
1909 CLSQL-SIMPLE-WARNING with SQL-WARNING.
1910 * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with
1912 * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR.
1913 * clsql.asd: reworked module structure in package definition and
1914 file names to better reflect component functionality.
1915 * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to
1916 exports list. Removed duplicate and obsolete exports. Exported
1917 remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT,
1918 SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and
1919 according to whether they are specified by CommonSQL or CLSQL
1921 * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with
1923 * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND
1924 here from basic-sql.lisp.
1925 * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted).
1926 * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted).
1927 * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1929 * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted).
1930 * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted).
1932 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1933 * Version 2.10.22 released
1934 * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
1935 has reversed class slots, change the default for ordered-class-slots so that slots
1936 are now in the same order an in the def-view-class.
1937 * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
1938 * test/test-fddl.lisp: Add two tests for mixed case names
1939 * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
1940 for computed fields, this will require some adjustment to the test suite which
1941 in many cases expects integers.
1942 * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
1944 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1945 * Version 2.10.21 released
1946 * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
1947 db-odbc, and db-aodbc.
1948 * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
1949 DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
1950 * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
1951 * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to
1952 sql/generic-odbc.lisp
1953 * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp:
1954 Move common code to sql/generic-postgresql.lisp
1955 * sql/classes.lisp: honor case of string tables when outputting queries
1956 * sql/objects.lisp: Add database type to default database-get-type-specifier method
1957 * sql/sql.lisp: Add database type to default database-abort-transaction method
1958 * db-mysql/mysql-objects.lisp: New file
1959 * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
1960 * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
1962 * test/test-fdml.lisp: String table names are now case sensitive, so convert to
1963 default db case for FDML/SELECT/25
1965 22 May 2004 Kevin Rosenberg
1966 * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
1967 * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
1968 and string identifiers with non-default case
1969 * sql/table.lisp: Don't convert string table name to a symbol.
1970 * sql/classes.lisp: Honor case of string identifiers
1971 * sql/sql.lisp: Ensure recyclebin is purged for Oracle in
1973 * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
1974 of owner phrases. Obtain server and client versions.
1975 * db-oracle/oracle-objects.lisp: Fix type specifiers
1976 * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
1977 * tests/test-init.lisp: Properly get username from Oracle connection-spec
1979 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1980 * sql/generics.lisp: reworked docstrings. Remove generics for
1981 ADD-TO-RELATION and REMOVE-FROM-RELATION.
1982 * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS
1983 to UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1984 * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS
1985 for CommonSQL compatibility. Remove ADD-TO-RELATION and
1986 REMOVE-FROM-RELATION.
1987 * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to
1988 UPDATE-OBJECTS-JOINS for CommonSQL compatibility.
1989 * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS.
1990 * sql/conditions.lisp: add documentation for conditions. Add
1991 SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility.
1993 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1994 * sql/basic-sql.lisp: reworked docstrings.
1995 * sql/transactions.lisp: reworked docstrings.
1996 * sql/sql.lisp: reworked docstrings.
1997 * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE
1998 sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility.
1999 * sql/database.lisp: reworked docstrings.
2000 * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P
2001 and FDML extensions and database extensions.
2003 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2004 * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
2005 * db-oracle/make9.sh: add makefile for building with Oracle 9 client
2007 * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
2008 Oracle versions with the PURGE option required for drop table. This needs
2009 to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
2011 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2012 * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE.
2013 * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION.
2014 * sql/table.lisp: reworked docstrings.
2015 * sql/objects.lisp: moved *default-update-objects-max-len* here from
2017 * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE,
2018 DROP-VIEW and DROP-INDEX and the use of the :transactions and
2019 :constraints keyword args to CREATE-TABLE.
2020 * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now
2021 CommonSQL compatible with respect to column constraints.
2023 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2024 * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
2025 Requires UFFI 1.5.0 or higher
2027 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2029 * sql/conditions.lisp: Fix cerror
2031 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2032 * Version 2.10.18 released: New condition hierarchy to be compatible
2033 with CommonSQL -- not backward compatible with previous CLSQL.
2034 * sql/db-interface.lisp: Add more default methods
2035 * sql/objects.lisp: Add explicit table name to order-by parameters
2036 in find-all when only one table to avoid selecting a duplicate row.
2037 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
2038 as previous logic was adding two fields (foo asc) to SELECT query.
2039 Make :result-types :auto be the default for object selections.
2040 Properly handle caching key when using multiple order-by with asc/desc
2042 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
2044 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2045 * sql/recording.lisp: reworked docstrings.
2046 * sql/syntax.lisp: reworked docstrings.
2047 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
2048 SQL syntax state functions being macros.
2050 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2051 * sql/package.lisp: Export initialize-database-type and
2052 *initialize-database-types* from CLSQL package.
2053 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
2054 remove old CLSQL conditions.
2055 * sql/loop-extensions.lisp: Make errors of type sql-user-error
2056 * */*.lisp: Convert to from old to new conditions
2058 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2059 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
2060 To handle this difference, will need to add a new database-drop-table
2062 * db-oracle/oracle-sql.lisp: Move server-version and
2063 major-version-number to database object to allow multiple connections
2064 to Oracle servers of different versions.
2066 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2067 * TODO: moved notes about backends to doc/TODO.
2068 * doc/TODO: added notes about backends and select extensions.
2069 * sql/base-classes.lisp: remove obsolete schema slot in database
2072 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2073 * db-oracle/oracle-api: Add OCIServerVersion
2074 * db-oracle/oracle-sql: Query and store server version on connect
2075 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
2076 function to handle OCI's lack of bigint support
2077 * test/test-basic.lisp: Separate bigint testing
2078 * test/test-utils.lisp: Add oracle to specs and list of backends
2079 * doc/TODO: New file
2080 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
2081 run-time instantiation of variables in reader macros.
2082 * TODO: Remove item already complete. Add note about
2085 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2086 * sql/syntax.lisp: added condition to the reader macro to treat [*]
2087 as a column identifier (rather than an operation) for CommonSQL
2089 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
2090 keword args to SELECT, [*] as column identifier, new MAP-QUERY
2091 behaviour and the ANY and ALL operators in subqueries.
2092 * tests/test-init.lisp: add set-operation and subquery tests to
2093 appropriate skip lists.
2094 * sql/objects.lisp: remove redundant and non CommonSQL compatible
2095 ORDER-BY-DESCENDING keyword argument for SELECT.
2096 * sql/classes.lisp: remove redundant and non CommonSQL compatible
2097 ORDER-BY-DESCENDING keyword argument for SELECT.
2098 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
2099 with object queries.
2101 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2102 * sql/db-interface.lisp: Add new db-type-has-union?
2103 since Mysql 3.23 does not support unions.
2104 * sql/test-init.lisp: Don't try union tests on database
2105 backends which do not support it.
2106 * db-oracle/*.lisp: initial port to UFFI
2107 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
2108 implement REFRESH for SELECT.
2109 * tests/test-oodml.lisp: Add tests for deferred retrieval,
2110 caching, refresh, and update-object-joins
2111 * tests/test-init.lisp: Add deferred-employee-address class
2113 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2114 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
2115 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
2116 ALL and EXISTS generate function expressions so they output the
2118 * sql/classes.lisp: SELECT now generates appropriate SQL when
2119 passed the SET-OPERATION and ALL keyword arguments.
2120 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
2121 accepts ordering constraints as pairs of the form (column direction)
2122 where direction may be :ASC or :DESC.
2123 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
2124 Correct tests for ANY, SOME, ALL and EXISTS.
2125 * tests/test-fdml.lisp: added test for COALESCE.
2126 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
2127 using funcall unless QUERY-EXPRESSION returns one column and its
2128 FLATP slot is not nil in which case apply is used.
2129 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
2131 * TODO: remove items done.
2132 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
2133 DATABASE-LIST-ATTRIBUTES.
2134 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
2135 results in DATABASE-LIST-ATTRIBUTES.
2137 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2138 * sql/classes.lisp: SELECT now accepts table identifiers as strings
2139 for CommonSQL compliance. Add support for qualified sql identifiers
2140 with aliased table names.
2141 * tests/test-fdml.lisp: added tests for table identifiers as strings
2142 in SELECT and for aliased definitions.
2143 * tests/test-syntax.lisp: added tests for alias definitions.
2145 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2146 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
2147 field-names set to nil.
2148 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
2149 with null attribute values.
2150 * sql/operations.lisp: modify SQL concatenation operator to accept
2151 unescaped || symbol.
2152 * sql/syntax.lisp: modify sql reader macro function to accept
2153 unescaped sql concatenation operator.
2154 * tests/test-fdml.lisp: unescape sql concatenation operator.
2155 * tests/test-syntax.lisp: unescape sql concatenation operator.
2156 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
2157 Note to add test for universal-time. Note about difference from
2158 CommonSQL in transaction handling.
2160 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2161 * tests/test-init.lisp: Add deferred-employee-address
2163 * tests/test-oodml.lisp: Add deferred retrieval testgs
2165 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2167 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
2168 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
2169 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
2170 * *: Fix minor style warnings
2171 * clsql-classic: Remove system and subdirectory
2172 * clsql-base: Remove system and subdirectory and
2173 fold into clsql system
2174 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
2175 as supported platform.
2177 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2178 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
2179 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
2180 Allegro 7.0beta AMD64
2181 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
2182 of ODBC longs since this type can vary on 64-bit platforms depending
2183 upon the compilation options of unixODBC.
2184 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
2185 structures found by testing with AllegroCL 7.0b AMD64.
2186 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
2187 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
2188 Initial caching support for SELECT
2189 * tests/test-oodml.lisp: Avoid using cache when testing select.
2190 * sql/kmr-mop.lisp: Explicitly check slot order and
2191 store as a cl:*feature*
2192 * sql/recording.lisp: Remove additional types to
2193 increase CommonSQL conformance.
2194 * tests/test-init.lisp: Change a :column attribute
2195 to test symbols as value
2196 * sql/relations.lisp: Remove functions since they don't support
2197 many to many relationships.
2198 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
2199 of add-to-relations function and replace with explicit field settings.
2200 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
2202 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2204 * LATEST-TEST-RESULTS: results with current version
2205 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
2206 since cmu19 has opposite order of class slots.
2207 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
2208 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
2210 * tests/test-init.lisp: Check test-database-underlying-type for
2213 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2214 * sql/operations.lisp: complete remaining operations for the sql
2215 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
2216 UNION, INTERSECT, BETWEEN.
2217 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
2218 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
2219 * tests/test-syntax.lisp: add tests for new operations.
2220 * tests/test-fdml.lisp: add tests for queries based on new operations.
2221 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
2222 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
2223 * TODO: removed entries done.
2225 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2226 * tests/benchmarks.lisp: Add immediate vs. deferred
2229 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2230 * Version 2.10.13: Now works on openmcl 0.14.2
2231 * sql/objects.lisp: Add :retrieval :immediate for
2233 * tests/test-init.lisp: Add non-index fields for testing
2234 join class employee-addresss
2235 * test/test-oodml.lisp: Add tests for retrieval immediate
2236 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
2237 values which are now listifed by openmcl 14.2.
2238 * sql/objects.lisp: more framework for supporing immediate retrieval
2240 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2241 * docs/intro.xml: Upload location of a README file
2242 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
2243 changing the type-specifier. Use a lisp type of (OR NULL FOO)
2244 for a specified-type of FOO unless :db-constraints :not-null.
2245 No need to specialize finalize-inheritance for openmcl.
2246 * tests/test-*.lisp: Rename fields so that joins occur on
2247 fields with different names. This ensures that join code is
2248 selecting the proper name.
2249 * test/test-init.lisp: Add :base-table for employee-address
2250 view class for testing.
2251 * sql/objects.lisp: Use view-table rather than name of table
2252 in a number of places to fix errors noted with using :base-table.
2254 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2255 * sql/objects.lisp: replace *update-records-on-make-instance* with
2256 *db-auto-sync* which also controls both automatic creation of
2257 new records on creation of new instance and updating of record
2258 fields on setting of instance slots (as suggested by Edi Weitz).
2259 * tests/test-init.lisp: replace *update-records-on-make-instance*
2260 with *db-auto-sync*.
2261 * sql/package.lisp: replace *update-records-on-make-instance*
2262 with *db-auto-sync*.
2263 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
2264 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
2265 and *default-database* in FIND-ALL.
2266 * sql/package.lisp: import time functions from CLSQL-BASE.
2267 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2268 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2269 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
2270 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
2273 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2274 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
2275 now return a sql-object-query type rather than directly performing a query.
2276 This improves CommonSQL conformance.
2277 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
2278 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
2279 depend on sql-object-query-type.
2280 * sql/loop-extensions.lisp: Move from base package
2281 * classic/package.lisp: remove references to map-query and do-query
2283 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2284 * TODO: New section on optimizations, especially optimizing JOINs.
2285 * sql/objects.lisp: Have :target-slot return of list of lists rather
2286 than a list of cons pairs to be conformant with CommonSQL.
2287 Make :target-slot much more efficient by using a SQL inner join
2288 statement and just requiring one SQL query. Add :retrieval :deferrred
2289 to target-slot joins. Add placeholder for update-objects-join.
2290 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
2291 and process them for query output-sql.
2293 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2295 * base/basic-sql.lisp: Avoid multiple evaluation
2296 of query-expression in DO-QUERY
2297 * sql/objects.lisp: Make SELECT a normal function.
2298 SELECT now accepts type-modified database identifiers, such as
2299 [foo :string] which means that the values in column foo are returned
2300 as Lisp strings. Add new *update-records-on-make-instance* special
2301 variable controlling automatic creation of new instances. Add missing
2302 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
2303 * sql/packages.lisp: Export *update-records-on-make-instance*
2304 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
2306 * test/test-fdml.lisp: Add tests for type-modified
2307 database identifiers.
2308 * test/test-init.lisp: Stop using add-relation since implementing
2309 many-to-many joins. Use *update-records-on-make-instance*
2310 to automatically store records on instance creation. Add many-to-many
2311 employee-address view-class.
2313 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2315 * base/loop.lisp: Add object iteration. Use :result-type
2316 :auto for result-set. Remove
2317 duplicate (and non-correct) code for non-list variables by
2318 simply making an atom variable into a list.
2319 * sql/package.lisp: Remove unnecessary clsql-sys package
2320 and replace it with clsql.
2321 * sql/metaclasses.lisp: Properly store specified-type from
2322 direct-slot-definition and then store translated type in
2323 effective-slot-definition
2324 * sql/classes.lisp: Don't output type in sql-output
2325 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
2326 [foo :integer] as fields in SELECT.
2327 * sql/query.lisp: Set default for :result-types to :auto in
2329 * sql/objects.lisp: Use specified-type when invocating
2330 database-get-type-specifier. def-view-class macro now returns
2332 * base/basic-sql.lisp: Make :AUTO the default value for
2333 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
2334 * sql/objects.lisp: Add bigint type
2335 * test/tests-basic.lisp: Add tests for :result-types for
2336 MAP-QUERY and DO-QUERY
2337 * test/test-fdml.lisp: Add test for result-types in LOOP
2338 and also using single symbol rather than a list for variables.
2339 Add test that default :result-types is auto for FDML QUERY.
2340 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
2341 of SQL-IDENT-ATTRIBUTE.
2342 * test/test-oodml.lisp: Enable OO loop iteration test,
2343 modify it so it doesn't depend on boolean where.
2345 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2347 * sql/objects.lisp: added derived type specifier for universal time.
2348 * sql/package.lisp: added #:universal-time to clsql-sys exports.
2349 * tests/test-oodml.lisp: added test for translation of boolean slots
2350 in SELECT with object queries.
2352 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2353 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
2354 for odbc/postgresql backend.
2355 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
2356 it can handle NIL values from the ODBC driver
2357 * tests/benchmarks.lisp: New file with initial
2359 * sql/relations.lisp: fix to add subclassing support,
2360 minor optimizations [Edi Weitz]
2362 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2364 * base/conditions.lisp: Add *backend-warning-behavior*
2366 * db-postgresql-socket/postgresql-socket-sql.lisp:
2367 Honor value of *backend-warning-behavior*
2368 * tests/test-fdml.lisp: Remove test of raw boolean value
2369 since different backends handle this differently. Add
2370 test for :column attribute.
2371 * tests/test-oodml.lisp: Add tests for boolean slot value
2372 and for :void-value attribute
2373 * tests/test-init.lisp: Use *backend-warning-behavior*
2374 to suppress warnings from postgresql about implicitly
2375 creating primary key in tables. Add new address table.
2377 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2379 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
2380 result-types is :auto
2381 * sql/objects.lisp: Properly handled writing/reading Boolean
2382 values from SQL database when retrieving objects.
2383 * test/test-fdml.lisp: Add another test for boolean results
2384 * test/utils.lisp: Fix incorrect declaration
2386 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2388 * sql/generics.lisp: add generic function for SELECT.
2389 * sql/objects.lisp: make SELECT a method specialisation.
2390 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
2391 referred to are View Classes.
2392 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
2393 query-expression arg evaluates to a list, then we have an object
2395 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
2397 * TODO: remove items done and add a todo for SELECT.
2398 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
2400 * sql/sql.lisp: add :field-names arg to QUERY.
2401 * tests/test-fdml.lisp: minor rework to use :field-names arg to
2404 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2405 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
2406 or more View Classes.
2407 * sql/objects.lisp: make the :flatp argument to SELECT work with
2409 * sql/objects.lisp: make SELECT accept a :result-types argument
2410 (defaults to :auto) which is passed on to QUERY.
2411 * sql/objects.lisp: SELECT returns field-names as a second value.
2412 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
2413 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
2414 to SELECT and take only first value as appropriate.
2415 * tests/test-fdml.lisp: add two new tests for query result coercion
2416 and the field-names returned as a second value from SELECT.
2417 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
2419 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2420 * Version 2.10.6-pre1
2421 * sql/metaclasses.lisp: Add void-value slot
2422 * doc/csql.xml: Update def-view-class documentation
2423 * test/test-init.lisp: Change old :db-type to :db-kind.
2424 Remove old :nulls-ok attributes.
2425 * sql/objects.lisp: Add new universal-time and bigint
2426 types. Optimize reading of integers using parse-integer
2427 rather than read-from-string.
2428 * */*.lisp: Merge clsql-base-sys and clsql-base packages
2429 into clsql-base package
2430 * classic/sql.lisp: Move large object support into base, leaving
2431 classic without any functionality that is provided in the clsql
2433 * classic/package.lisp: Rename clsql-classic-sys package to
2434 its former nickname of clsql-classic
2436 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2437 * Version 2.10.5: SQLite backend now passes all result-types tests
2438 * clsql-sqlite.asd: Depend on clsql-uffi system
2439 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
2440 for efficiency and code reuse.
2441 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
2442 for better cross-implementation compatibility.
2444 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2446 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
2448 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
2449 bug on SBCL in result-field-names function as reported by Marcus Pearce
2450 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
2451 manifest in SBCL testing
2453 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2455 * sql/database.lisp: Conform more to CommonSQL output
2456 for STATUS command [Marcus Pearce]
2457 * sql/sqlite-sql.lisp: Rework to use result-types
2458 * sql/sqlite-api-clisp.lisp: Add compatibility layer
2459 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
2460 be cleaned up of most clisp reader conditionals
2461 * sql/test-init.lisp: Now run field type tests on sqlite
2464 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2466 * base/basic-sql.lisp: Set default value of :result-types
2467 to :auto for more CommonSQL conformance.
2468 * test/test-fdml.lisp: Add tests for numeric value of fields
2471 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2472 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
2473 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
2474 Return field names as second value for QUERY. This can be overridden
2475 for efficiency with the new keyword :FIELD-NAMES set to NIL
2476 in the QUERY invocation.
2477 * test/test-fdml.lisp: Add tests for new field-name feature
2478 * sql/metaclass.lisp: Remove old Lispworks cruft
2479 and replace it with invocation of new code in kmr-mop.lisp
2480 which actually works with Lispworks 4.2
2481 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
2483 * base/db-interface.lisp: Document the multiple values
2484 returned by DATABASE-ATTRIBUTE-TYPE so matches the
2485 undocumented CommonSQL behavior.
2486 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
2487 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
2488 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
2489 Implement CACHE-TABLE-QUERIES.
2490 * db-odbc/odbc-sql.lisp: Fix attribute-type function
2491 * test/test-fddl.lisp: Add tests for attribute type
2492 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
2494 * base/classes.lisp: Add attribute-cache slot to database clas
2495 * base/initialize.lisp: initialize-database-type now automatically
2496 loads database-type backend as needed.
2497 * base/test-init.lisp: Utilize new initialize-database-type functionality.
2498 * TODO: remove items done
2500 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
2502 * sql/objects.lisp: remove create/drop-sequence-from-class.
2503 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
2504 * sql/objects.lisp: improved CommonSQL compatibility for
2505 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
2506 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
2507 * sql/generics.lisp: move generics from objects.lisp to here.
2509 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2510 * Version 2.9.6-pre1
2511 * db-mysql/mysql-client-info.lisp: Add client version 4.1
2513 * sql/sql.lisp: Make *default-database* the default for
2516 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2518 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
2520 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
2521 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
2522 on a metaclass specialized from standard-db-class.
2525 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2526 * Version 2.9.4: Multiple changes to support Allegro's "modern"
2527 lisp which uses a lowercase reader and has case-sensitive symbols
2528 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
2529 exposed by case-sensitive mlisp.
2531 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2532 * Version 2.9.3: All tests now pass on all platforms!
2533 * LATEST-TEST-RESULTS: New file with summary of test results
2534 * sql/generics.lisp: New file for generic function definitions.
2535 * test/test-init.lisp: Display names of skipped tests.
2536 Use unwind-protect to ensure disconnect
2537 * sql/objects.lisp: Change database-type to database-underlying-type
2538 so that actual database engine is properly identified
2539 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
2540 return an ISO timestring for compatibility with other drivers.
2541 Workaround bug in MyODBC for LIST-TABLE-INDEXES
2542 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
2543 returns floating-point values for floor and truncate operations
2544 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
2545 * tests/test-basic.lisp: Port to regression tester
2546 * test/test-init.lisp: Output to *report-stream*
2547 * docs/appendix.xml: Document ODBC and SQLite backends.
2548 * sql/classes.lisp: Make output-sql require a database parameter.
2549 This allows SQL generation to have the proper case to support
2550 the differences in case handling between CommonSQL API,
2551 Postgresql, MySQL, Oracle.
2553 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2554 * Version 2.9.2: Improvments in database capability introspection
2555 and querying. Support transactions in MySQL where available.
2556 All tests now pass on MySQL and SQLite in addition to postgresql
2557 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
2558 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
2559 DATABASE-LIST-SEQUENCES.
2560 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
2561 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
2562 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
2563 * tests/*.lisp: Check database capabilities and remove tests which
2564 the database backend does not support
2565 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
2566 controls whether InnoDB tables will be created when supported on
2567 the underlying MySQL server.
2569 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2570 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
2571 supported by all database backends (except AODBC since
2572 AODBC doesn't support index querying)
2573 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
2574 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
2575 to support index queries
2576 * db-aodbc/aodbc-sql.lisp: Filter driver manager
2577 "information_schema" tables from LIST-TABLES
2578 * tests/test-basic.lisp: Remove table after testing
2579 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
2580 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
2581 which gets the underlying type of database -- required
2582 when dealing with ODBC databases and want to query
2583 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
2584 as first database-backend specific feature. Is T on
2585 :mysql, NIL on other backends. Change DROP-TABLE to
2588 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2589 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
2591 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2593 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
2594 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
2596 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2597 * Version 2.8.0: New API function: LIST-DATABASES
2598 * base/utils.lisp: Fix command-output on CMUCL/SBCL
2599 * db-*/*-sql.lisp: Add new database-list function
2600 * base/database.lisp: Add new LIST-DATABASES command
2602 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2604 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
2605 * db-sqlite/sqlite-api-uffi.lisp: Print error string
2608 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2610 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
2613 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2615 * base/objects.lisp, base/classes.lisp: Patch
2616 for db-kind from Eduardo Munoz
2618 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2620 * base/basic-sql.lisp: Fix FLATP in QUERY
2622 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2623 * Version 2.7.3: Implement RECONNECT
2625 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2626 * Version 2.7.2: Fix ODBC on Lispworks Windows
2628 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2629 * Version 2.7.1: Fix for new ODBC backend.
2630 clsql-odbc now works on SBCL, CMUCL, OpenMCL
2631 in addition to AllegroCL and Lispworks.
2633 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2634 * Version 2.7.0: New backend: ODBC. Tests as
2635 well as AODBC backend on Allegro,Lispworks.
2636 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
2637 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
2638 to explicitly set ODBC2 support. Add BIGINT support.
2639 Add result-types support. Added SQLTables.
2640 Fix array type in fetch-all-rows. Make width
2641 changable by database or query.
2642 * base/utils.lisp: Add process functions
2643 * base/package.lisp: Export utils to CLSQL-BASE-SYS
2644 * db-aodbc: Implement sequence functions,
2645 database-list-tables, database-list-attributes
2646 * tests/utils.lisp: Add support for ODBC backend,
2647 rework READ-SPECS to use +all-db-types+
2648 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
2651 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2652 * Version 2.6.13. Requires UFFI version 1.4.9
2653 * db-odbc/*.lisp: Further porting.
2654 Pre-alpha code! But, basic query is now working.
2656 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2658 * base/transactions.lisp: Add quote for macro
2659 expansion of WITH-TRANSACTIONS [Time Howe]
2660 * db-sqlite/sqlite-sql.lisp: Support memory database
2661 in database-probe [Ng Pheng Siong]
2662 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
2663 The DBI layer is not finished.
2665 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2667 * sql/objects.lisp: add :root-class functionality for
2668 list-classes and add duration type support [Marcus Pearce]
2669 * db-odbc: Add mid-level [DBI] layer
2671 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2673 * db-aodbc: Add methods for generic functions, some are
2674 not yet implemented.
2675 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
2678 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2680 * base/package.lisp: Add missing symbols [Marcus Pearce]
2682 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2684 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
2685 * utils/time.lisp: Multiple fixes [Marcus Pearce]
2686 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
2688 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2690 * sql/*.lisp: Remove schema versioning cruft
2692 * Makefile: Add classic subdirectory
2694 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2696 * sql/sql.lisp: Fix TRUNCATE command, bug reported
2698 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
2699 specific and easy for an application to directly support.
2700 Idea from Marcus Pearce.
2701 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
2702 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
2703 Keep low-level interface for future optimization
2704 supporting LIST-ATTRIBUTE-TYPES command.
2705 * Makefile: Add to db-sqlite and test directories.
2706 Include them in top-level Makefile
2708 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2710 * sql/relations.lisp: Add missing file
2711 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
2712 * test/test-time.lips: New file [Marcus Pearce]
2714 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2716 * test/test-init.lisp: Properly handle object
2717 creation. Close database after use.
2718 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
2719 function so can have methods specialized on
2720 table being a string or an sql-table object.
2721 * base/pool.lisp: Really fix CMUCL locking
2723 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2725 * test/test-init.lisp: Signal correctly
2726 if any errors occurred in any test suite
2727 * base/loop-extensions.lisp: Fix error
2728 introduced for Lispworks
2729 * base/pool.lisp: Fix locking for CMUCL
2730 * base/objects.lisp: Remove schema-version cruft
2732 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2733 * Version 2.6.2: New CLSQL API functions:
2734 DESCRIBE-TABLE AND TRUNCATE-DATABASE
2735 Currently, this are only supported on :postgresql
2736 and :postgresql-socket
2737 * base/database.lisp: automatically load ASDF system
2738 in CONNECT if not already loaded
2739 * base/tests.lisp: disconnect database after testing
2740 * base/*.lisp: Remove CLOSED-DATABASE type in favor
2741 of storing open/closed status in slot of database
2742 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
2743 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
2744 DATABASE-DESCRIBE-TABLE
2745 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
2746 * base/conditions: Remove duplicate condition
2747 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
2748 * base/recording.lisp: Add new :QUERY type for recording
2750 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2751 * Version 2.6.1: documentation fixes, merged
2752 classic-tests into tests
2754 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2755 * Version 2.6.0 released: New API functions
2756 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
2757 * doc/ref_clsql.xml: Document new functions
2758 * base/database.lisp: New API functions
2759 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
2760 * base/utils.lisp: Fix use of position-char.
2761 Add COMMAND-OUTPUT used by backends for running
2762 external programs. Fix parsing of SQL*NET-compatible
2764 * base/loop-extension.lisp: Simplify package use
2765 for Lispworks and Allegro
2766 * db-*/*-sql.lisp: Added DATABASE-CREATE,
2767 DATABASE-DESTORY, PROBE-DATABASE methods
2768 * tests/test-init.lisp, clasic-tests/tests.lisp:
2769 Use destroy-database and create-database to ensure
2770 testing with empty database
2771 * tests/test-connection.lisp: Add tests for
2772 parsing of string connection-specs
2773 * examples/run-tests.sh: New file for running
2774 test suite on all installed CL implementations
2775 * examples/clsql-tutorial.lisp: moved from
2777 * examples/dot.clsql-tests.config: New file
2778 giving an example test configuration
2779 * test/README: Add notes about rtest/ptester
2780 downloads and link to sample test configuration file.
2782 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2783 * Version 2.5.1 released:
2784 * tests/*.lisp: Rework so tests are run
2785 on multiple backends automatically based
2786 on the contents of ~/.clsql-tests.config.
2787 Reuse helper functions from classic-tests.
2788 * base/database.lisp: Support connection-spec
2789 as string for CONNECT
2790 * classic-tests/tests.lisp: Automatically
2791 load database backends as needed.
2793 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2794 * Version 2.5.0 released:
2795 All tests for CLSQL and CLSQL-CLASSIC pass
2797 * base/loop-extension.lisp: Add Lispworks
2798 loop-extension. Improve type specifying on
2801 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2802 * Version 2.4.2 released:
2803 loop extension now supported on Allegro, all
2804 CLSQL-TESTS pass on Allegro.
2805 * sql/metaclasses.lisp: Some optimization
2806 of compute-slots, be selective when
2807 ordered-class-slots needs to be called
2808 instead of class-slots
2809 * TODO: add URL with documentation on
2810 extending Lispworks LOOP form
2812 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2813 * Version 2.4.1 released: CLSQL-TESt suite passes
2814 all tests for postgresql and CMUCL, SBCL, OpenMCL.
2815 Allegro and Lispworks pass all tests except for
2816 FDML/LOOP/1 since the loop extension have not yet
2817 been ported to those implementions.
2818 * sql/metaclasses.lisp: Added new slot to standard-db-class
2819 to hold user-specified type. OpenMCL adjustments to compensate
2820 for its type-predicate function. Since AllegroCL, Lispworks,
2821 and OpenMCL have different slot orders, added compute-slots
2822 and ordered-class-slots functions so their slot order matches
2825 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2826 * Version 2.4.0 released: All tests for clsql-classic now finish
2827 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
2828 mysql, postgresql, postgresql-sockets, and sqlite backends.
2829 * db-mysql/mysql-sql.lisp: Fix array dereferencing
2830 * classic-tests/tests.lisp: Fix package name of
2831 number-to-sql-string.
2832 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
2833 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
2834 now passes tests on all support UFFI platforms.
2835 * db-postgresql-socket/postgresql-socket-api.list: Ported to
2837 * multiple: Finish renaming of :types keyword to :result-types for
2838 greater CommonSQL compatibility, including documentation
2839 * sql/basic-cmds.lisp: Remove obsolete file
2841 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2842 * Version 2.3.3 released
2843 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
2844 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
2845 * Fix for schema table [Marcus Pearce]
2846 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
2847 * Fixes to test suite [Marcus Pearce]
2849 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2850 * db-*/*-sql.lisp: Ensure that expr in
2851 database-query-result-set is a string
2852 * Documentation integration
2854 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2855 * With for Marcus Pearce's excellent work, I've merged
2856 his clsql-usql port into clsql. The original clsql
2857 interface is available in the clsql-classic package.
2859 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2860 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
2861 adding further support for providing backend for UncommonSQL
2863 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
2864 * Integrate patch from Aurelio Bignoli for SQLite backend
2866 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
2867 * Converted documentation to XML format
2868 * Made package installable with asdf-install
2870 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
2871 * Add for-each-row macro
2873 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
2874 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
2876 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
2877 * Add support for SBCL, OpenMCL, and SCL
2878 * Add *load-truename* to search path for clsql's
2881 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2882 * Rework use of file types in .asd files
2884 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2885 * Add .asd definition files for ASDF users
2887 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2888 * Restructure directories for Common Lisp Controller v3 compatibility
2890 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2891 * Also change case of logical host in loader files
2892 * Rework handling of logical pathnames
2894 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2895 * Change case of logical host
2897 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2898 * clsql-base.system: Added base package that can be used without
2899 high-level SQL commands. Used for adding support for UncommonSQL.
2900 * *.system: Reworked logical pathnames to be more consistent with
2901 Common Lisp Controller.
2902 * debian/*: Completed initial Debian support
2904 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2906 * sql/transactions.cl:
2907 Added transaction support. Functions/macros added:
2908 with-transaction, commit-transaction, rollback-transaction,
2909 add-transaction-commit-hook, add-transaction-rollback-hook
2911 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2914 * sql/functional.cl:
2915 Added pool support in connect/disconnect and with-database.
2916 Removed with-db-from-pool as with-database can now works with the connections pool
2918 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2923 Completed connection pool.
2924 Added with-db-from-pool macro.
2926 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2928 Added initial support for connection pool
2929 * sql/transactions.cl
2930 Took transaction code from UncommonSQL and integrated
2931 into CLSQL code. See file for disclaimer about why this
2934 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2935 * interfaces/postgresql/postgresql-sql.cl:
2936 Fix keyword typo in database-read-large-object
2937 * interfaces/mysql/mysql-loader.cl
2938 Fix loading on Win32
2939 * test-suite/tester-clsql.cl
2940 Fix type coercion of double-float
2942 Added debian docbook catalog, made it the default
2944 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2945 * interface/postgresql/postgresql-api.cl:
2946 * interface/postgresql/postgresql-sql.cl:
2948 * sql/db-interface.cl:
2949 Added large objects support for postgresql.
2951 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2952 * src/postgresql-socket/postgresql-socket-api.cl:
2953 Fixed find-foreign-function call, eliminated crypt warning
2955 Multiple improvements
2957 Moved functionality from low-level interfaces to this file
2958 via generic functions
2959 * test-suite/tester.cl:
2960 Added test with acl-compat-tester, moved others to old-tests
2963 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2965 Reinstated commented out sections
2966 * interfaces/postgresql/postgresql-loader.cl:
2967 * interfaces/mysql/mysql-loader.cl:
2968 Updated find-forieign-library support.
2969 * interfaces/postgresql-socket/postgresql-socket-package.cl:
2970 Fixed require form for Lispworks (Thanks Marc Battyani!)
2971 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2972 Fixed eval of def-function for crypt library.
2974 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2975 * Added interface to support USQL high-level rouines
2977 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2978 * Separated db-interface and conditions from sql/sql.cl
2979 * Improved foreign library loading testing
2980 * interfaces/postgresql/postgresql-api.cl
2981 Added PQisBusy function
2982 * interfaces/clsql-uffi/clsql-uffi.cl
2983 Fixed sign error for 64-bit processing
2985 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2986 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2987 Fixes to read-double-from-socket. Added 64-bit integer support.
2988 * test-suite/xptest-clsql.cl
2989 Added testint for 64-bit integers
2990 * Additons to installation docs
2992 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2993 * interfaces/postgresql-socket/postgresql-socket-api.cl:
2994 Implemented direct socket reading for field type :double
2995 * Added usage information for :types to documentation
2996 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
2998 * interfaces/clsql-uffi: Created new directory. Split common
2999 interface routines that use UFFI into this package. Required
3000 especially to support direct reading of 64-bit integers into
3001 bignums and bypassing temporary strings.
3002 * test-clsql.cl: Updated to test postgresql-socket's
3003 read-double-from-socket function.
3004 * test-suite/xptest-clsql.cl
3005 Started work on test suite
3007 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3008 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
3009 mysql-fetch-field-direct Got :auto types working
3010 * interfaces/postgresql/postgresql-api.cl
3011 * interfaces/postgresql-socket/postgresql-socket-api.cl
3012 Added pgsql-field-types enum. Got :auto types working.
3014 Renamed :field-types to :types.
3016 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3017 * Added field-types parameter to query, database-query,
3018 database-query-result-set, map-query. Haven't added code
3019 to utilize field types, yet.
3020 * Changed postgresql-socket result set from cons to a structure
3021 * Updated test-clsql.cl to use automated testing with a config
3023 * Changed return types of field accessors from cstring to
3024 (* :unsigned-char). This prepares for being able to use specified
3025 type conversions when taking field data into lisp.
3026 * Added field-type processing for most interfaces. Not done yet.
3028 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
3029 * doc/ref.sgml: Updated MAP-QUERY example to use
3030 *read-default-float-format* (John Foderaro)
3031 * Extensive work to foreign library loaders and .system files to
3032 check for successful loading of foreign libraries.
3033 * Modified test-clsql.cl to allow more modularity and
3034 automated testing in future release.
3035 * mysql/mysql-sql.lisp: Added field types
3037 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
3038 * mysql/mysql-sql.lisp:
3039 - Added support for Allegro CL and Lispworks using UFFI layer
3040 - Changed database-connect to use mysql-real-connect. This way,
3041 can avoid using double (unwind-protect)
3042 - Changed database-connect to have MySQL library allocate space
3043 for MYSQL structure. This will make the code more robust in
3044 the event that MySQL library changes the size of the mysql-mysql