cvs: pecl /pdo_pgsql pgsql_driver.c

From: Date: Sat, 12 Feb 2005 20:55:29 +0000
Subject: cvs: pecl /pdo_pgsql pgsql_driver.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-2519@lists.php.net to get a copy of this message
iliaa Sat Feb 12 15:55:29 2005 EDT Modified files: /pecl/pdo_pgsql pgsql_driver.c Log: Simplify code and fix compiler warning. http://cvs.php.net/diff.php/pecl/pdo_pgsql/pgsql_driver.c?r1=1.33&r2=1.34&ty=u Index: pecl/pdo_pgsql/pgsql_driver.c diff -u pecl/pdo_pgsql/pgsql_driver.c:1.33 pecl/pdo_pgsql/pgsql_driver.c:1.34 --- pecl/pdo_pgsql/pgsql_driver.c:1.33 Sat Feb 5 20:27:27 2005 +++ pecl/pdo_pgsql/pgsql_driver.c Sat Feb 12 15:55:28 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql_driver.c,v 1.33 2005/02/06 01:27:27 edink Exp $ */ +/* $Id: pgsql_driver.c,v 1.34 2005/02/12 20:55:28 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -124,7 +124,6 @@ { pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; pdo_pgsql_stmt *S = ecalloc(1, sizeof(pdo_pgsql_stmt)); - int ret = 1; int scrollable; S->H = H; @@ -136,12 +135,10 @@ PDO_CURSOR_FWDONLY TSRMLS_CC) == PDO_CURSOR_SCROLL; if (scrollable) { - int ret = 1; - - spprintf(&S->cursor_name, 0, "pdo_pgsql_cursor_%08x", stmt); + spprintf(&S->cursor_name, 0, "pdo_pgsql_cursor_%08x", (unsigned int) stmt); } - return ret; + return 1; } static long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC)

« previous php.pecl.cvs (#2519) next »