HOWTO: Get column types enum values using perl

2001-03-14 Thread Mark Worsdall
Hi, I posted before but the help did not yield any success, sorry but thanks. Any one else help? In message [EMAIL PROTECTED], Mark Worsdall [EMAIL PROTECTED] writes Hi, I am trying to read the field types (as well as 1 row of data and the field names), but I cannot seem to manage it. Any

Re: HOWTO: Get column types enum values using perl

2001-03-14 Thread Mark Worsdall
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes $sth-{TYPE} returns a reference to an array of types. $types = $sth-{TYPE} if ($$type[0] = Mysql::FIELD_TYPE_STRING) (I don't know about the Mysql::FIELD_TYPE_STRING, but $$type[0] is the type of the first field.) When I do this:- my

Re: HOWTO: Get column types enum values using perl

2001-03-14 Thread Vivek Khera
"MW" == Mark Worsdall [EMAIL PROTECTED] writes: MW When I do this:- MW my $types = $sth-{TYPE}; MW # MW if ($$types[0] = Mysql::FIELD_TYPE_STRING) { MW print "Type is a SRINGBR"; MW } Perhaps you mean if ($$types[0] == Mysql::FIELD_TYPE_STRING) you are doing an assignment, not a