MFB: fixed compiler warnings

This commit is contained in:
Ilia Alshanetsky 2006-11-16 17:34:42 +00:00
parent 9da991dd50
commit 56742f85a5
2 changed files with 4 additions and 1 deletions

View file

@ -158,8 +158,9 @@ static int pgsql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param,
enum pdo_param_event event_type TSRMLS_DC)
{
pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
#if HAVE_PQPREPARE
pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
if (S->stmt_name && param->is_param) {
switch (event_type) {
case PDO_PARAM_EVT_ALLOC: