com php-src: cs: ext/pdo_oci/oci_statement.c

From: Date: Fri, 21 Sep 2018 11:35:45 +0000
Subject: com php-src: cs: ext/pdo_oci/oci_statement.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103284@lists.php.net to get a copy of this message
Commit: 19e64db933f56e0ed80a86c6f5b4cc66e7a5b4c3 Author: Letargie <valentin@famillecollet.com> Fri, 21 Sep 2018 13:35:45 +0200 Parents: 957ed3c622d3ad494c5a42d0353ec9d4edb7f0de Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=19e64db933f56e0ed80a86c6f5b4cc66e7a5b4c3 Log: cs Changed paths: M ext/pdo_oci/oci_statement.c Diff: diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c index 230da45..0c19369 100644 --- a/ext/pdo_oci/oci_statement.c +++ b/ext/pdo_oci/oci_statement.c @@ -840,7 +840,7 @@ static int oci_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_val (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); /* string column charset form */ - if(dtype == SQLT_CHR || dtype == SQLT_VCS || dtype == SQLT_AFC || dtype == SQLT_CLOB){ + if (dtype == SQLT_CHR || dtype == SQLT_VCS || dtype == SQLT_AFC || dtype == SQLT_CLOB) { STMT_CALL_MSG(OCIAttrGet, "OCI_ATTR_CHARSET_FORM", (param, OCI_DTYPE_PARAM, &charset_form, 0, OCI_ATTR_CHARSET_FORM, S->err)); } @@ -886,10 +886,10 @@ static int oci_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_val case SQLT_FLT : case SQLT_NUM: /* if the precision is nonzero and scale is -127 then it is a FLOAT */ - if(scale == -127 && precis != 0){ + if (scale == -127 && precis != 0) { add_assoc_string(return_value, "oci:decl_type", "FLOAT"); add_assoc_string(return_value, "native_type", "FLOAT"); - }else{ + } else { add_assoc_string(return_value, "oci:decl_type", "NUMBER"); add_assoc_string(return_value, "native_type", "NUMBER"); } @@ -908,19 +908,19 @@ static int oci_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_val break; case SQLT_CHR: case SQLT_VCS: - if(charset_form == SQLCS_NCHAR){ + if (charset_form == SQLCS_NCHAR) { add_assoc_string(return_value, "oci:decl_type", "NVARCHAR2"); add_assoc_string(return_value, "native_type", "NVARCHAR2"); - }else{ + } else { add_assoc_string(return_value, "oci:decl_type", "VARCHAR2"); add_assoc_string(return_value, "native_type", "VARCHAR2"); } break; case SQLT_AFC: - if(charset_form == SQLCS_NCHAR){ + if (charset_form == SQLCS_NCHAR) { add_assoc_string(return_value, "oci:decl_type", "NCHAR"); add_assoc_string(return_value, "native_type", "NCHAR"); - }else{ + } else { add_assoc_string(return_value, "oci:decl_type", "CHAR"); add_assoc_string(return_value, "native_type", "CHAR"); } @@ -931,10 +931,10 @@ static int oci_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_val add_assoc_string(return_value, "native_type", "BLOB"); break; case SQLT_CLOB: - if(charset_form == SQLCS_NCHAR){ + if (charset_form == SQLCS_NCHAR) { add_assoc_string(return_value, "oci:decl_type", "NCLOB"); add_assoc_string(return_value, "native_type", "NCLOB"); - }else{ + } else { add_assoc_string(return_value, "oci:decl_type", "CLOB"); add_assoc_string(return_value, "native_type", "CLOB"); }

« previous php.cvs (#103284) next »