Ryan Culpepper
ab88a2a9bd
add table-based db tests
...
Allows testing for mysql char type (see previous commit comment)
2012-11-14 20:40:52 -05:00
Ryan Culpepper
4cdcfd6a3b
improve db tests
2012-11-14 18:30:03 -05:00
Ryan Culpepper
9d34f0f147
db: added support for postgresql 9.2 types (json, ranges)
...
Other major changes:
- pg code now uses only binary format
- pg timestamptz now always UTC (tz = 0), added doc section
- added contracts to most pg "can't-convert" errors
2012-09-17 12:29:17 -04:00
Ryan Culpepper
7da5063782
db: added variations of concurrency test
2012-08-25 19:02:18 -04:00
Ryan Culpepper
7c395e9c7c
db: updated to new error convention (mostly)
2012-08-25 19:02:18 -04:00
Ryan Culpepper
00fd18bc62
db: various fixes and additions
...
- fix connection-pool for nested tx, fix race condition
- ensure connected? always nonblocking
- added and reorganized some doc sections
- added grouping, contracts to in-query
- added rows->dict
2012-05-09 09:17:52 -06:00
Ryan Culpepper
902ba68dfb
db: add servlet-based test
2012-05-09 09:17:52 -06:00
Ryan Culpepper
9f492c10a7
db: fix mysql large blobs, other changes
...
MySQL:
- support multi-packet data rows
- fixed very old length-coding bug (24 vs 32 bit length)
- support large params via long-data packets
- 'any' pseudo-type for parameters
- distinguish 'blob'/'text', 'var-string'/'var-binary'
- read 'text' results as string, not bytes
SQLite3:
- enabled sql types tests
2012-04-14 19:47:32 -06:00
Ryan Culpepper
8392f20b8f
db: fix async test for mysql
2012-03-18 04:57:41 -06:00
Ryan Culpepper
1b7368f80c
db: fix memory leaks
...
- sqlite3: table prevented pst gc unless close-on-exec
- statement cache wrongly disabled close-on-exec
(not a leak, just gc'd very slowly)
- limit statement cache size
2012-03-13 19:50:08 -06:00
Ryan Culpepper
654ccb277f
db: added cursors
2012-02-08 22:32:51 -07:00
Ryan Culpepper
4c817d0f7f
db: clean up and reogranize common impl code
2012-02-08 22:32:50 -07:00
Ryan Culpepper
dba35c3116
db: added nested transactions
2012-01-08 23:25:53 -07:00
Ryan Culpepper
f38d959b3a
db: fix transaction contract bugs, added transaction tests
...
closes PR 12364
2011-11-13 15:11:12 -07:00
Ryan Culpepper
b4e856cc3c
db: fixed space leak in statement finalizer thread
...
This "fixes" the segfault in the test program, but it seems
like there must be another underlying problem.
2011-11-13 15:11:12 -07:00
Ryan Culpepper
1dade8ee1d
db: added support for postgresql arrays
2011-10-30 18:51:16 -06:00
Ryan Culpepper
43d3b5d8bc
rackunit: added #:wait? arg to test/gui
2011-09-20 14:49:49 -06:00
Ryan Culpepper
69a56ef683
db: clean up test suite, (test conditional) => (conditional test), timing
2011-09-06 12:41:03 -06:00
Ryan Culpepper
19b1ff101c
db: fixed kill-safe-connection, improved tests
2011-08-31 05:40:24 -06:00
Ryan Culpepper
96663d4fa4
db: added #:use-place arg for ffi-based connections
...
SQLite and ODBC connections can use places to avoid blocking all
Racket threads.
2011-08-31 05:40:24 -06:00
Ryan Culpepper
b706fc1ebc
db: cleaned up testing script, run sqlite tests by default
2011-08-30 12:04:25 -06:00
Ryan Culpepper
397702808a
db: fixed virtual-statement
...
Eliminated interface test (shallow) in favor of method test
(correct, recursive). Also made vstmts work with virtual-connections.
2011-08-30 12:04:24 -06:00
Ryan Culpepper
1c6817426e
db: added group-rows, #:group arg to query-rows
2011-08-30 12:04:24 -06:00
Ryan Culpepper
92e2d1eb6e
db: split off db/util/datetime module
2011-08-27 16:31:22 -06:00
Ryan Culpepper
a91e6f6452
db: "recordset" -> "rows-result", "rows"
2011-08-27 16:31:22 -06:00
Ryan Culpepper
50f0a32f9e
added db library
2011-08-25 12:56:42 -06:00