diff --git a/reference/pdo_cubrid/constants.xml b/reference/pdo_cubrid/constants.xml index a567642ad7..c1c4b348af 100644 --- a/reference/pdo_cubrid/constants.xml +++ b/reference/pdo_cubrid/constants.xml @@ -3,6 +3,91 @@
&reftitle.constants; &pdo.driver-constants; + + The following constants can be used when setting the database attribute. + They can be passed to PDO::getAttribute or + PDO::setAttribute. + + PDO::CUBRID attribute flags + + + + Constant + Description + + + + + PDO::CUBRID_ATTR_ISOLATION_LEVEL + Transaction isolation level for the database connection. + + + PDO::CUBRID_ATTR_LOCK_TIMEOUT + Transaction timeout in seconds. + + + PDO::CUBRID_ATTR_MAX_STRING_LENGTH + Read only. The maximum string length for bit, varbit, char, + varchar, nchar, nchar varying data types when using CUBRID PDO + API. + + + +
+
+ + + The following constants can be used when setting the transaction isolation + level. They can be passed to PDO::getAttribute or + returned by PDO::setAttribute. + + PDO::CUBRID isolation level flags + + + + Constant + Description + + + + + PDO::TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCE + The lowest isolation level (1). A dirty, non-repeatable or + phantom read may occur for the tuple and a non-repeatable read may + occur for the table as well. + + + PDO::TRAN_COMMIT_CLASS_COMMIT_INSTANCE + A relatively low isolation level (2). A dirty read does not + occur, but non-repeatable or phantom read may occur. + + + PDO::TRAN_REP_CLASS_UNCOMMIT_INSTANCE + The default isolation of CUBRID (3). A dirty, non-repeatable or + phantom read may occur for the tuple, but repeatable read is ensured + for the table. + + + PDO::TRAN_REP_CLASS_COMMIT_INSTANCE + A relatively low isolation level (4). A dirty read does not + occur, but non-repeatable or phantom read may. + + + PDO::TRAN_REP_CLASS_REP_INSTANCE + A relatively high isolation level (5). A dirty or non-repeatable + read does not occur, but a phantom read may. + + + PDO::TRAN_SERIALIZABLE + The highest isolation level (6). Problems concerning concurrency + (e.g. dirty read, non-repeatable read, phantom read, etc.) do not + occur. + + + +
+
+ The following constants can be used when getting schema information. They can be passed to PDO::cubrid_schema. diff --git a/reference/pdo_cubrid/reference.xml b/reference/pdo_cubrid/reference.xml index 55338d5d4e..703b9e6832 100644 --- a/reference/pdo_cubrid/reference.xml +++ b/reference/pdo_cubrid/reference.xml @@ -53,14 +53,15 @@ Autocommit_mode and Transaction PDO_CUBRID supports both autocommit_mode and transaction, and - autocommit_mode is enable by default. You can use + autocommit_mode is disabled by default. You can use PDO::setAttribute to change its state. - If you use PDO::beginTransaction to begin a transaction, it will - disable autocommit_mode and restore it after PDO::commit or - PDO::rollBack. Note that before disabling the autocommit_mode, any - pending work is automatically committed. + If you use PDO::beginTransaction to begin a + transaction, it will disable autocommit_mode automatically and + restore it after PDO::commit or + PDO::rollBack. Note that before disabling the + autocommit_mode, any pending work is automatically committed. @@ -71,8 +72,7 @@ Schema Information - PDO_CUBRID doesn't implement PDOStatement->getColumnMeta. - Instead, PDO_CUBRID implements a function + PDO_CUBRID implements a function PDO::cubrid_schema to get schema information. @@ -119,6 +119,29 @@ fpassthru($result[0]); + + Column meta + + The PDOStatement::getColumnMeta in CUBRID PDO + will return an associative array containing the following values: + + type + name + table + def + precision + scale + not_null + auto_increment + unique_key + multiple_key + primary_key + foreign_key + reverse_index + reverse_unique + + +