pike.git / src / modules / Mysql / mysql.cmod

version» Context lines:

pike.git/src/modules/Mysql/mysql.cmod:255:    }       MYSQL_DISALLOW();       DESTROY_MYSQL_LOCK();   }      EXTRA   {   #ifndef USE_OLD_FUNCTIONS -  add_integer_constant( "MYSQL_NO_ADD_DROP_DB", 1, 0 ); +  add_integer_constant( "MYSQL_NO_ADD_DROP_DB", 1, ID_OPTIONAL );   #endif    -  add_integer_constant( "CLIENT_COMPRESS", CLIENT_COMPRESS, 0); -  add_integer_constant( "CLIENT_FOUND_ROWS", CLIENT_FOUND_ROWS, 0); -  add_integer_constant( "CLIENT_IGNORE_SPACE", CLIENT_IGNORE_SPACE, 0); +  add_integer_constant( "CLIENT_COMPRESS", CLIENT_COMPRESS, ID_OPTIONAL); +  add_integer_constant( "CLIENT_FOUND_ROWS", CLIENT_FOUND_ROWS, ID_OPTIONAL); +  add_integer_constant( "CLIENT_IGNORE_SPACE", CLIENT_IGNORE_SPACE, ID_OPTIONAL);   #ifdef CLIENT_INTERACTIVE -  add_integer_constant( "CLIENT_INTERACTIVE", CLIENT_INTERACTIVE, 0); +  add_integer_constant( "CLIENT_INTERACTIVE", CLIENT_INTERACTIVE, ID_OPTIONAL);   #endif -  add_integer_constant( "CLIENT_NO_SCHEMA", CLIENT_NO_SCHEMA, 0); -  add_integer_constant( "CLIENT_ODBC", CLIENT_ODBC, 0); +  add_integer_constant( "CLIENT_NO_SCHEMA", CLIENT_NO_SCHEMA, ID_OPTIONAL); +  add_integer_constant( "CLIENT_ODBC", CLIENT_ODBC, ID_OPTIONAL);      #ifdef HAVE_MYSQL_SSL -  add_integer_constant( "CLIENT_SSL", CLIENT_SSL, 0); +  add_integer_constant( "CLIENT_SSL", CLIENT_SSL, ID_OPTIONAL);   #endif      #ifdef HAVE_MYSQL_FIELD_CHARSETNR -  add_integer_constant ("HAVE_MYSQL_FIELD_CHARSETNR", 1, 0); +  add_integer_constant ("HAVE_MYSQL_FIELD_CHARSETNR", 1, ID_OPTIONAL);   #endif       /* NB: Nest the Result program in the connection program. */    init_mysql_res_programs();   }       void pike_mysql_set_ssl(struct mapping *options)    {   #ifdef HAVE_MYSQL_SSL    char *ssl_key = NULL;