fixes confusing SQLDescribeParam error message
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 16 Apr 2015 02:12:11 +0000 (04:12 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 16 Apr 2015 02:12:11 +0000 (04:12 +0200)
ext/odbc/php_odbc.c

index 322ec95777367a337f1c18d00d4d2084fa1d3e58..250be579222aac9a0491a1183ccf99f8f5d20c36 100644 (file)
@@ -1313,7 +1313,7 @@ PHP_FUNCTION(odbc_execute)
                        params[i-1].vallen = Z_STRLEN_P(tmp);
                        params[i-1].fp = -1;
                        if (rc == SQL_ERROR) {
-                               odbc_sql_error(result->conn_ptr, result->stmt, "SQLDescribeParameter"); 
+                               odbc_sql_error(result->conn_ptr, result->stmt, "SQLDescribeParam");
                                SQLFreeStmt(result->stmt, SQL_RESET_PARAMS);
                                for (i = 0; i < result->numparams; i++) {
                                        if (params[i].fp != -1) {