1 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
2 * sql/db-interface.lisp: Add more default methods
3 * sql/objects.lisp: Add explicit table name to order-by parameters
4 in find-all when only one table to avoid selecting a duplicate row.
5 Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
6 as previous logic was adding two fields (foo asc) to SELECT query.
7 Make :result-types :auto be the default for object selections.
8 * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
10 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
11 * sql/recording.lisp: reworked docstrings.
12 * sql/syntax.lisp: reworked docstrings.
13 * doc/TODO: added notes about extensions to SQL-RECORDING-P and the
14 SQL syntax state functions being macros.
16 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
17 * sql/package.lisp: Export initialize-database-type and
18 *initialize-database-types* from CLSQL package.
19 * sql/conditions.lisp: Add new CommonSQL compatible conditions,
20 remove old CLSQL conditions.
21 * sql/loop-extensions.lisp: Make errors of type sql-user-error
22 * */*.lisp: Convert to from old to new conditions
24 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
25 * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
26 To handle this difference, will need to add a new database-drop-table
28 * db-oracle/oracle-sql.lisp: Move server-version and
29 major-version-number to database object to allow multiple connections
30 to Oracle servers of different versions.
32 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
33 * TODO: moved notes about backends to doc/TODO.
34 * doc/TODO: added notes about backends and select extensions.
35 * sql/base-classes.lisp: remove obsolete schema slot in database
38 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
39 * db-oracle/oracle-api: Add OCIServerVersion
40 * db-oracle/oracle-sql: Query and store server version on connect
41 * sql/db-interface.lisp: Add new db-type-has-bigint? generic
42 function to handle OCI's lack of bigint support
43 * test/test-basic.lisp: Separate bigint testing
44 * test/test-utils.lisp: Add oracle to specs and list of backends
46 * test/test-fdml.lisp: Added FDML/SELECT/34 to test
47 run-time instantiation of variables in reader macros.
48 * TODO: Remove item already complete. Add note about
51 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
52 * sql/syntax.lisp: added condition to the reader macro to treat [*]
53 as a column identifier (rather than an operation) for CommonSQL
55 * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION
56 keword args to SELECT, [*] as column identifier, new MAP-QUERY
57 behaviour and the ANY and ALL operators in subqueries.
58 * tests/test-init.lisp: add set-operation and subquery tests to
59 appropriate skip lists.
60 * sql/objects.lisp: remove redundant and non CommonSQL compatible
61 ORDER-BY-DESCENDING keyword argument for SELECT.
62 * sql/classes.lisp: remove redundant and non CommonSQL compatible
63 ORDER-BY-DESCENDING keyword argument for SELECT.
64 * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT
67 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
68 * sql/db-interface.lisp: Add new db-type-has-union?
69 since Mysql 3.23 does not support unions.
70 * sql/test-init.lisp: Don't try union tests on database
71 backends which do not support it.
72 * db-oracle/*.lisp: initial port to UFFI
73 * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
74 implement REFRESH for SELECT.
75 * tests/test-oodml.lisp: Add tests for deferred retrieval,
76 caching, refresh, and update-object-joins
77 * tests/test-init.lisp: Add deferred-employee-address class
79 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
80 * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add
81 COALESCE operator and make NVL a synonym for this. Make ANY, SOME,
82 ALL and EXISTS generate function expressions so they output the
84 * sql/classes.lisp: SELECT now generates appropriate SQL when
85 passed the SET-OPERATION and ALL keyword arguments.
86 * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now
87 accepts ordering constraints as pairs of the form (column direction)
88 where direction may be :ASC or :DESC.
89 * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL.
90 Correct tests for ANY, SOME, ALL and EXISTS.
91 * tests/test-fdml.lisp: added test for COALESCE.
92 * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION
93 using funcall unless QUERY-EXPRESSION returns one column and its
94 FLATP slot is not nil in which case apply is used.
95 * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the
97 * TODO: remove items done.
98 * db-postgresql/postgresql-sql.lisp: no need to reverse results in
99 DATABASE-LIST-ATTRIBUTES.
100 * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
101 results in DATABASE-LIST-ATTRIBUTES.
103 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
104 * sql/classes.lisp: SELECT now accepts table identifiers as strings
105 for CommonSQL compliance. Add support for qualified sql identifiers
106 with aliased table names.
107 * tests/test-fdml.lisp: added tests for table identifiers as strings
108 in SELECT and for aliased definitions.
109 * tests/test-syntax.lisp: added tests for alias definitions.
111 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
112 * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and
113 field-names set to nil.
114 * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly
115 with null attribute values.
116 * sql/operations.lisp: modify SQL concatenation operator to accept
118 * sql/syntax.lisp: modify sql reader macro function to accept
119 unescaped sql concatenation operator.
120 * tests/test-fdml.lisp: unescape sql concatenation operator.
121 * tests/test-syntax.lisp: unescape sql concatenation operator.
122 * TODO: remove items done. Add notes about SQLITE/MYSQL backends.
123 Note to add test for universal-time. Note about difference from
124 CommonSQL in transaction handling.
126 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
127 * tests/test-init.lisp: Add deferred-employee-address
129 * tests/test-oodml.lisp: Add deferred retrieval testgs
131 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
133 * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
134 * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
135 * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
136 * *: Fix minor style warnings
137 * clsql-classic: Remove system and subdirectory
138 * clsql-base: Remove system and subdirectory and
139 fold into clsql system
140 * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
141 as supported platform.
143 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
144 * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
145 * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
146 Allegro 7.0beta AMD64
147 * db-odbc/*.lisp: Add a layer of indirection to foreign-type
148 of ODBC longs since this type can vary on 64-bit platforms depending
149 upon the compilation options of unixODBC.
150 * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
151 structures found by testing with AllegroCL 7.0b AMD64.
152 * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
153 * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
154 Initial caching support for SELECT
155 * tests/test-oodml.lisp: Avoid using cache when testing select.
156 * sql/kmr-mop.lisp: Explicitly check slot order and
157 store as a cl:*feature*
158 * sql/recording.lisp: Remove additional types to
159 increase CommonSQL conformance.
160 * tests/test-init.lisp: Change a :column attribute
161 to test symbols as value
162 * sql/relations.lisp: Remove functions since they don't support
163 many to many relationships.
164 * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
165 of add-to-relations function and replace with explicit field settings.
166 * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
168 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
170 * LATEST-TEST-RESULTS: results with current version
171 * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
172 since cmu19 has opposite order of class slots.
173 * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
174 * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
176 * tests/test-init.lisp: Check test-database-underlying-type for
179 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
180 * sql/operations.lisp: complete remaining operations for the sql
181 syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT,
182 UNION, INTERSECT, BETWEEN.
183 * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION,
184 SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION.
185 * tests/test-syntax.lisp: add tests for new operations.
186 * tests/test-fdml.lisp: add tests for queries based on new operations.
187 * tests/test-init.lisp: add select/20 to tests skipped for sqlite and
188 select/20, query/5, query/7 and query/8 to tests skipped by mysql.
189 * TODO: removed entries done.
191 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
192 * tests/benchmarks.lisp: Add immediate vs. deferred
195 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
196 * Version 2.10.13: Now works on openmcl 0.14.2
197 * sql/objects.lisp: Add :retrieval :immediate for
199 * tests/test-init.lisp: Add non-index fields for testing
200 join class employee-addresss
201 * test/test-oodml.lisp: Add tests for retrieval immediate
202 * sql/metaclasses.lisp: Handle differences in direct-slot-definition
203 values which are now listifed by openmcl 14.2.
204 * sql/objects.lisp: more framework for supporing immediate retrieval
206 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
207 * docs/intro.xml: Upload location of a README file
208 * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
209 changing the type-specifier. Use a lisp type of (OR NULL FOO)
210 for a specified-type of FOO unless :db-constraints :not-null.
211 No need to specialize finalize-inheritance for openmcl.
212 * tests/test-*.lisp: Rename fields so that joins occur on
213 fields with different names. This ensures that join code is
214 selecting the proper name.
215 * test/test-init.lisp: Add :base-table for employee-address
216 view class for testing.
217 * sql/objects.lisp: Use view-table rather than name of table
218 in a number of places to fix errors noted with using :base-table.
220 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
221 * sql/objects.lisp: replace *update-records-on-make-instance* with
222 *db-auto-sync* which also controls both automatic creation of
223 new records on creation of new instance and updating of record
224 fields on setting of instance slots (as suggested by Edi Weitz).
225 * tests/test-init.lisp: replace *update-records-on-make-instance*
227 * sql/package.lisp: replace *update-records-on-make-instance*
229 * TODO: replace *update-records-on-make-instance* with *db-auto-sync*.
230 * sql/objects.lisp: remove redundant rebindings of *db-initializing*
231 and *default-database* in FIND-ALL.
232 * sql/package.lisp: import time functions from CLSQL-BASE.
233 * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL.
234 * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL.
235 * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL.
236 * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with
239 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
240 * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
241 now return a sql-object-query type rather than directly performing a query.
242 This improves CommonSQL conformance.
243 * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
244 from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
245 depend on sql-object-query-type.
246 * sql/loop-extensions.lisp: Move from base package
247 * classic/package.lisp: remove references to map-query and do-query
249 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
250 * TODO: New section on optimizations, especially optimizing JOINs.
251 * sql/objects.lisp: Have :target-slot return of list of lists rather
252 than a list of cons pairs to be conformant with CommonSQL.
253 Make :target-slot much more efficient by using a SQL inner join
254 statement and just requiring one SQL query. Add :retrieval :deferrred
255 to target-slot joins. Add placeholder for update-objects-join.
256 * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
257 and process them for query output-sql.
259 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
261 * base/basic-sql.lisp: Avoid multiple evaluation
262 of query-expression in DO-QUERY
263 * sql/objects.lisp: Make SELECT a normal function.
264 SELECT now accepts type-modified database identifiers, such as
265 [foo :string] which means that the values in column foo are returned
266 as Lisp strings. Add new *update-records-on-make-instance* special
267 variable controlling automatic creation of new instances. Add missing
268 RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
269 * sql/packages.lisp: Export *update-records-on-make-instance*
270 * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
272 * test/test-fdml.lisp: Add tests for type-modified
273 database identifiers.
274 * test/test-init.lisp: Stop using add-relation since implementing
275 many-to-many joins. Use *update-records-on-make-instance*
276 to automatically store records on instance creation. Add many-to-many
277 employee-address view-class.
279 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
281 * base/loop.lisp: Add object iteration. Use :result-type
282 :auto for result-set. Remove
283 duplicate (and non-correct) code for non-list variables by
284 simply making an atom variable into a list.
285 * sql/package.lisp: Remove unnecessary clsql-sys package
286 and replace it with clsql.
287 * sql/metaclasses.lisp: Properly store specified-type from
288 direct-slot-definition and then store translated type in
289 effective-slot-definition
290 * sql/classes.lisp: Don't output type in sql-output
291 for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
292 [foo :integer] as fields in SELECT.
293 * sql/query.lisp: Set default for :result-types to :auto in
295 * sql/objects.lisp: Use specified-type when invocating
296 database-get-type-specifier. def-view-class macro now returns
298 * base/basic-sql.lisp: Make :AUTO the default value for
299 :RESULT-TYPES for MAP-QUERY and DO-QUERY.
300 * sql/objects.lisp: Add bigint type
301 * test/tests-basic.lisp: Add tests for :result-types for
302 MAP-QUERY and DO-QUERY
303 * test/test-fdml.lisp: Add test for result-types in LOOP
304 and also using single symbol rather than a list for variables.
305 Add test that default :result-types is auto for FDML QUERY.
306 * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
307 of SQL-IDENT-ATTRIBUTE.
308 * test/test-oodml.lisp: Enable OO loop iteration test,
309 modify it so it doesn't depend on boolean where.
311 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
313 * sql/objects.lisp: added derived type specifier for universal time.
314 * sql/package.lisp: added #:universal-time to clsql-sys exports.
315 * tests/test-oodml.lisp: added test for translation of boolean slots
316 in SELECT with object queries.
318 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
319 * db-odbc/odbc-api.lisp: Fix changing nil to "NIL"
320 for odbc/postgresql backend.
321 * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
322 it can handle NIL values from the ODBC driver
323 * tests/benchmarks.lisp: New file with initial
325 * sql/relations.lisp: fix to add subclassing support,
326 minor optimizations [Edi Weitz]
328 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
330 * base/conditions.lisp: Add *backend-warning-behavior*
332 * db-postgresql-socket/postgresql-socket-sql.lisp:
333 Honor value of *backend-warning-behavior*
334 * tests/test-fdml.lisp: Remove test of raw boolean value
335 since different backends handle this differently. Add
336 test for :column attribute.
337 * tests/test-oodml.lisp: Add tests for boolean slot value
338 and for :void-value attribute
339 * tests/test-init.lisp: Use *backend-warning-behavior*
340 to suppress warnings from postgresql about implicitly
341 creating primary key in tables. Add new address table.
343 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
345 * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
346 result-types is :auto
347 * sql/objects.lisp: Properly handled writing/reading Boolean
348 values from SQL database when retrieving objects.
349 * test/test-fdml.lisp: Add another test for boolean results
350 * test/utils.lisp: Fix incorrect declaration
352 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
354 * sql/generics.lisp: add generic function for SELECT.
355 * sql/objects.lisp: make SELECT a method specialisation.
356 * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections
357 referred to are View Classes.
358 * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the
359 query-expression arg evaluates to a list, then we have an object
361 * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with
363 * TODO: remove items done and add a todo for SELECT.
364 * sql/objects.lisp: SELECT takes a :field-names arg to pass on to
366 * sql/sql.lisp: add :field-names arg to QUERY.
367 * tests/test-fdml.lisp: minor rework to use :field-names arg to
370 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
371 * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2
372 or more View Classes.
373 * sql/objects.lisp: make the :flatp argument to SELECT work with
375 * sql/objects.lisp: make SELECT accept a :result-types argument
376 (defaults to :auto) which is passed on to QUERY.
377 * sql/objects.lisp: SELECT returns field-names as a second value.
378 * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate.
379 * tests/test-fdml.lisp: add flatp/result-types arguments to calls
380 to SELECT and take only first value as appropriate.
381 * tests/test-fdml.lisp: add two new tests for query result coercion
382 and the field-names returned as a second value from SELECT.
383 * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate.
385 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
386 * Version 2.10.6-pre1
387 * sql/metaclasses.lisp: Add void-value slot
388 * doc/csql.xml: Update def-view-class documentation
389 * test/test-init.lisp: Change old :db-type to :db-kind.
390 Remove old :nulls-ok attributes.
391 * sql/objects.lisp: Add new universal-time and bigint
392 types. Optimize reading of integers using parse-integer
393 rather than read-from-string.
394 * */*.lisp: Merge clsql-base-sys and clsql-base packages
395 into clsql-base package
396 * classic/sql.lisp: Move large object support into base, leaving
397 classic without any functionality that is provided in the clsql
399 * classic/package.lisp: Rename clsql-classic-sys package to
400 its former nickname of clsql-classic
402 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
403 * Version 2.10.5: SQLite backend now passes all result-types tests
404 * clsql-sqlite.asd: Depend on clsql-uffi system
405 * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
406 for efficiency and code reuse.
407 * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
408 for better cross-implementation compatibility.
410 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
412 * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
414 * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
415 bug on SBCL in result-field-names function as reported by Marcus Pearce
416 * db-sqlite/sqlite-sql.lisp: Fix in database-store-next-row
417 manifest in SBCL testing
419 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
421 * sql/database.lisp: Conform more to CommonSQL output
422 for STATUS command [Marcus Pearce]
423 * sql/sqlite-sql.lisp: Rework to use result-types
424 * sql/sqlite-api-clisp.lisp: Add compatibility layer
425 with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
426 be cleaned up of most clisp reader conditionals
427 * sql/test-init.lisp: Now run field type tests on sqlite
430 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
432 * base/basic-sql.lisp: Set default value of :result-types
433 to :auto for more CommonSQL conformance.
434 * test/test-fdml.lisp: Add tests for numeric value of fields
437 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
438 * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
439 * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
440 Return field names as second value for QUERY. This can be overridden
441 for efficiency with the new keyword :FIELD-NAMES set to NIL
442 in the QUERY invocation.
443 * test/test-fdml.lisp: Add tests for new field-name feature
444 * sql/metaclass.lisp: Remove old Lispworks cruft
445 and replace it with invocation of new code in kmr-mop.lisp
446 which actually works with Lispworks 4.2
447 * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
449 * base/db-interface.lisp: Document the multiple values
450 returned by DATABASE-ATTRIBUTE-TYPE so matches the
451 undocumented CommonSQL behavior.
452 * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
453 *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
454 LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
455 Implement CACHE-TABLE-QUERIES.
456 * db-odbc/odbc-sql.lisp: Fix attribute-type function
457 * test/test-fddl.lisp: Add tests for attribute type
458 * db-mysql/mysql-sql.lisp: Mild optimization in accessing
460 * base/classes.lisp: Add attribute-cache slot to database clas
461 * base/initialize.lisp: initialize-database-type now automatically
462 loads database-type backend as needed.
463 * base/test-init.lisp: Utilize new initialize-database-type functionality.
464 * TODO: remove items done
466 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
468 * sql/objects.lisp: remove create/drop-sequence-from-class.
469 * sql/objects.lisp: add INSTANCE-REFRESHED generic function.
470 * sql/objects.lisp: improved CommonSQL compatibility for
471 UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
472 UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS.
473 * sql/generics.lisp: move generics from objects.lisp to here.
475 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
477 * db-mysql/mysql-client-info.lisp: Add client version 4.1
479 * sql/sql.lisp: Make *default-database* the default for
482 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
484 * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
486 * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying
487 :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes
488 on a metaclass specialized from standard-db-class.
491 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
492 * Version 2.9.4: Multiple changes to support Allegro's "modern"
493 lisp which uses a lowercase reader and has case-sensitive symbols
494 * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
495 exposed by case-sensitive mlisp.
497 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
498 * Version 2.9.3: All tests now pass on all platforms!
499 * LATEST-TEST-RESULTS: New file with summary of test results
500 * sql/generics.lisp: New file for generic function definitions.
501 * test/test-init.lisp: Display names of skipped tests.
502 Use unwind-protect to ensure disconnect
503 * sql/objects.lisp: Change database-type to database-underlying-type
504 so that actual database engine is properly identified
505 * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
506 return an ISO timestring for compatibility with other drivers.
507 Workaround bug in MyODBC for LIST-TABLE-INDEXES
508 * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
509 returns floating-point values for floor and truncate operations
510 * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
511 * tests/test-basic.lisp: Port to regression tester
512 * test/test-init.lisp: Output to *report-stream*
513 * docs/appendix.xml: Document ODBC and SQLite backends.
514 * sql/classes.lisp: Make output-sql require a database parameter.
515 This allows SQL generation to have the proper case to support
516 the differences in case handling between CommonSQL API,
517 Postgresql, MySQL, Oracle.
519 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
520 * Version 2.9.2: Improvments in database capability introspection
521 and querying. Support transactions in MySQL where available.
522 All tests now pass on MySQL and SQLite in addition to postgresql
523 and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
524 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
525 DATABASE-LIST-SEQUENCES.
526 * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
527 * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
528 HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
529 * tests/*.lisp: Check database capabilities and remove tests which
530 the database backend does not support
531 * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
532 controls whether InnoDB tables will be created when supported on
533 the underlying MySQL server.
535 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
536 * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
537 supported by all database backends (except AODBC since
538 AODBC doesn't support index querying)
539 * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
540 * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
541 to support index queries
542 * db-aodbc/aodbc-sql.lisp: Filter driver manager
543 "information_schema" tables from LIST-TABLES
544 * tests/test-basic.lisp: Remove table after testing
545 * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
546 * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
547 which gets the underlying type of database -- required
548 when dealing with ODBC databases and want to query
549 database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
550 as first database-backend specific feature. Is T on
551 :mysql, NIL on other backends. Change DROP-TABLE to
554 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
555 * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
557 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
559 * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function
560 * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function
562 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
563 * Version 2.8.0: New API function: LIST-DATABASES
564 * base/utils.lisp: Fix command-output on CMUCL/SBCL
565 * db-*/*-sql.lisp: Add new database-list function
566 * base/database.lisp: Add new LIST-DATABASES command
568 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
570 * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
571 * db-sqlite/sqlite-api-uffi.lisp: Print error string
574 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
576 * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
579 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
581 * base/objects.lisp, base/classes.lisp: Patch
582 for db-kind from Eduardo Munoz
584 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
586 * base/basic-sql.lisp: Fix FLATP in QUERY
588 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
589 * Version 2.7.3: Implement RECONNECT
591 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
592 * Version 2.7.2: Fix ODBC on Lispworks Windows
594 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
595 * Version 2.7.1: Fix for new ODBC backend.
596 clsql-odbc now works on SBCL, CMUCL, OpenMCL
597 in addition to AllegroCL and Lispworks.
599 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
600 * Version 2.7.0: New backend: ODBC. Tests as
601 well as AODBC backend on Allegro,Lispworks.
602 SBCL and CMUCL don't work quite yet. Requires UFFI v1.4.11+
603 * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
604 to explicitly set ODBC2 support. Add BIGINT support.
605 Add result-types support. Added SQLTables.
606 Fix array type in fetch-all-rows. Make width
607 changable by database or query.
608 * base/utils.lisp: Add process functions
609 * base/package.lisp: Export utils to CLSQL-BASE-SYS
610 * db-aodbc: Implement sequence functions,
611 database-list-tables, database-list-attributes
612 * tests/utils.lisp: Add support for ODBC backend,
613 rework READ-SPECS to use +all-db-types+
614 * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
617 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
618 * Version 2.6.13. Requires UFFI version 1.4.9
619 * db-odbc/*.lisp: Further porting.
620 Pre-alpha code! But, basic query is now working.
622 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
624 * base/transactions.lisp: Add quote for macro
625 expansion of WITH-TRANSACTIONS [Time Howe]
626 * db-sqlite/sqlite-sql.lisp: Support memory database
627 in database-probe [Ng Pheng Siong]
628 * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
629 The DBI layer is not finished.
631 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
633 * sql/objects.lisp: add :root-class functionality for
634 list-classes and add duration type support [Marcus Pearce]
635 * db-odbc: Add mid-level [DBI] layer
637 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
639 * db-aodbc: Add methods for generic functions, some are
641 * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
644 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
646 * base/package.lisp: Add missing symbols [Marcus Pearce]
648 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
650 * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
651 * utils/time.lisp: Multiple fixes [Marcus Pearce]
652 * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
654 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
656 * sql/*.lisp: Remove schema versioning cruft
658 * Makefile: Add classic subdirectory
660 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
662 * sql/sql.lisp: Fix TRUNCATE command, bug reported
664 * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
665 specific and easy for an application to directly support.
666 Idea from Marcus Pearce.
667 * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level
668 API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
669 Keep low-level interface for future optimization
670 supporting LIST-ATTRIBUTE-TYPES command.
671 * Makefile: Add to db-sqlite and test directories.
672 Include them in top-level Makefile
674 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
676 * sql/relations.lisp: Add missing file
677 * utils/time.lisp: Fixes/extensions [Marcus Pearce]
678 * test/test-time.lips: New file [Marcus Pearce]
680 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
682 * test/test-init.lisp: Properly handle object
683 creation. Close database after use.
684 * sql/sql.lisp: Make DESCRIBE-TABLE a generic
685 function so can have methods specialized on
686 table being a string or an sql-table object.
687 * base/pool.lisp: Really fix CMUCL locking
689 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
691 * test/test-init.lisp: Signal correctly
692 if any errors occurred in any test suite
693 * base/loop-extensions.lisp: Fix error
694 introduced for Lispworks
695 * base/pool.lisp: Fix locking for CMUCL
696 * base/objects.lisp: Remove schema-version cruft
698 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
699 * Version 2.6.2: New CLSQL API functions:
700 DESCRIBE-TABLE AND TRUNCATE-DATABASE
701 Currently, this are only supported on :postgresql
702 and :postgresql-socket
703 * base/database.lisp: automatically load ASDF system
704 in CONNECT if not already loaded
705 * base/tests.lisp: disconnect database after testing
706 * base/*.lisp: Remove CLOSED-DATABASE type in favor
707 of storing open/closed status in slot of database
708 * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
709 * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
710 DATABASE-DESCRIBE-TABLE
711 * db-sqlite/sqlite-sql.lisp: Add missing slots in database
712 * base/conditions: Remove duplicate condition
713 * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
714 * base/recording.lisp: Add new :QUERY type for recording
716 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
717 * Version 2.6.1: documentation fixes, merged
718 classic-tests into tests
720 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
721 * Version 2.6.0 released: New API functions
722 CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
723 * doc/ref_clsql.xml: Document new functions
724 * base/database.lisp: New API functions
725 * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
726 * base/utils.lisp: Fix use of position-char.
727 Add COMMAND-OUTPUT used by backends for running
728 external programs. Fix parsing of SQL*NET-compatible
730 * base/loop-extension.lisp: Simplify package use
731 for Lispworks and Allegro
732 * db-*/*-sql.lisp: Added DATABASE-CREATE,
733 DATABASE-DESTORY, PROBE-DATABASE methods
734 * tests/test-init.lisp, clasic-tests/tests.lisp:
735 Use destroy-database and create-database to ensure
736 testing with empty database
737 * tests/test-connection.lisp: Add tests for
738 parsing of string connection-specs
739 * examples/run-tests.sh: New file for running
740 test suite on all installed CL implementations
741 * examples/clsql-tutorial.lisp: moved from
743 * examples/dot.clsql-tests.config: New file
744 giving an example test configuration
745 * test/README: Add notes about rtest/ptester
746 downloads and link to sample test configuration file.
748 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
749 * Version 2.5.1 released:
750 * tests/*.lisp: Rework so tests are run
751 on multiple backends automatically based
752 on the contents of ~/.clsql-tests.config.
753 Reuse helper functions from classic-tests.
754 * base/database.lisp: Support connection-spec
755 as string for CONNECT
756 * classic-tests/tests.lisp: Automatically
757 load database backends as needed.
759 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
760 * Version 2.5.0 released:
761 All tests for CLSQL and CLSQL-CLASSIC pass
763 * base/loop-extension.lisp: Add Lispworks
764 loop-extension. Improve type specifying on
767 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
768 * Version 2.4.2 released:
769 loop extension now supported on Allegro, all
770 CLSQL-TESTS pass on Allegro.
771 * sql/metaclasses.lisp: Some optimization
772 of compute-slots, be selective when
773 ordered-class-slots needs to be called
774 instead of class-slots
775 * TODO: add URL with documentation on
776 extending Lispworks LOOP form
778 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
779 * Version 2.4.1 released: CLSQL-TESt suite passes
780 all tests for postgresql and CMUCL, SBCL, OpenMCL.
781 Allegro and Lispworks pass all tests except for
782 FDML/LOOP/1 since the loop extension have not yet
783 been ported to those implementions.
784 * sql/metaclasses.lisp: Added new slot to standard-db-class
785 to hold user-specified type. OpenMCL adjustments to compensate
786 for its type-predicate function. Since AllegroCL, Lispworks,
787 and OpenMCL have different slot orders, added compute-slots
788 and ordered-class-slots functions so their slot order matches
791 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
792 * Version 2.4.0 released: All tests for clsql-classic now finish
793 correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
794 mysql, postgresql, postgresql-sockets, and sqlite backends.
795 * db-mysql/mysql-sql.lisp: Fix array dereferencing
796 * classic-tests/tests.lisp: Fix package name of
797 number-to-sql-string.
798 * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
799 * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
800 now passes tests on all support UFFI platforms.
801 * db-postgresql-socket/postgresql-socket-api.list: Ported to
803 * multiple: Finish renaming of :types keyword to :result-types for
804 greater CommonSQL compatibility, including documentation
805 * sql/basic-cmds.lisp: Remove obsolete file
807 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
808 * Version 2.3.3 released
809 * Fixes for sequences on mysql and sqlite [Marcus Pearce]
810 * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
811 * Fix for schema table [Marcus Pearce]
812 * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
813 * Fixes to test suite [Marcus Pearce]
815 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
816 * db-*/*-sql.lisp: Ensure that expr in
817 database-query-result-set is a string
818 * Documentation integration
820 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
821 * With for Marcus Pearce's excellent work, I've merged
822 his clsql-usql port into clsql. The original clsql
823 interface is available in the clsql-classic package.
825 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
826 * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
827 adding further support for providing backend for UncommonSQL
829 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
830 * Integrate patch from Aurelio Bignoli for SQLite backend
832 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
833 * Converted documentation to XML format
834 * Made package installable with asdf-install
836 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
837 * Add for-each-row macro
839 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
840 * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
842 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
843 * Add support for SBCL, OpenMCL, and SCL
844 * Add *load-truename* to search path for clsql's
847 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
848 * Rework use of file types in .asd files
850 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
851 * Add .asd definition files for ASDF users
853 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
854 * Restructure directories for Common Lisp Controller v3 compatibility
856 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
857 * Also change case of logical host in loader files
858 * Rework handling of logical pathnames
860 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
861 * Change case of logical host
863 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
864 * clsql-base.system: Added base package that can be used without
865 high-level SQL commands. Used for adding support for UncommonSQL.
866 * *.system: Reworked logical pathnames to be more consistent with
867 Common Lisp Controller.
868 * debian/*: Completed initial Debian support
870 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
872 * sql/transactions.cl:
873 Added transaction support. Functions/macros added:
874 with-transaction, commit-transaction, rollback-transaction,
875 add-transaction-commit-hook, add-transaction-rollback-hook
877 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
881 Added pool support in connect/disconnect and with-database.
882 Removed with-db-from-pool as with-database can now works with the connections pool
884 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
889 Completed connection pool.
890 Added with-db-from-pool macro.
892 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
894 Added initial support for connection pool
895 * sql/transactions.cl
896 Took transaction code from UncommonSQL and integrated
897 into CLSQL code. See file for disclaimer about why this
900 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
901 * interfaces/postgresql/postgresql-sql.cl:
902 Fix keyword typo in database-read-large-object
903 * interfaces/mysql/mysql-loader.cl
905 * test-suite/tester-clsql.cl
906 Fix type coercion of double-float
908 Added debian docbook catalog, made it the default
910 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
911 * interface/postgresql/postgresql-api.cl:
912 * interface/postgresql/postgresql-sql.cl:
914 * sql/db-interface.cl:
915 Added large objects support for postgresql.
917 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
918 * src/postgresql-socket/postgresql-socket-api.cl:
919 Fixed find-foreign-function call, eliminated crypt warning
921 Multiple improvements
923 Moved functionality from low-level interfaces to this file
924 via generic functions
925 * test-suite/tester.cl:
926 Added test with acl-compat-tester, moved others to old-tests
929 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
931 Reinstated commented out sections
932 * interfaces/postgresql/postgresql-loader.cl:
933 * interfaces/mysql/mysql-loader.cl:
934 Updated find-forieign-library support.
935 * interfaces/postgresql-socket/postgresql-socket-package.cl:
936 Fixed require form for Lispworks (Thanks Marc Battyani!)
937 * interfaces/postgresql-socket/postgresql-socket-api.cl:
938 Fixed eval of def-function for crypt library.
940 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
941 * Added interface to support USQL high-level rouines
943 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
944 * Separated db-interface and conditions from sql/sql.cl
945 * Improved foreign library loading testing
946 * interfaces/postgresql/postgresql-api.cl
947 Added PQisBusy function
948 * interfaces/clsql-uffi/clsql-uffi.cl
949 Fixed sign error for 64-bit processing
951 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
952 * interfaces/postgresql-socket/postgresql-socket-api.cl:
953 Fixes to read-double-from-socket. Added 64-bit integer support.
954 * test-suite/xptest-clsql.cl
955 Added testint for 64-bit integers
956 * Additons to installation docs
958 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
959 * interfaces/postgresql-socket/postgresql-socket-api.cl:
960 Implemented direct socket reading for field type :double
961 * Added usage information for :types to documentation
962 * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
964 * interfaces/clsql-uffi: Created new directory. Split common
965 interface routines that use UFFI into this package. Required
966 especially to support direct reading of 64-bit integers into
967 bignums and bypassing temporary strings.
968 * test-clsql.cl: Updated to test postgresql-socket's
969 read-double-from-socket function.
970 * test-suite/xptest-clsql.cl
971 Started work on test suite
973 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
974 * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
975 mysql-fetch-field-direct Got :auto types working
976 * interfaces/postgresql/postgresql-api.cl
977 * interfaces/postgresql-socket/postgresql-socket-api.cl
978 Added pgsql-field-types enum. Got :auto types working.
980 Renamed :field-types to :types.
982 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
983 * Added field-types parameter to query, database-query,
984 database-query-result-set, map-query. Haven't added code
985 to utilize field types, yet.
986 * Changed postgresql-socket result set from cons to a structure
987 * Updated test-clsql.cl to use automated testing with a config
989 * Changed return types of field accessors from cstring to
990 (* :unsigned-char). This prepares for being able to use specified
991 type conversions when taking field data into lisp.
992 * Added field-type processing for most interfaces. Not done yet.
994 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
995 * doc/ref.sgml: Updated MAP-QUERY example to use
996 *read-default-float-format* (John Foderaro)
997 * Extensive work to foreign library loaders and .system files to
998 check for successful loading of foreign libraries.
999 * Modified test-clsql.cl to allow more modularity and
1000 automated testing in future release.
1001 * mysql/mysql-sql.lisp: Added field types
1003 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
1004 * mysql/mysql-sql.lisp:
1005 - Added support for Allegro CL and Lispworks using UFFI layer
1006 - Changed database-connect to use mysql-real-connect. This way,
1007 can avoid using double (unwind-protect)
1008 - Changed database-connect to have MySQL library allocate space
1009 for MYSQL structure. This will make the code more robust in
1010 the event that MySQL library changes the size of the mysql-mysql