note 33510 added to function.mysql-connect

From: Date: Sat, 28 Jun 2003 04:55:09 +0000
Subject: note 33510 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-51127@lists.php.net to get a copy of this message
client_flags can be things other than MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE and MYSQL_CLIENT_INTERACTIVE. I presume that mysql_connect() just passes through to the C MySQL API, which provides these constants: #define CLIENT_LONG_PASSWORD 1 /* new more secure passwords */ #define CLIENT_FOUND_ROWS 2 /* Found instead of affected rows */ #define CLIENT_LONG_FLAG 4 /* Get all column flags */ #define CLIENT_CONNECT_WITH_DB 8 /* One can specify db on connect */ #define CLIENT_NO_SCHEMA 16 /* Don't allow database.table.column */ #define CLIENT_COMPRESS 32 /* Can use compression protocol */ #define CLIENT_ODBC 64 /* Odbc client */ #define CLIENT_LOCAL_FILES 128 /* Can use LOAD DATA LOCAL */ #define CLIENT_IGNORE_SPACE 256 /* Ignore spaces before '(' */ #define CLIENT_CHANGE_USER 512 /* Support the mysql_change_user() */ #define CLIENT_INTERACTIVE 1024 /* This is an interactive client */ #define CLIENT_SSL 2048 /* Switch to SSL after handshake */ #define CLIENT_IGNORE_SIGPIPE 4096 /* IGNORE sigpipes */ #define CLIENT_TRANSACTIONS 8192 /* Client knows about transactions */ Not all of these may work or be meaningful, but CLIENT_FOUND_ROWS does, at least. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33510 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33510&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33510&report=yes

« previous php.notes (#51127) next »