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