]> granicus.if.org Git - php/commitdiff
- fix build (declaration must be first)
authorPierre Joye <pajoye@php.net>
Mon, 3 May 2010 19:29:05 +0000 (19:29 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 3 May 2010 19:29:05 +0000 (19:29 +0000)
ext/oci8/oci8.c

index 74a3e00f1f39a2f4bb0697dff3855ba5a02c940f..58ade41fa543a393f53f6312c445405c86fd60de 100644 (file)
@@ -1638,10 +1638,10 @@ sb4 php_oci_fetch_errmsg(OCIError *error_handle, text **error_buf TSRMLS_DC)
  */
 int php_oci_fetch_sqltext_offset(php_oci_statement *statement, text **sqltext, ub2 *error_offset TSRMLS_DC)
 {
-       *sqltext = NULL;
-       *error_offset = 0;
        sword errstatus;
 
+       *sqltext = NULL;
+       *error_offset = 0;
        PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)statement->stmt, OCI_HTYPE_STMT, (dvoid *) sqltext, (ub4 *)0, OCI_ATTR_STATEMENT, statement->err));
 
        if (errstatus != OCI_SUCCESS) {