From dbf411c52792587786b2f258ffda18bff0c3a8c5 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 20 Oct 2011 10:24:37 +0200 Subject: Use cached auto_id flag to determine presence of auto increment column --- odb/relational/header.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/relational/header.hxx') diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index b0deeee..2416f04 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -975,7 +975,7 @@ namespace relational " id_type;" << endl << "static const bool auto_id = " << - (id_member (c)->count ("auto") ? "true;" : "false;") + (auto_id ? "true;" : "false;") << endl; os << "struct id_image_type" -- cgit v1.1