Bug #2211 field->def contains invalid values (embedded)
Submitted: 25 Dec 2003 10:21 Modified: 14 Feb 2004 6:10
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S3 (Non-critical)
Version:4.1.2 OS:Linux (Linux)
Assigned to: Alexey Botchkov CPU Architecture:Any

[25 Dec 2003 10:21] Georg Richter
Description:
field->def contains invalid values (empty string).

Output from how-to-repeat code:

libmysqlclient:
Default: (null)
Default: foobar

embedded server:
Default:
Default:

How to repeat:
...
mysql_query(mysql, "DROP TABLE IF EXISTS foo");
mysql_query(mysql, "CREATE TABLE foo (a int, b varchar(10) default 'foobar')");

res = mysql_list_fields(mysql, "foo",NULL);

for (i=0; i < 2; i++) {
	field= mysql_fetch_field_direct(res,i);
	printf("Default: %s\n", field->def);
}

mysql_free_result(res);
...
[14 Feb 2004 6:10] Alexey Botchkov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

bk commit - 4.1 tree (hf:1.1721) (13 Feb 2004)