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