Commit Graph

80 Commits

Author SHA1 Message Date
Wez Furlong
1a521e5ab6 Prep for next release 2003-05-14 13:05:22 +00:00
Ilia Alshanetsky
f1c20d3b55 Added sqlite_fetch_string(), for speedy fetching of data from database
cursor containing only a single column.
2003-05-13 23:51:25 +00:00
Marcus Boerger
418106cc31 Add me 2003-05-04 12:04:26 +00:00
Marcus Boerger
815ad75c49 - Indendation fix
- Proto fix
- Add efficient single column access function: sqlite_column()
2003-05-03 12:51:13 +00:00
Marcus Boerger
0c11675902 Fix MFN error (now really) 2003-05-02 22:22:16 +00:00
Marcus Boerger
b8c5cd2a9d Fix MFN error 2003-05-02 22:17:01 +00:00
Marcus Boerger
7a17b23190 Add iterator interface and test 2003-05-02 22:09:54 +00:00
Edin Kadribasic
0d46a490f7 Allign. 2003-05-01 22:12:06 +00:00
Marcus Boerger
a8c650d1b8 tests depend on ini option 2003-05-01 13:29:11 +00:00
Marcus Boerger
2c2774c204 Don't return table names 2003-05-01 13:20:22 +00:00
Marcus Boerger
2cef4c3470 Check returned associative indexes 2003-05-01 13:18:56 +00:00
Marcus Boerger
bafbc8bdb2 Allow both parameter orderings 2003-04-30 15:22:57 +00:00
Marcus Boerger
4ad3ecc758 Allow to set result_type default for each query 2003-04-30 15:18:59 +00:00
Marcus Boerger
8820a9cdcc More tests 2003-04-27 20:02:35 +00:00
Wez Furlong
3bf392c160 Seems like a better fix.. 2003-04-27 14:01:09 +00:00
Marcus Boerger
783d1d7b24 More safe_emalloc() 2003-04-27 13:46:07 +00:00
Wez Furlong
23c4c206a4 WS, plus default: would prevent case SQLITE_DONE: in php_sqlite_fetch(). 2003-04-27 13:32:43 +00:00
Marcus Boerger
fe94e0394e Enable some more functions with unbuffered queries 2003-04-27 13:25:10 +00:00
Marcus Boerger
88ef12964b Add more tests 2003-04-27 11:29:39 +00:00
Wez Furlong
604a41e244 win32 fixes 2003-04-22 23:24:44 +00:00
Wez Furlong
9d43def392 Fix the extension...
# guess which extension I copied this from??
2003-04-22 21:41:46 +00:00
Wez Furlong
11a96965c9 Add windows .dsp and some kludgy pre-generated headers. 2003-04-22 19:06:31 +00:00
Wez Furlong
71722f28ba I will use my brain properly next time 2003-04-22 00:21:02 +00:00
Wez Furlong
eb22d78db8 allow sqlite_query() to accept the query string and database resource in
either order.

Forgot to bump the package version number displayed by phpinfo()...
Bump to 0.9a
2003-04-22 00:19:48 +00:00
Edin Kadribasic
43349ea014 Added sqlite.assoc_case ini entry with 0 as the default value.
0 - Make no changes to the keys in the associative array
1 - Change the keys to uppercase
2 - Change the keys to lowercase
2003-04-22 00:08:48 +00:00
Wez Furlong
04c5e2fc06 Prepare for release. 2003-04-21 20:24:03 +00:00
Wez Furlong
276e721f96 Tidy up package.xml file.
Cleaner approach for setting THREADSAFE and NDEBUG for bundled libsqlite.
Tested with: static, shared and shared with separate build roots under a
non-zts build only.
2003-04-20 16:09:16 +00:00
Wez Furlong
8ccae81db2 Eliminate leaks from registering plain or aggregate functions.
Also, reduce (probably eliminate) the risk of a segfault when registering a
callback on a persistent connection and later triggering the callback from a
different script.
2003-04-20 15:13:04 +00:00
Wez Furlong
ac33bc48f0 Revise todo 2003-04-20 13:33:46 +00:00
Wez Furlong
d40a615a8e Implement sqlite_create_function(), which allows binding of php functions by
name; this is a higher performance alternative to the generic php() SQL
function. (saves parsing the additional function call in the SQL and a call to
zend_is_callable on each function invocation).

Add test for sqlite_create_function().

Fixup proto for sqlite_create_aggregate().

Tweak package file and speling in header file.
2003-04-20 13:31:36 +00:00
Tal Peer
b0d26a11ac Remove rendundant function 2003-04-20 13:21:17 +00:00
Tal Peer
2a54c9a308 typo 2003-04-20 13:17:17 +00:00
Tal Peer
a676f6c29d Update 2003-04-20 13:15:45 +00:00
Wez Furlong
7360c5dfdd Add test for aggregates 2003-04-20 13:08:40 +00:00
Wez Furlong
4a46882648 Implement sqlite_create_aggregate() which can be used to create aggregation
functions for use in SQL statements.
2003-04-20 13:08:22 +00:00
Edin Kadribasic
3f18d16957 Kluge, but it seems to work now in both phpize and bundled builds.
Only in there until Wez fixes it for real.
2003-04-20 03:03:28 +00:00
Edin Kadribasic
04d06dac3f Reinstating these two items due to the fact that current config.m4
detection for debug and thread-safe build does not work if sqlite
is built as a standalone extension with phpize.
2003-04-20 01:55:20 +00:00
Edin Kadribasic
a10c8a3e1c Erm, this works much better :) 2003-04-20 01:25:59 +00:00
Edin Kadribasic
3f95e99afc Set appropriate flags when compiling bundled lib in thread-safe
and debug modes.
2003-04-20 01:22:08 +00:00
Wez Furlong
e17b8b4b12 More things todo 2003-04-19 13:04:19 +00:00
Wez Furlong
ff0d6adda4 Transparently decode binary encoded data.
Add a test-case for that process.

When encoding binary data, we mark the string with \x01 as its first character.
When returning data via sqlite_fetch_array(), if the first character is \x01,
then we decode the encoding.  This behaviour can be turned off by the optional
last parameter to sqlite_fetch_array(), for compatibility with databases
created with other applications.
2003-04-19 12:54:17 +00:00
Wez Furlong
de7874e11f Little fix for people building sqlite as a static extension 2003-04-19 11:47:17 +00:00
Marcus Boerger
5f97e66ba5 Add test for different result representations 2003-04-19 10:36:58 +00:00
Wez Furlong
6640260253 Fix 2 potential segfaults. 2003-04-19 10:28:45 +00:00
Marcus Boerger
cde6bdce5c Improve test environment, fix 001.phpt and rename that one, also change from /tmp to dirname(__FILE__) 2003-04-18 20:53:18 +00:00
Marcus Boerger
16e873f864 Add a first simple open/close test 2003-04-18 20:08:01 +00:00
Marcus Boerger
d323659e5f ZTS fixes 2003-04-18 19:43:38 +00:00
Wez Furlong
ff93259b82 First "real" test.
If anyone is motivated to write more tests, please do so.
2003-04-18 19:22:49 +00:00
Wez Furlong
c568087d6e done: persistent connections 2003-04-18 16:42:28 +00:00
Wez Furlong
8f30d3e545 Implement sqlite_popen(), which opens persistent connections to an sqlite
database file.  (This saves the cost of sqlite reading/parsing the indices).

Persistent db connections have any pending transactions rolled back at request
shutdown time. (non-persistent connections are automatically rolled back when
they are closed).

Enhance sqlite_query() and sqlite_unbuffered_query() to use the C api
sqlite_exec() when the PHP script does not use the return value. This avoids
the extra work and memory allocation for holding result sets when they are not
needed.
2003-04-18 16:30:16 +00:00