apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Firat Sarlar <sfi...@yahoo.com>
Subject Re: [PATCH] add some flags to apr_dbd_mysql flags parameter
Date Fri, 29 Jul 2011 23:00:18 GMT
if (fields[6].value != NULL)
{
	if(strstr(fields[6].value, "CLIENT_LONG_PASSWORD")) flags |= 
CLIENT_LONG_PASSWORD;
	if(strstr(fields[6].value, "CLIENT_FOUND_ROWS")) flags |= 
CLIENT_FOUND_ROWS;
	if(strstr(fields[6].value, "CLIENT_LONG_FLAG")) flags |= 
CLIENT_LONG_FLAG;
	if(strstr(fields[6].value, "CLIENT_CONNECT_WITH_DB")) flags |= 
CLIENT_CONNECT_WITH_DB;

	if(strstr(fields[6].value, "CLIENT_NO_SCHEMA")) flags |= 
CLIENT_NO_SCHEMA;
	if(strstr(fields[6].value, "CLIENT_COMPRESS")) flags |= CLIENT_COMPRESS;
	if(strstr(fields[6].value, "CLIENT_ODBC")) flags |= CLIENT_ODBC;
	if(strstr(fields[6].value, "CLIENT_LOCAL_FILES")) flags |= 
CLIENT_LOCAL_FILES;
	if(strstr(fields[6].value, "CLIENT_IGNORE_SPACE")) flags |= 
CLIENT_IGNORE_SPACE;
	if(strstr(fields[6].value, "CLIENT_PROTOCOL_41")) flags |= 
CLIENT_PROTOCOL_41;
	if(strstr(fields[6].value, "CLIENT_INTERACTIVE")) flags |= 
CLIENT_INTERACTIVE;
	if(strstr(fields[6].value, "CLIENT_SSL")) flags |= CLIENT_SSL;

	if(strstr(fields[6].value, "CLIENT_IGNORE_SIGPIPE")) flags |= 
CLIENT_IGNORE_SIGPIPE;
	if(strstr(fields[6].value, "CLIENT_TRANSACTIONS")) flags |= 
CLIENT_TRANSACTIONS;
	if(strstr(fields[6].value, "CLIENT_RESERVED")) flags |= CLIENT_RESERVED;
	if(strstr(fields[6].value, "CLIENT_SECURE_CONNECTION")) flags |= 
CLIENT_SECURE_CONNECTION;
	if(strstr(fields[6].value, "CLIENT_MULTI_STATEMENTS")) flags |= 
CLIENT_MULTI_STATEMENTS;
	if(strstr(fields[6].value, "CLIENT_MULTI_RESULTS")) flags |= 
CLIENT_MULTI_RESULTS;
	if(strstr(fields[6].value, "CLIENT_REMEMBER_OPTIONS")) flags |= 
CLIENT_REMEMBER_OPTIONS;
}


Mime
View raw message