Lines Matching refs:mysql_field
2024 MYSQL_FIELD *mysql_field; local
2076 for (mysql_field = mysql_fetch_field(mysql_result), i = 0;
2077 mysql_field;
2078 mysql_field = mysql_fetch_field(mysql_result), i++)
2099 add_assoc_zval(return_value, mysql_field->name, data);
2108 add_assoc_null(return_value, mysql_field->name);
2361 const MYSQL_FIELD *mysql_field; local
2376 if ((mysql_field=mysql_fetch_field(mysql_result))==NULL) {
2381 add_property_string(return_value, "name", (char *) (mysql_field->name?mysql_field->name:""), 1);
2382 add_property_string(return_value, "table",(char *) (mysql_field->table?mysql_field->table:""), 1);
2383 add_property_string(return_value, "def",(mysql_field->def?mysql_field->def:""), 1);
2384 add_property_long(return_value, "max_length", mysql_field->max_length);
2385 add_property_long(return_value, "not_null", IS_NOT_NULL(mysql_field->flags)?1:0);
2386 add_property_long(return_value, "primary_key", IS_PRI_KEY(mysql_field->flags)?1:0);
2387 add_property_long(return_value, "multiple_key",(mysql_field->flags&MULTIPLE_KEY_FLAG?1:0));
2388 add_property_long(return_value, "unique_key",(mysql_field->flags&UNIQUE_KEY_FLAG?1:0));
2389 add_property_long(return_value, "numeric", IS_NUM(Z_TYPE_P(mysql_field))?1:0);
2390 add_property_long(return_value, "blob", IS_BLOB(mysql_field->flags)?1:0);
2391 add_property_string(return_value, "type", php_mysql_get_field_name(Z_TYPE_P(mysql_field)), 1);
2392 add_property_long(return_value, "unsigned",(mysql_field->flags&UNSIGNED_FLAG?1:0));
2393 add_property_long(return_value, "zerofill",(mysql_field->flags&ZEROFILL_FLAG?1:0));
2434 const MYSQL_FIELD *mysql_field = {0}; local
2449 if ((mysql_field=mysql_fetch_field(mysql_result))==NULL) {
2455 Z_STRLEN_P(return_value) = strlen(mysql_field->name);
2456 Z_STRVAL_P(return_value) = estrndup(mysql_field->name, Z_STRLEN_P(return_value));
2460 Z_STRLEN_P(return_value) = strlen(mysql_field->table);
2461 Z_STRVAL_P(return_value) = estrndup(mysql_field->table, Z_STRLEN_P(return_value));
2465 Z_LVAL_P(return_value) = mysql_field->length;
2469 Z_STRVAL_P(return_value) = php_mysql_get_field_name(Z_TYPE_P(mysql_field));
2477 if (IS_NOT_NULL(mysql_field->flags)) {
2482 if (IS_PRI_KEY(mysql_field->flags)) {
2487 if (mysql_field->flags&UNIQUE_KEY_FLAG) {
2492 if (mysql_field->flags&MULTIPLE_KEY_FLAG) {
2497 if (IS_BLOB(mysql_field->flags)) {
2502 if (mysql_field->flags&UNSIGNED_FLAG) {
2507 if (mysql_field->flags&ZEROFILL_FLAG) {
2512 if (mysql_field->flags&BINARY_FLAG) {
2517 if (mysql_field->flags&ENUM_FLAG) {
2522 if (mysql_field->flags&SET_FLAG) {
2527 if (mysql_field->flags&AUTO_INCREMENT_FLAG) {
2532 if (mysql_field->flags&TIMESTAMP_FLAG) {