List:MySQL and Perl« Previous MessageNext Message »
From:Jochen Wiedmann Date:April 11 2002 7:19am
Subject:Re: [PATCH] add mysql_is_auto_increment sth attribute
View as plain text  
Quoting Paul Walmsley <shag-dbdmysql@stripped>:

> 
> This patch, enclosed below, adds a 'mysql_is_auto_increment' statement
> handle attribute to DBD::mysql.  It operates similarly to statement
> handle
> attributes such as 'mysql_is_pri_key' or 'mysql_is_num'.

Thanks, just a technical question:


> +#define IS_AUTO_INCREMENT(A) (((A) & AUTO_INCREMENT_FLAG) != 0)

is it safe to assume that the AUTO_INCREMENT_FLAG
definition is present? Can't we use an additional

#if defined(AUTO_INCREMENT_FLAG)

Thanks,

Jochen

Thread
[PATCH] add mysql_is_auto_increment sth attributePaul Walmsley11 Apr
  • Re: [PATCH] add mysql_is_auto_increment sth attributeJochen Wiedmann11 Apr
    • Re: [PATCH] add mysql_is_auto_increment sth attributePaul Walmsley11 Apr
      • Re: [PATCH] add mysql_is_auto_increment sth attributeJochen Wiedmann12 Apr
  • Re: [PATCH] add mysql_is_auto_increment sth attributeJochen Wiedmann12 Apr