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