5 messages in com.mysql.lists.perlRe: [PATCH] add mysql_is_auto_increme...
FromSent OnAttachments
Paul Walmsley10 Apr 2002 19:38 
Jochen Wiedmann11 Apr 2002 00:18 
Paul Walmsley11 Apr 2002 10:32 
Jochen Wiedmann11 Apr 2002 23:45 
Jochen Wiedmann12 Apr 2002 00:07 
Subject:Re: [PATCH] add mysql_is_auto_increment sth attribute
From:Jochen Wiedmann (jo@ispsoft.de)
Date:04/11/2002 12:18:47 AM
List:com.mysql.lists.perl

Quoting Paul Walmsley <shag@booyaka.com>:

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