List:General Discussion« Previous MessageNext Message »
From:Vivek Khera Date:March 14 2001 9:50pm
Subject:Re: HOWTO: Get column types & enum values using perl
View as plain text  
>>>>> "MW" == Mark Worsdall <mysql@stripped> 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 SRING<BR>";
MW> }

Perhaps you mean

if ($$types[0] == &Mysql::FIELD_TYPE_STRING)

you are doing an assignment, not a comparison.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@stripped       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/
Thread
Problem with replicationRick Jansen - Tweakers.net11 Mar
  • Re: Problem with replicationJeremy D. Zawodny11 Mar
    • RE: Problem with replicationRick Jansen - Tweakers.net11 Mar
      • Re: Problem with replicationJeremy D. Zawodny11 Mar
        • RE: Problem with replicationRick Jansen - Tweakers.net11 Mar
      • HOWTO: Get field types?Mark Worsdall13 Mar
        • HOWTO: Get column types & enum values using perlMark Worsdall14 Mar
          • Re: HOWTO: Get column types & enum values using perlVivek Khera14 Mar
    • Remove or Unsubscribemysql13 Mar
Re: HOWTO: Get column types & enum values using perlMark Worsdall14 Mar