From: Warren Young Date: May 20 2011 5:14am Subject: Re: SSQLS: Number of colomns in a table List-Archive: http://lists.mysql.com/plusplus/9357 Message-Id: <4DD5F8B7.9040503@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/19/2011 2:45 PM, Warren Young wrote: >> $create_list .= " if (i$j == NAME##_NULL) return;\n" unless $i == 1; > > You can use NAME##::field_count here. I don't know what I was smoking at the time, but I just realized that the token pasting operator is totally unneeded here. NAME::field_count is just fine. Maybe even just "field_count", depending on the context.