Commit Graph

307 Commits

Author SHA1 Message Date
Marcus Boerger
442c2b4eec Add a test 2003-12-28 16:26:21 +00:00
Marcus Boerger
1a48fd929d Fix a memleak
Improve error messages
2003-12-28 16:26:04 +00:00
Rui Hirokawa
05c78af854 revert my previous patch because utf-8 support is still in experimental status. 2003-12-28 14:38:28 +00:00
Rui Hirokawa
585a12d3be added warning message. 2003-12-28 14:26:57 +00:00
Rui Hirokawa
af9b015afc added a option to select character encoding for sqlite. 2003-12-28 14:07:33 +00:00
Marcus Boerger
01b255f0ef Correct in order 2003-12-27 22:16:13 +00:00
Marcus Boerger
a876c54d1c Bugfix #25329 2003-12-27 22:11:48 +00:00
Marcus Boerger
fd7fca402b Not needed 2003-12-27 21:57:16 +00:00
Marcus Boerger
da29458469 Add new test related to bug #25329. 2003-12-27 21:45:50 +00:00
Ilia Alshanetsky
79848fa885 Added sqlite_fetch_column_types() function. 2003-12-18 21:28:00 +00:00
Ilia Alshanetsky
bebaa5b00f Do not mangle column names. 2003-12-14 18:45:37 +00:00
Ilia Alshanetsky
9165dc414e The changes() method should be that of the database object not that of
a result.
Added a test case for this bug.
2003-12-10 18:56:05 +00:00
Ilia Alshanetsky
06b528aa54 Fixed a crash in SQLite when fetching data using sqlite_fetch_object() in
a loop.
2003-12-10 01:02:20 +00:00
Wez Furlong
98f1021dd8 Make these tests work under win32 2003-12-05 13:42:04 +00:00
Edin Kadribasic
b842917d84 Made test work on windows 2003-12-05 02:12:21 +00:00
Marcus Boerger
320a87e4f9 No longer needed 2003-12-04 17:33:08 +00:00
Wez Furlong
ad84dfa937 Build adjustments. 2003-12-03 14:29:45 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Ilia Alshanetsky
8845a0300f Added myself to credits. 2003-11-16 20:43:57 +00:00
Ilia Alshanetsky
a4eebd74a6 Fixed compiler warning. 2003-10-28 04:22:12 +00:00
Marcus Boerger
dcc060382a Add another test 2003-10-27 08:43:52 +00:00
Marcus Boerger
da9ce6380c Rename test 2003-10-27 08:43:25 +00:00
Marcus Boerger
37f6618c64 Allow static methods being called from sqlite sql. Notice by Stphane Mariel 2003-10-25 23:17:15 +00:00
Marcus Boerger
b0b82541e8 Fix class/iterator relationship & handling 2003-10-18 18:43:31 +00:00
Marcus Boerger
9fbaa7aca5 - Make use of engine iterators 2003-10-17 17:21:56 +00:00
Marcus Boerger
08d1c991cf The sqlite classes need to be final 2003-10-17 08:17:09 +00:00
Marcus Boerger
4943cae926 pre/hasprev have nothing to do with iteration 2003-10-17 08:01:49 +00:00
Marcus Boerger
36655400cb - return correct hash constants
- check for 'memory' in sqlite_factory() too (noticed by John Coggeshal)
2003-09-21 19:36:40 +00:00
Ilia Alshanetsky
ace85c9015 MFB: Add myself to credits 2003-09-19 12:24:51 +00:00
Marcus Boerger
2a68d3c19e Make use of dedicated macro 2003-09-13 10:31:06 +00:00
Marcus Boerger
d9d082072c Omitting is also possible here 2003-09-05 20:09:19 +00:00
Marcus Boerger
f05525a0ef WS 2003-09-05 20:05:08 +00:00
Marcus Boerger
421e2e9275 Go with the mess 2003-09-04 14:54:53 +00:00
Zeev Suraski
8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
Marcus Boerger
c3f7ea3510 Fix property inheritance by using dedicated new function 2003-08-29 23:30:03 +00:00
Marcus Boerger
0cb983885d Throw exception if user wants to pass arguments to an non existing constructor 2003-08-29 21:33:24 +00:00
Marcus Boerger
adaf6429a7 Throw exception if user wants to pass arguments to an non existing constructor 2003-08-29 21:32:25 +00:00
Marcus Boerger
eb8d89c363 Allow to pass arguments to the constructor 2003-08-29 21:13:50 +00:00
Marcus Boerger
b75133c0c6 Need to check if we got any value before destroying it 2003-08-28 23:36:46 +00:00
Marcus Boerger
257223bdcc Match expected class and instantiated class 2003-08-28 23:30:16 +00:00
Marcus Boerger
90561350f9 Add sqlite_fetch_object() 2003-08-28 23:19:51 +00:00
Marcus Boerger
07789ebd0e Error messages show the class now 2003-08-28 23:18:38 +00:00
Marcus Boerger
0bd1567fe1 Update exception code 2003-08-25 20:55:14 +00:00
Jon Parise
5649b2ca2a Explicitly declare the dependencies on the generated sqlite.h file. This
allows the libsqlite source tree (and php-src, as a whole) to be built
using 'make -j' once again.
2003-08-20 07:41:42 +00:00
Marcus Boerger
0d5ee859dd Fix warnings 2003-08-17 15:43:41 +00:00
Sascha Schumann
26863c9928 Use %p to display a pointer value 2003-08-17 14:01:17 +00:00
Sascha Schumann
3a81e99c1f The first element of the array seems to store the members count
Add a cast to (long) to quiet the compiler
2003-08-17 13:59:59 +00:00
Sascha Schumann
e6b45266d2 The integer timeout is cast to a void *, passed to this function, and
cast back.

Add a cast to (long) to quiet the compiler
2003-08-17 13:57:53 +00:00
Sascha Schumann
1f722edd1c Fix sizeof(void *) > sizeof(int) issue.
n should be ptrdiff_t.
2003-08-17 13:53:57 +00:00
Marcus Boerger
fb1288d067 # Wez, your whish is my command 2003-08-12 21:29:28 +00:00
Marcus Boerger
ab9198e396 Bugfix #25056 2003-08-12 21:15:16 +00:00
Zeev Suraski
538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Marcus Boerger
08f725fa24 Remove this then, too 2003-07-20 18:05:03 +00:00
Marcus Boerger
7dd6f48f45 SQLite objects are not cloneable. Maybe we allow this later for sqlite_db. 2003-07-20 18:00:54 +00:00
foobar
82af3ff733 OS_UNIX/OS_WIN are set in the bundled libsqlite sources. 2003-07-19 12:44:46 +00:00
Sebastian Bergmann
aeefb55a6a Cleanup, as suggested by Andi. 2003-07-19 11:00:17 +00:00
Sebastian Bergmann
83bf4599b7 ZTS fix. 2003-07-14 05:52:57 +00:00
Wez Furlong
78e236da26 Add sqlite_has_prev, and sqlite_prev.
Patch by Jan Lehnardt <jan@php.net>
2003-07-13 09:38:33 +00:00
Wez Furlong
ce2a4d9121 MFB better popen fix 2003-07-13 09:20:40 +00:00
Wez Furlong
e17043c248 Fix bug #24575 (sqlite_popen did not request a new resource id when persistent
handles were re-used within a request).
2003-07-13 08:48:43 +00:00
Marcus Boerger
959f7784e0 Don't use class_implements() for the moment 2003-07-09 17:05:09 +00:00
Marcus Boerger
bd752698cf Use --EXPECTF-- for errors 2003-07-09 17:02:42 +00:00
Marcus Boerger
ae19eb5334 Add oo version of test 2003-07-09 16:55:07 +00:00
Marcus Boerger
af3be899e6 fix this stupid error 2003-07-08 23:10:01 +00:00
Marcus Boerger
139852d3ff Fix bug #24540 2003-07-08 18:57:28 +00:00
Marcus Boerger
2ef1935c83 Add test for sqlite_seek() 2003-07-08 18:56:14 +00:00
Marcus Boerger
f145b163a8 - In function sqlite_field_name the index parameter is not optional.
- Fix all the protos.
2003-07-05 20:02:40 +00:00
Marcus Boerger
a5588b4c7a funny fixes 2003-07-02 21:40:54 +00:00
Sterling Hughes
e724e4cbdb further improve the performance and clean up 2003-07-02 03:12:06 +00:00
Sterling Hughes
6084487822 not necessary, already assumed binary safe (it has to be under the current
session architecture), and anything else is fair play
2003-07-02 00:56:32 +00:00
Sterling Hughes
960ab9bd8d ws fix 2003-07-02 00:45:15 +00:00
Sterling Hughes
6129ddce1e set synching to off
cleanup some silly code
2003-07-02 00:43:00 +00:00
Sterling Hughes
8a77e2b3db no c++ style comments 2003-07-02 00:04:58 +00:00
Sterling Hughes
bd4601ea28 make this actually work. 2003-07-02 00:03:41 +00:00
Marcus Boerger
d531dee390 Fix warnings and allow builds without ext/session 2003-07-01 17:55:32 +00:00
Wez Furlong
090328fd32 silence warning under win32
(maybe!)
2003-07-01 13:26:49 +00:00
Wez Furlong
a8f74b14f1 WS 2003-07-01 13:09:57 +00:00
Wez Furlong
607b6501ed Add sqlite session handler.
Modified (quite a bit!) patch from John Coggeshall.
It compiles, but it otherwise untested.
session.save_path == path to actual database file for the session.

eg: session.save_path=/tmp/mysite-session.db
2003-07-01 13:07:37 +00:00
Zeev Suraski
b31570f03e Remove Release_TSinline (it's not necessary)
Add Release_TSDbg
Change directories to be consistent with our other modules...
2003-06-30 11:41:25 +00:00
Edin Kadribasic
7730c1d994 Fix windows build 2003-06-27 14:30:26 +00:00
Edin Kadribasic
19a6d56e51 Prepare for enabling by default on Windows. 2003-06-27 14:14:08 +00:00
Marcus Boerger
4608ddb5d8 MFB: Function was renamed (don't test an alias) 2003-06-26 21:37:54 +00:00
Marcus Boerger
a0ecfc9c31 errmsg must be ref 2003-06-26 21:07:07 +00:00
Marcus Boerger
add3674b20 Rename sqlite_fetch_string() to sqlite_fetch_single() + alias 2003-06-26 19:26:26 +00:00
Marcus Boerger
bbfa7cae25 Fix memleak 2003-06-26 19:07:17 +00:00
Marcus Boerger
30b4f8f494 Fix a warning 2003-06-25 23:21:10 +00:00
Edin Kadribasic
b950e4ee04 Make sqlite good ext/ citizen.
# Hope this CVS mess goes away real soon now!
2003-06-25 23:20:30 +00:00
Ilia Alshanetsky
0dc20e8bea ZTS typo 2003-06-25 23:14:19 +00:00
Sterling Hughes
12b06799ae Don't pass resource as an argument when its not being parsed. 2003-06-25 17:22:31 +00:00
Ilia Alshanetsky
94b90d0c0a Added sqlite_single_query() and it's OO equivalent single_query(). 2003-06-25 16:59:24 +00:00
Sterling Hughes
211ca9d9e5 enable sqlite by default 2003-06-25 00:18:01 +00:00
Wez Furlong
eea0ffc0d1 1.1, not 2.0... 2003-06-24 11:30:59 +00:00
Wez Furlong
a27b34a20b update package.xml for 5.0 2003-06-24 11:23:31 +00:00
Ilia Alshanetsky
28347d74bb port sqlite_array_query() fix from PHP_4_3 2003-06-23 19:37:48 +00:00
Marcus Boerger
a594c7b714 Fix test shutdown 2003-06-22 19:03:24 +00:00
Marcus Boerger
9d6f63ef71 Remove sqlite::close() 2003-06-22 19:00:44 +00:00
Marcus Boerger
f2d26fc85d Add oo API 2003-06-22 17:19:46 +00:00
Wez Furlong
ce62305a38 More prep for 1.0 release. 2003-06-21 13:50:43 +00:00
Wez Furlong
3a550b3c8c Prepare for 1.0 release 2003-06-21 13:29:26 +00:00
Wez Furlong
9e858102a8 Add a pair of functions to handle the binary coding used by PHP from within
UDF callbacks.

Add test for binary functions.
Fix proto.
2003-06-21 12:29:32 +00:00
Wez Furlong
425882ef70 Some tweaks ready for the upcoming 1.0 release. 2003-06-19 20:57:11 +00:00
Wez Furlong
20ee07ef92 Should build with PHP5 now... 2003-06-18 19:48:02 +00:00
Marcus Boerger
344737c24e Fix test 2003-06-14 19:42:32 +00:00
Marcus Boerger
8f2b387c61 - Update license
- Don't buffer in non buffered mode
2003-06-14 18:16:47 +00:00
Wez Furlong
b39ff50d9b Add .def file to export the sqlite functions from our win32 dll 2003-06-12 23:22:33 +00:00
Marcus Boerger
c114698445 Add a test for sqlite_array_query() 2003-06-09 23:22:00 +00:00
Marcus Boerger
25b7954dbb This is a 'fetch all' test using fetch_all() 2003-06-09 23:21:06 +00:00
Marcus Boerger
ed1a17a032 Update 2003-06-09 23:16:32 +00:00
Marcus Boerger
062b9afe4f Add sqlite_array_query(). 2003-06-09 23:15:29 +00:00
Marcus Boerger
e1652789ea - Add sqlite_array_query().
- Make all read functions destructive when in unbuffered read mode.
2003-06-09 23:14:25 +00:00
Ilia Alshanetsky
d3ad6e640d Do not perform safe_mode & open_basedir checks for memory-only databases. 2003-06-09 20:36:55 +00:00
Marcus Boerger
c191b4343b Actually sqlite.c isn't located in libsqlite 2003-06-07 15:15:27 +00:00
Marcus Boerger
2e84e2ab3f Added new test 2003-06-07 14:13:36 +00:00
Marcus Boerger
eccfbe5f88 WS 2003-06-07 11:38:03 +00:00
Wez Furlong
b230df9254 Touch lemon generated file 2003-06-06 22:46:33 +00:00
Wez Furlong
30fc9e152f Update bundled library to 2.8.3 + patches from sqlite author to enable
authorization checks for the ATTACH database command.
2003-06-06 22:44:57 +00:00
Marcus Boerger
2013859ec5 Update 2003-06-06 19:01:38 +00:00
Marcus Boerger
797654bde7 New fetch_all() an fetch optimization reworked (original idea by ilia) 2003-06-06 19:00:16 +00:00
Edin Kadribasic
bd2f381edf Update win32 build with new version 2003-06-06 16:39:46 +00:00
Wez Furlong
c1817c9b8d Update for 2.8.2 2003-06-06 16:33:32 +00:00
Marcus Boerger
96a7b5557c Added test files 2003-06-05 20:15:21 +00:00
Marcus Boerger
a5f52b5052 Update 2003-06-05 19:40:41 +00:00
Marcus Boerger
cb22a3b9e6 Update 2003-06-05 19:38:59 +00:00
Wez Furlong
c44fcc1dc5 WS 2003-06-05 13:03:15 +00:00
Wez Furlong
80e7f7001d Update bundled library to version 2.8.2.
Make OnUpdateInt compatible with ZE2.
Fix the makefile fragment for non-gnu makes
2003-06-04 22:40:00 +00:00
Wez Furlong
82a1818fde Revert accidental commit from marcus. 2003-06-04 21:11:45 +00:00
Marcus Boerger
b70cf40742 Goodbye namespaces 2003-06-04 20:54:48 +00:00
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