vanstyn / RapidApp

Turnkey ajaxy webapps
http://rapi.io
Other
48 stars 15 forks source link

mysql problem with view #175

Open huguesmax opened 7 years ago

huguesmax commented 7 years ago

Hello I've mysql database with some views un error appear in RapidApp/Util/RapidDbic/CfgWriter.pm line 447

$->content eq $key || $->content =~ /^('|"){1}${key}('|"){1}$/

when $key = count(*)

I patch to pass the problem

if ( $key ne "count(*)" ) { $->content eq $key || $->content =~ /^('|"){1}${key}('|"){1}$/ }