Index: ini.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/sybase/ini.xml,v
retrieving revision 1.4
diff -u -r1.4 ini.xml
--- ini.xml 14 Nov 2002 13:03:21 -0000 1.4
+++ ini.xml 23 Mar 2003 14:31:14 -0000
@@ -212,6 +212,11 @@
NULL
PHP_INI_ALL
+
+ sybct.deadlock_retry_count
+ "-1"
+ PHP_INI_ALL
+
@@ -335,6 +340,19 @@
The name of the host you claim to be connecting from, for
display by sp_who. The default is none.
+
+
+
+
+
+
+ sybct.deadlock_retry_count
+ int
+
+
+
+ Allows you to to define how often deadlocks are to be retried. The default
+ is -1, or "forever".
Index: functions/sybase-fetch-array.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/sybase/functions/sybase-fetch-array.xml,v
retrieving revision 1.2
diff -u -r1.2 sybase-fetch-array.xml
--- functions/sybase-fetch-array.xml 17 Apr 2002 06:44:40 -0000 1.2
+++ functions/sybase-fetch-array.xml 23 Mar 2003 14:31:14 -0000
@@ -27,9 +27,50 @@
slower than using sybase_fetch_row, while it
provides a significant added value.
+
+ When selecting fields with identical names (for instance, in
+ a join), the associative indices will have a sequential number prepended.
+ See the example for details.
+
+
+
+ Identical fieldnames
+
+
+]]>
+
+
+ The above example would produce the following output (assuming the two tables only
+ have each one column called "person_id"):
+
+
+
+ int(1)
+ ["person_id"]=>
+ int(1)
+ [1]=>
+ int(1)
+ ["person_id1"]=>
+ int(1)
+}
+]]>
+
For further details, also see
- sybase_fetch_row.
+ sybase_fetch_row,
+ sybase_fetch_assoc and
+ sybase_fetch_object.
Index: functions/sybase-fetch-object.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/sybase/functions/sybase-fetch-object.xml,v
retrieving revision 1.3
diff -u -r1.3 sybase-fetch-object.xml
--- functions/sybase-fetch-object.xml 19 Feb 2003 22:10:28 -0000 1.3
+++ functions/sybase-fetch-object.xml 23 Mar 2003 14:31:14 -0000
@@ -11,16 +11,69 @@
intsybase_fetch_object
intresult
+ mixedobject
Returns: An object with properties that correspond to the
fetched row, or &false; if there are no more rows.
sybase_fetch_object is similar to
- sybase_fetch_array, with one difference - an
- object is returned, instead of an array. Indirectly, that means
- that you can only access the data by the field names, and not by
- their offsets (numbers are illegal property names).
+ sybase_fetch_assoc, with one difference - an
+ object is returned, instead of an array.
+
+ Use the second object to specify the type of object you want to return.
+ If this parameter is omitted, the object will be of type stdClass.
+
+
+ As of PHP 4.3.0, this function will no longer return numeric object members.
+
+
+ Old behaviour:
+
+
+ string(3) "foo"
+ ["foo"]=>
+ string(3) "foo"
+ [1]=>
+ string(3) "bar"
+ ["bar"]=>
+ string(3) "bar"
+}
+]]>
+
+ New behaviour:
+
+
+ string(3) "foo"
+ ["bar"]=>
+ string(3) "bar"
+}
+]]>
+
+
+
+
+ sybase_fetch_object return as Foo
+
+
+]]>
+
+
Speed-wise, the function is identical to
sybase_fetch_array, and almost as quick as
Index: functions/sybase-fetch-row.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/sybase/functions/sybase-fetch-row.xml,v
retrieving revision 1.3
diff -u -r1.3 sybase-fetch-row.xml
--- functions/sybase-fetch-row.xml 19 Feb 2003 22:10:28 -0000 1.3
+++ functions/sybase-fetch-row.xml 23 Mar 2003 14:31:14 -0000
@@ -26,8 +26,38 @@
return the next row in the result set, or &false; if there are no
more rows.
+
+ Data types
+
+
+
+ PHP
+ Sybase
+
+
+
+
+ string
+ VARCHAR, TEXT, CHAR, IMAGE, BINARY, VARBINARY, DATETIME
+
+
+ int
+ NUMERIC (w/o precision), DECIMAL (w/o precision), INT, BIT, TINYINT, SMALLINT
+
+
+ float
+ NUMERIC (w/ precision), DECIMAL (w/ precision), REAL, FLOAT, MONEY
+
+
+ &null;
+ NULL
+
+
+
+
- See also sybase_fetch_array,
+ See also: sybase_fetch_array,
+ sybase_fetch_assoc,
sybase_fetch_object,
sybase_data_seek,
sybase_fetch_lengths, and