|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-05-30 03:22 UTC] igor at gelios dot net
Constant isc_tpb_rec_version is very important and uses with isc_tpb_read_committed constant in transaction parameters. But interbase.c in php source tree does not define this constant and (!!!) there is no way to use this constant without interbase.c editing/recompiling. It's very simple correction!! Please! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Well, i use this corrections: diff -Naur -x interbase.o -x interbase.lo ext/interbase.original/interbase.c ext/interbase/interbase.c --- ext/interbase.original/interbase.c 2003-05-31 23:08:58.000000000 +0400 +++ ext/interbase/interbase.c 2003-06-01 00:14:13.000000000 +0400 @@ -554,6 +554,7 @@ REGISTER_LONG_CONSTANT("IBASE_TIMESTAMP", PHP_IBASE_TIMESTAMP, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IBASE_DATE", PHP_IBASE_DATE, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IBASE_TIME", PHP_IBASE_TIME, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IBASE_REC_VERSION", PHP_IBASE_REC_VERSION, CONST_PERSISTENT); return SUCCESS; } @@ -1549,6 +1550,10 @@ /* isolation level */ if (trans_argl & PHP_IBASE_COMMITTED) { tpb[tpb_len++] = isc_tpb_read_committed; + + if (trans_argl & PHP_IBASE_REC_VERSION) + tpb[tpb_len++] = isc_tpb_rec_version; + } else if (trans_argl & PHP_IBASE_CONSISTENCY) tpb[tpb_len++] = isc_tpb_consistency; else diff -Naur -x interbase.o -x interbase.lo ext/interbase.original/php_interbase.h ext/interbase/php_interbase.h --- ext/interbase.original/php_interbase.h 2003-05-31 23:09:10.000000000 +0400 +++ ext/interbase/php_interbase.h 2003-06-01 00:13:00.000000000 +0400 @@ -169,7 +169,8 @@ PHP_IBASE_NOWAIT = 32, PHP_IBASE_TIMESTAMP = 64, PHP_IBASE_DATE = 128, - PHP_IBASE_TIME = 256 + PHP_IBASE_TIME = 256, + PHP_IBASE_REC_VERSION = 512 }; #ifdef ZTS