MYSQL_FIELD

2005-02-23 Thread Mohsen Pahlevanzadeh
Dears, My code is : void CMysql::ReadingFld(const char *tblname) { MYSQL_RES *fldres; int i; fldres=mysql_list_fields(&connection2db,tblname,"%"); ptr.srcFldNumber=mysql_num_fields(fldres); FieldsRow=mysql_fetch_fields(fldres); for (i=0;ihttp://lists.mysql.com/mysql To unsubscribe:http:

Bug: MYSQL_FIELD->flags indicates NOT NULL with aggregates

2003-01-24 Thread Matt Solnit
>Description: The mysql_fetch_field() function returns a MYSQL_FIELD structure with the flags field set to a value including NOT_NULL_FLAG even if the field is an aggregate, if that aggregate is on the primary key. If there are no rows in the table, then MAX(pri_key_column) will return N

help: MYSQL_FIELD

2002-03-31 Thread James Gosnell
Is there a way I can save the members that I manipulate in the MYSQL_FIELD struct? MYSQL_FIELD *field; field->name = "newcolumnname"; How could I save this as the new column name? Thanks -- Romans 12:9 "Let love be without hypocrisy. Abhor what is evil. Clin

SET type columns and MYSQL_FIELD->length

2001-05-03 Thread Zak Greant
Good Day! I am working on the MySQL section of a reference manual for PHP and need to confirm one small detail on the length of SET type columns. It looks like the MYSQL_FIELD->length value for SET columns is the length of a string containing the SET elements separated by commas. Is this ri