r9082: fix sequence, error-string
[clsql.git] / ChangeLog
1 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
2         * Version 2.7.9
3         * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
4         * db-sqlite/sqlite-api-uffi.lisp: Print error string
5         correctly.
6         
7 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
8         * Version 2.7.7
9         * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
10         from Eduardo Munoz.
11         
12 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
13         * Version 2.7.6
14         * base/objects.lisp, base/classes.lisp: Patch
15         for db-kind from Eduardo Munoz
16         
17 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
18         * Version 2.7.5
19         * base/basic-sql.lisp: Fix FLATP in QUERY
20
21 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
22         * Version 2.7.3: Implement RECONNECT
23
24 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
25         * Version 2.7.2: Fix ODBC on Lispworks Windows
26
27 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
28         * Version 2.7.1: Fix for new ODBC backend.
29         clsql-odbc now works on SBCL, CMUCL, OpenMCL
30         in addition to AllegroCL and Lispworks.
31
32 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
33         * Version 2.7.0: New backend: ODBC. Tests as
34         well as AODBC backend on Allegro,Lispworks.
35         SBCL and CMUCL don't work quite yet.  Requires UFFI v1.4.11+
36         * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
37         to explicitly set ODBC2 support. Add BIGINT support.
38         Add result-types support. Added SQLTables.
39         Fix array type in fetch-all-rows. Make width
40         changable by database or query.
41         * base/utils.lisp: Add process functions
42         * base/package.lisp: Export utils to CLSQL-BASE-SYS
43         * db-aodbc: Implement sequence functions,
44         database-list-tables, database-list-attributes
45         * tests/utils.lisp: Add support for ODBC backend,
46         rework READ-SPECS to use +all-db-types+
47         * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
48         for SEQUENCE-NEXT
49         
50 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
51         * Version 2.6.13. Requires UFFI version 1.4.9
52         * db-odbc/*.lisp: Further porting.
53         Pre-alpha code! But, basic query is now working.
54
55 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
56         * Version 2.6.12
57         * base/transactions.lisp: Add quote for macro
58         expansion of WITH-TRANSACTIONS [Time Howe]
59         * db-sqlite/sqlite-sql.lisp: Support memory database
60         in database-probe [Ng Pheng Siong]
61         * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
62         The DBI layer is not finished.
63         
64 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
65         * Version 2.6.11
66         * sql/objects.lisp: add :root-class functionality for
67         list-classes and add duration type support [Marcus Pearce]
68         * db-odbc: Add mid-level [DBI] layer
69
70 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
71         * Version 2.6.10
72         * db-aodbc: Add methods for generic functions, some are
73         not yet implemented.
74         * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
75         support
76
77 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
78         * Version 2.6.9
79         * base/package.lisp: Add missing symbols [Marcus Pearce]
80
81 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
82         * Version 2.6.8
83         * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
84         * utils/time.lisp: Multiple fixes [Marcus Pearce]
85         * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
86         
87 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
88         * Version 2.6.7
89         * sql/*.lisp: Remove schema versioning cruft
90         [Marcus Pearce]
91         * Makefile: Add classic subdirectory
92         
93 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
94         * Version 2.6.6
95         * sql/sql.lisp: Fix TRUNCATE command, bug reported
96         by Marcus Pearce
97         * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
98         specific and easy for an application to directly support.
99         Idea from Marcus Pearce.
100         * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level 
101         API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
102         Keep low-level interface for future optimization
103         supporting LIST-ATTRIBUTE-TYPES command.
104         * Makefile: Add to db-sqlite and test directories.
105         Include them in top-level Makefile
106         
107 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
108         * Version 2.6.5
109         * sql/relations.lisp: Add missing file
110         * utils/time.lisp: Fixes/extensions [Marcus Pearce]
111         * test/test-time.lips: New file [Marcus Pearce]
112         
113 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
114         * Version 2.6.4
115         * test/test-init.lisp: Properly handle object
116         creation. Close database after use.
117         * sql/sql.lisp: Make DESCRIBE-TABLE a generic
118         function so can have methods specialized on
119         table being a string or an sql-table object.
120         * base/pool.lisp: Really fix CMUCL locking
121         
122 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
123         * Version 2.6.3
124         * test/test-init.lisp: Signal correctly
125         if any errors occurred in any test suite
126         * base/loop-extensions.lisp: Fix error
127         introduced for Lispworks
128         * base/pool.lisp: Fix locking for CMUCL
129         * base/objects.lisp: Remove schema-version cruft
130         
131 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
132         * Version 2.6.2: New CLSQL API functions:
133         DESCRIBE-TABLE AND TRUNCATE-DATABASE
134         Currently, this are only supported on :postgresql
135         and :postgresql-socket
136         * base/database.lisp: automatically load ASDF system
137         in CONNECT if not already loaded
138         * base/tests.lisp: disconnect database after testing 
139         * base/*.lisp: Remove CLOSED-DATABASE type in favor
140         of storing open/closed status in slot of database
141         * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
142         * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
143         DATABASE-DESCRIBE-TABLE
144         * db-sqlite/sqlite-sql.lisp: Add missing slots in database
145         * base/conditions: Remove duplicate condition
146         * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
147         * base/recording.lisp: Add new :QUERY type for recording
148         
149 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
150         * Version 2.6.1: documentation fixes, merged
151         classic-tests into tests
152
153 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
154         * Version 2.6.0 released: New API functions
155         CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
156         * doc/ref_clsql.xml: Document new functions
157         * base/database.lisp: New API functions
158         * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
159         * base/utils.lisp: Fix use of position-char.
160         Add COMMAND-OUTPUT used by backends for running
161         external programs. Fix parsing of SQL*NET-compatible
162         connection-specs.
163         * base/loop-extension.lisp: Simplify package use
164         for Lispworks and Allegro
165         * db-*/*-sql.lisp: Added DATABASE-CREATE,
166         DATABASE-DESTORY, PROBE-DATABASE methods
167         * tests/test-init.lisp, clasic-tests/tests.lisp:
168         Use destroy-database and create-database to ensure 
169         testing with empty database
170         * tests/test-connection.lisp: Add tests for
171         parsing of string connection-specs
172         * examples/run-tests.sh: New file for running
173         test suite on all installed CL implementations
174         * examples/clsql-tutorial.lisp: moved from
175         doc directory
176         * examples/dot.clsql-tests.config: New file
177         giving an example test configuration
178         * test/README: Add notes about rtest/ptester
179         downloads and link to sample test configuration file.
180         
181 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
182         * Version 2.5.1 released:
183         * tests/*.lisp: Rework so tests are run
184         on multiple backends automatically based
185         on the contents of ~/.clsql-tests.config.
186         Reuse helper functions from classic-tests.
187         * base/database.lisp: Support connection-spec
188         as string for CONNECT
189         * classic-tests/tests.lisp: Automatically
190         load database backends as needed. 
191         
192 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
193         * Version 2.5.0 released:
194         All tests for CLSQL and CLSQL-CLASSIC pass
195         on all platforms.
196         * base/loop-extension.lisp: Add Lispworks
197         loop-extension. Improve type specifying on
198         other platforms.
199         
200 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
201         * Version 2.4.2 released:
202         loop extension now supported on Allegro, all
203         CLSQL-TESTS pass on Allegro.
204         * sql/metaclasses.lisp: Some optimization
205         of compute-slots, be selective when
206         ordered-class-slots needs to be called
207         instead of class-slots
208         * TODO: add URL with documentation on
209         extending Lispworks LOOP form
210         
211 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
212         * Version 2.4.1 released: CLSQL-TESt suite passes
213         all tests for postgresql and CMUCL, SBCL, OpenMCL.
214         Allegro and Lispworks pass all tests except for
215         FDML/LOOP/1 since the loop extension have not yet
216         been ported to those implementions.
217         * sql/metaclasses.lisp: Added new slot to standard-db-class
218         to hold user-specified type. OpenMCL adjustments to compensate
219         for its type-predicate function. Since AllegroCL, Lispworks,
220         and OpenMCL have different slot orders, added compute-slots
221         and ordered-class-slots functions so their slot order matches
222         SBCL/CMUCL.
223
224 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
225         * Version 2.4.0 released: All tests for clsql-classic now finish
226         correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
227         mysql, postgresql, postgresql-sockets, and sqlite backends.
228         * db-mysql/mysql-sql.lisp: Fix array dereferencing
229         * classic-tests/tests.lisp: Fix package name of
230         number-to-sql-string. 
231         * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
232         * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
233         now passes tests on all support UFFI platforms.
234         * db-postgresql-socket/postgresql-socket-api.list: Ported to 
235         SBCL and OpenMCL
236         * multiple: Finish renaming of :types keyword to :result-types for
237         greater CommonSQL compatibility, including documentation
238         * sql/basic-cmds.lisp: Remove obsolete file
239         
240 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
241         * Version 2.3.3 released
242         * Fixes for sequences on mysql and sqlite [Marcus Pearce]
243         * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
244         * Fix for schema table [Marcus Pearce]
245         * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
246         * Fixes to test suite [Marcus Pearce]
247
248 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
249         * db-*/*-sql.lisp: Ensure that expr in
250         database-query-result-set is a string
251         * Documentation integration
252         
253 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
254         * With for Marcus Pearce's excellent work, I've merged
255         his clsql-usql port into clsql. The original clsql
256         interface is available in the clsql-classic package.
257
258 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
259         * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
260         adding further support for providing backend for UncommonSQL
261
262 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
263         * Integrate patch from Aurelio Bignoli for SQLite backend
264
265 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
266         * Converted documentation to XML format
267         * Made package installable with asdf-install
268
269 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
270         * Add for-each-row macro
271
272 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
273         * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
274         
275 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
276         * Add support for SBCL, OpenMCL, and SCL
277         * Add *load-truename* to search path for clsql's
278         compiled libraries.
279
280 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
281         * Rework use of file types in .asd files
282
283 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
284         * Add .asd definition files for ASDF users
285
286 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
287         * Restructure directories for Common Lisp Controller v3 compatibility
288
289 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
290         * Also change case of logical host in loader files
291         * Rework handling of logical pathnames
292         
293 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
294         * Change case of logical host
295         
296 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
297         * clsql-base.system: Added base package that can be used without
298         high-level SQL commands. Used for adding support for UncommonSQL.
299         * *.system: Reworked logical pathnames to be more consistent with
300         Common Lisp Controller.
301         * debian/*: Completed initial Debian support
302         
303 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
304         * sql/classes.cl:
305         * sql/transactions.cl:
306         Added transaction support. Functions/macros added:
307         with-transaction, commit-transaction, rollback-transaction,
308         add-transaction-commit-hook, add-transaction-rollback-hook
309
310 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
311         * sql/sql.cl:
312         * sql/pool.cl:
313         * sql/functional.cl:
314         Added pool support in connect/disconnect and with-database.
315         Removed with-db-from-pool as with-database can now works with the connections pool
316
317 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
318         * sql/sql.cl:
319         * sql/pool.cl:
320         * sql/classes.cl:
321         * sql/package.cl:
322         Completed connection pool.
323         Added with-db-from-pool macro.
324         
325 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
326         * Multiple files:
327         Added initial support for connection pool
328         * sql/transactions.cl
329         Took transaction code from UncommonSQL and integrated
330         into CLSQL code. See file for disclaimer about why this
331         was added.
332
333 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
334         * interfaces/postgresql/postgresql-sql.cl:
335         Fix keyword typo in database-read-large-object
336         * interfaces/mysql/mysql-loader.cl
337         Fix loading on Win32
338         * test-suite/tester-clsql.cl
339         Fix type coercion of double-float
340         * doc/*
341         Added debian docbook catalog, made it the default
342         
343 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
344         * interface/postgresql/postgresql-api.cl:
345         * interface/postgresql/postgresql-sql.cl:
346         * sql/sql.cl:
347         * sql/db-interface.cl:
348         Added large objects support for postgresql.
349
350 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
351         * src/postgresql-socket/postgresql-socket-api.cl:
352         Fixed find-foreign-function call, eliminated crypt warning
353         * Makefiles:
354         Multiple improvements
355         * sql/usql.cl:
356         Moved functionality from low-level interfaces to this file
357         via generic functions
358         * test-suite/tester.cl:
359         Added test with acl-compat-tester, moved others to old-tests
360         directory.
361         
362 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
363         * src/usql.cl:
364         Reinstated commented out sections
365         * interfaces/postgresql/postgresql-loader.cl:
366         * interfaces/mysql/mysql-loader.cl:
367         Updated find-forieign-library support.
368         * interfaces/postgresql-socket/postgresql-socket-package.cl:
369         Fixed require form for Lispworks (Thanks Marc Battyani!)
370         * interfaces/postgresql-socket/postgresql-socket-api.cl:
371         Fixed eval of def-function for crypt library.
372                 
373 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
374         * Added interface to support USQL high-level rouines
375         
376 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
377         * Separated db-interface and conditions from sql/sql.cl
378         * Improved foreign library loading testing
379         * interfaces/postgresql/postgresql-api.cl
380         Added PQisBusy function
381         * interfaces/clsql-uffi/clsql-uffi.cl
382         Fixed sign error for 64-bit processing
383         
384 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
385         * interfaces/postgresql-socket/postgresql-socket-api.cl:
386         Fixes to read-double-from-socket. Added 64-bit integer support.
387         * test-suite/xptest-clsql.cl
388         Added testint for 64-bit integers
389         * Additons to installation docs
390         
391 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
392         * interfaces/postgresql-socket/postgresql-socket-api.cl:
393         Implemented direct socket reading for field type :double
394         * Added usage information for :types to documentation
395         * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
396         atol, atof calls
397         * interfaces/clsql-uffi: Created new directory. Split common
398         interface routines that use UFFI into this package. Required
399         especially to support direct reading of 64-bit integers into
400         bignums and bypassing temporary strings.
401         * test-clsql.cl: Updated to test postgresql-socket's
402         read-double-from-socket function.
403         * test-suite/xptest-clsql.cl
404         Started work on test suite
405
406 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
407         * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
408         mysql-fetch-field-direct Got :auto types working
409         * interfaces/postgresql/postgresql-api.cl
410         * interfaces/postgresql-socket/postgresql-socket-api.cl
411         Added pgsql-field-types enum. Got :auto types working.
412         * multiple-files
413         Renamed :field-types to :types.
414         
415 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
416         * Added field-types parameter to query, database-query,
417         database-query-result-set, map-query. Haven't added code
418         to utilize field types, yet.
419         * Changed postgresql-socket result set from cons to a structure
420         * Updated test-clsql.cl to use automated testing with a config
421         file
422         * Changed return types of field accessors from cstring to
423         (* :unsigned-char).  This prepares for being able to use specified
424         type conversions when taking field data into lisp.
425         * Added field-type processing for most interfaces. Not done yet.
426         
427 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
428         * doc/ref.sgml: Updated MAP-QUERY example to use
429         *read-default-float-format* (John Foderaro)
430         * Extensive work to foreign library loaders and .system files to
431         check for successful loading of foreign libraries.
432         * Modified test-clsql.cl to allow more modularity and
433         automated testing in future release.
434         * mysql/mysql-sql.lisp: Added field types
435         
436 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
437         * mysql/mysql-sql.lisp:
438         - Added support for Allegro CL and Lispworks using UFFI layer
439         - Changed database-connect to use mysql-real-connect. This way,
440           can avoid using double (unwind-protect)
441         - Changed database-connect to have MySQL library allocate space
442           for MYSQL structure. This will make the code more robust in
443           the event that MySQL library changes the size of the mysql-mysql
444           structure.
445
446