From b0b510f02abf8352254ad32d49156379669524b1 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Tue, 6 Jan 2004 12:45:31 +0000 Subject: [PATCH] WS : *don't* use tabulations git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147964 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../sesam/functions/sesam-diagnostic.xml | 58 ++-- .../sesam/functions/sesam-fetch-result.xml | 78 ++--- reference/sesam/functions/sesam-fetch-row.xml | 88 +++--- .../sesam/functions/sesam-field-array.xml | 280 +++++++++--------- reference/sesam/functions/sesam-seek-row.xml | 78 ++--- .../sesam/functions/sesam-settransaction.xml | 50 ++-- 6 files changed, 316 insertions(+), 316 deletions(-) diff --git a/reference/sesam/functions/sesam-diagnostic.xml b/reference/sesam/functions/sesam-diagnostic.xml index 614c4d7940..aaecbd8e9f 100644 --- a/reference/sesam/functions/sesam-diagnostic.xml +++ b/reference/sesam/functions/sesam-diagnostic.xml @@ -1,5 +1,5 @@ - + @@ -24,45 +24,45 @@ - Element - Contents + Element + Contents - $array["sqlstate"] - - 5 digit SQL return code (see the SESAM manual for the - description of the possible values of SQLSTATE) - + $array["sqlstate"] + + 5 digit SQL return code (see the SESAM manual for the + description of the possible values of SQLSTATE) + - $array["rowcount"] - - number of affected rows in last update/insert/delete (set - after "immediate" statements only) - + $array["rowcount"] + + number of affected rows in last update/insert/delete (set + after "immediate" statements only) + - $array["errmsg"] - - "human readable" error message string (set after errors - only) - + $array["errmsg"] + + "human readable" error message string (set after errors + only) + - $array["errcol"] - - error column number of previous error (0-based; or -1 if - undefined. Set after errors only) - + $array["errcol"] + + error column number of previous error (0-based; or -1 if + undefined. Set after errors only) + - $array["errlin"] - - error line number of previous error (0-based; or -1 if - undefined. Set after errors only) - + $array["errlin"] + + error line number of previous error (0-based; or -1 if + undefined. Set after errors only) + @@ -91,7 +91,7 @@ function PrintReturncode($exec_str) { --$colspan; echo "\n"; echo "\n"; + htmlspecialchars($err["errmsg"]) . "\n"; if ($err["errcol"] >= 0) { echo " - Array Element - Contents + Array Element + Contents - int $arr["count"] - - number of columns in result set (or zero if this was an - "immediate" query) - + int $arr["count"] + + number of columns in result set (or zero if this was an + "immediate" query) + - int $arr["rows"] - - number of rows in result set (between zero and - max_rows) - + int $arr["rows"] + + number of rows in result set (between zero and + max_rows) + - bool $arr["truncated"] - - &true; if the number of rows was at least - max_rows, &false; - otherwise. Note that even when this is - &true;, the next - sesam_fetch_result call may return zero - rows because there are no more result entries. - + bool $arr["truncated"] + + &true; if the number of rows was at least + max_rows, &false; + otherwise. Note that even when this is + &true;, the next + sesam_fetch_result call may return zero + rows because there are no more result entries. + - mixed $arr[col][row] - - result data for all the fields at - row(row) and - column(col), (where the integer index - row is between 0 and - $arr["rows"]-1, and - col is between 0 and - $arr["count"]-1). Fields may be empty, so - you must check for the existence of a field by using the php - isset function. The type of the - returned fields depend on the respective SQL type declared - for its column (see SESAM - overview for the conversions applied). SESAM - "multiple fields" are "inlined" and treated like a sequence - of columns. - + mixed $arr[col][row] + + result data for all the fields at + row(row) and + column(col), (where the integer index + row is between 0 and + $arr["rows"]-1, and + col is between 0 and + $arr["count"]-1). Fields may be empty, so + you must check for the existence of a field by using the php + isset function. The type of the + returned fields depend on the respective SQL type declared + for its column (see SESAM + overview for the conversions applied). SESAM + "multiple fields" are "inlined" and treated like a sequence + of columns. + diff --git a/reference/sesam/functions/sesam-fetch-row.xml b/reference/sesam/functions/sesam-fetch-row.xml index 3183e74bff..4e167ba489 100644 --- a/reference/sesam/functions/sesam-fetch-row.xml +++ b/reference/sesam/functions/sesam-fetch-row.xml @@ -1,5 +1,5 @@ - + @@ -38,63 +38,63 @@ - Value - Constant - Meaning + Value + Constant + Meaning - 0 - SESAM_SEEK_NEXT - - read sequentially (after fetch, the internal default is set - to SESAM_SEEK_NEXT) - + 0 + SESAM_SEEK_NEXT + + read sequentially (after fetch, the internal default is set + to SESAM_SEEK_NEXT) + - 1 - SESAM_SEEK_PRIOR - - read sequentially backwards (after fetch, the internal - default is set to SESAM_SEEK_PRIOR) - + 1 + SESAM_SEEK_PRIOR + + read sequentially backwards (after fetch, the internal + default is set to SESAM_SEEK_PRIOR) + - 2 - SESAM_SEEK_FIRST - - rewind to first row (after fetch, the default is set to - SESAM_SEEK_NEXT) - + 2 + SESAM_SEEK_FIRST + + rewind to first row (after fetch, the default is set to + SESAM_SEEK_NEXT) + - 3 - SESAM_SEEK_LAST - - seek to last row (after fetch, the default is set to - SESAM_SEEK_PRIOR) - + 3 + SESAM_SEEK_LAST + + seek to last row (after fetch, the default is set to + SESAM_SEEK_PRIOR) + - 4 - SESAM_SEEK_ABSOLUTE - - seek to absolute row number given as - offset (Zero-based. After fetch, the - internal default is set to - SESAM_SEEK_ABSOLUTE, and the internal - offset value is auto-incremented) - + 4 + SESAM_SEEK_ABSOLUTE + + seek to absolute row number given as + offset (Zero-based. After fetch, the + internal default is set to + SESAM_SEEK_ABSOLUTE, and the internal + offset value is auto-incremented) + - 5 - SESAM_SEEK_RELATIVE - - seek relative to current scroll position, where - offset can be a positive or negative - offset value. - + 5 + SESAM_SEEK_RELATIVE + + seek relative to current scroll position, where + offset can be a positive or negative + offset value. + diff --git a/reference/sesam/functions/sesam-field-array.xml b/reference/sesam/functions/sesam-field-array.xml index 69447e3643..1ded14fa8e 100644 --- a/reference/sesam/functions/sesam-field-array.xml +++ b/reference/sesam/functions/sesam-field-array.xml @@ -1,5 +1,5 @@ - + @@ -32,155 +32,155 @@ - Array Element - Contents + Array Element + Contents - int $arr["count"] - - Total number of columns in result set (or zero if this was - an "immediate" query). SESAM "multiple fields" are - "inlined" and treated like the respective number of columns. - + int $arr["count"] + + Total number of columns in result set (or zero if this was + an "immediate" query). SESAM "multiple fields" are + "inlined" and treated like the respective number of columns. + - string $arr[col]["name"] - - column name for column(col), where - col is between 0 and - $arr["count"]-1. The returned value can - be the empty string (for dynamically computed - columns). SESAM "multiple fields" are "inlined" and treated - like the respective number of columns, each with the same - column name. - + string $arr[col]["name"] + + column name for column(col), where + col is between 0 and + $arr["count"]-1. The returned value can + be the empty string (for dynamically computed + columns). SESAM "multiple fields" are "inlined" and treated + like the respective number of columns, each with the same + column name. + - string $arr[col]["count"] - - The "count" attribute describes the repetition factor when - the column has been declared as a "multiple field". Usually, - the "count" attribute is 1. The first column of a "multiple - field" column however contains the number of repetitions - (the second and following column of the "multiple field" - contain a "count" attribute of 1). This can be used to - detect "multiple fields" in the result set. See the example - shown in the sesam_query description - for a sample use of the "count" attribute. - + string $arr[col]["count"] + + The "count" attribute describes the repetition factor when + the column has been declared as a "multiple field". Usually, + the "count" attribute is 1. The first column of a "multiple + field" column however contains the number of repetitions + (the second and following column of the "multiple field" + contain a "count" attribute of 1). This can be used to + detect "multiple fields" in the result set. See the example + shown in the sesam_query description + for a sample use of the "count" attribute. + - string $arr[col]["type"] - - PHP variable type of the data for - column(col), where col - is between 0 and $arr["count"]-1. The - returned value can be one of - - - integer - - - float - - - string - - - depending on the SQL type of the result. SESAM "multiple - fields" are "inlined" and treated like the respective number - of columns, each with the same PHP type. - - - - string $arr[col]["sqltype"] - - SQL variable type of the column data for - column(col), where col - is between 0 and $arr["count"]-1. The - returned value can be one of - - - "CHARACTER" - - - "VARCHAR" - - - "NUMERIC" - - - "DECIMAL" - - - "INTEGER" - - - "SMALLINT" - - - "FLOAT" - - - "REAL" - - - "DOUBLE" - - - "DATE" - - - "TIME" - - - "TIMESTAMP" - - - describing the SQL type of the result. SESAM "multiple - fields" are "inlined" and treated like the respective number - of columns, each with the same SQL type. - - - - string $arr[col]["length"] - - The SQL "length" attribute of the SQL variable in - column(col), where col - is between 0 and $arr["count"]-1. The - "length" attribute is used with "CHARACTER" and "VARCHAR" - SQL types to specify the (maximum) length of the string - variable. SESAM "multiple fields" are "inlined" and treated - like the respective number of columns, each with the same - length attribute. - - - - string $arr[col]["precision"] - - The "precision" attribute of the SQL variable in - column(col), where col - is between 0 and $arr["count"]-1. The - "precision" attribute is used with numeric and time data - types. SESAM "multiple fields" are "inlined" and treated - like the respective number of columns, each with the same - precision attribute. - - - - string $arr[col]["scale"] - - The "scale" attribute of the SQL variable in - column(col), where col - is between 0 and $arr["count"]-1. The - "scale" attribute is used with numeric data types. SESAM - "multiple fields" are "inlined" and treated like the - respective number of columns, each with the same scale - attribute. - - + string $arr[col]["type"] + + PHP variable type of the data for + column(col), where col + is between 0 and $arr["count"]-1. The + returned value can be one of + + + integer + + + float + + + string + + + depending on the SQL type of the result. SESAM "multiple + fields" are "inlined" and treated like the respective number + of columns, each with the same PHP type. + + + + string $arr[col]["sqltype"] + + SQL variable type of the column data for + column(col), where col + is between 0 and $arr["count"]-1. The + returned value can be one of + + + "CHARACTER" + + + "VARCHAR" + + + "NUMERIC" + + + "DECIMAL" + + + "INTEGER" + + + "SMALLINT" + + + "FLOAT" + + + "REAL" + + + "DOUBLE" + + + "DATE" + + + "TIME" + + + "TIMESTAMP" + + + describing the SQL type of the result. SESAM "multiple + fields" are "inlined" and treated like the respective number + of columns, each with the same SQL type. + + + + string $arr[col]["length"] + + The SQL "length" attribute of the SQL variable in + column(col), where col + is between 0 and $arr["count"]-1. The + "length" attribute is used with "CHARACTER" and "VARCHAR" + SQL types to specify the (maximum) length of the string + variable. SESAM "multiple fields" are "inlined" and treated + like the respective number of columns, each with the same + length attribute. + + + + string $arr[col]["precision"] + + The "precision" attribute of the SQL variable in + column(col), where col + is between 0 and $arr["count"]-1. The + "precision" attribute is used with numeric and time data + types. SESAM "multiple fields" are "inlined" and treated + like the respective number of columns, each with the same + precision attribute. + + + + string $arr[col]["scale"] + + The "scale" attribute of the SQL variable in + column(col), where col + is between 0 and $arr["count"]-1. The + "scale" attribute is used with numeric data types. SESAM + "multiple fields" are "inlined" and treated like the + respective number of columns, each with the same scale + attribute. + +
ERROR: ". - htmlspecialchars($err["errmsg"]) . "
\n";
         $errstmt = $exec_str . "\n";
diff --git a/reference/sesam/functions/sesam-fetch-result.xml b/reference/sesam/functions/sesam-fetch-result.xml
index 6a157430bb..1ff9ede213 100644
--- a/reference/sesam/functions/sesam-fetch-result.xml
+++ b/reference/sesam/functions/sesam-fetch-result.xml
@@ -1,5 +1,5 @@
 
-
+
 
   
    
@@ -24,54 +24,54 @@
       
        
diff --git a/reference/sesam/functions/sesam-seek-row.xml b/reference/sesam/functions/sesam-seek-row.xml index a9dcdd1ca7..7f58a64bee 100644 --- a/reference/sesam/functions/sesam-seek-row.xml +++ b/reference/sesam/functions/sesam-seek-row.xml @@ -1,5 +1,5 @@ - + @@ -31,59 +31,59 @@ - Value - Constant - Meaning + Value + Constant + Meaning - 0 - SESAM_SEEK_NEXT - read sequentially + 0 + SESAM_SEEK_NEXT + read sequentially - 1 - SESAM_SEEK_PRIOR - read sequentially backwards - + 1 + SESAM_SEEK_PRIOR + read sequentially backwards + - 2 - SESAM_SEEK_FIRST - - fetch first row (after fetch, the default is set to - SESAM_SEEK_NEXT) - + 2 + SESAM_SEEK_FIRST + + fetch first row (after fetch, the default is set to + SESAM_SEEK_NEXT) + - 3 - SESAM_SEEK_LAST - - fetch last row (after fetch, the default is set to - SESAM_SEEK_PRIOR) - + 3 + SESAM_SEEK_LAST + + fetch last row (after fetch, the default is set to + SESAM_SEEK_PRIOR) + - 4 - SESAM_SEEK_ABSOLUTE - - fetch absolute row number given as - offset (Zero-based. After fetch, the - default is set to SESAM_SEEK_ABSOLUTE, - and the offset value is auto-incremented) - + 4 + SESAM_SEEK_ABSOLUTE + + fetch absolute row number given as + offset (Zero-based. After fetch, the + default is set to SESAM_SEEK_ABSOLUTE, + and the offset value is auto-incremented) + - 5 - SESAM_SEEK_RELATIVE - - fetch relative to current scroll position, where - offset can be a positive or negative - offset value (this also sets the default "offset" value for - subsequent fetches). - + 5 + SESAM_SEEK_RELATIVE + + fetch relative to current scroll position, where + offset can be a positive or negative + offset value (this also sets the default "offset" value for + subsequent fetches). + diff --git a/reference/sesam/functions/sesam-settransaction.xml b/reference/sesam/functions/sesam-settransaction.xml index a2d0b1a55a..a705f5beda 100644 --- a/reference/sesam/functions/sesam-settransaction.xml +++ b/reference/sesam/functions/sesam-settransaction.xml @@ -1,5 +1,5 @@ - + @@ -43,31 +43,31 @@ - Value - Constant - Meaning + Value + Constant + Meaning - 1 - SESAM_TXISOL_READ_UNCOMMITTED - Read Uncommitted + 1 + SESAM_TXISOL_READ_UNCOMMITTED + Read Uncommitted - 2 - SESAM_TXISOL_READ_COMMITTED - Read Committed + 2 + SESAM_TXISOL_READ_COMMITTED + Read Committed - 3 - SESAM_TXISOL_REPEATABLE_READ - Repeatable Read + 3 + SESAM_TXISOL_REPEATABLE_READ + Repeatable Read - 4 - SESAM_TXISOL_SERIALIZABLE - Serializable + 4 + SESAM_TXISOL_SERIALIZABLE + Serializable @@ -79,21 +79,21 @@ - Value - Constant - Meaning + Value + Constant + Meaning - 0 - SESAM_TXREAD_READWRITE - Read/Write + 0 + SESAM_TXREAD_READWRITE + Read/Write - 1 - SESAM_TXREAD_READONLY - Read-Only + 1 + SESAM_TXREAD_READONLY + Read-Only