asnsme fox
This commit is contained in:
parent
1f8d24596d
commit
d325118976
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ if options.renderer == "mapnik":
|
|||
if escape:
|
||||
escape = escape_sql_column
|
||||
else:
|
||||
escape = lambda i:'"'+i+'"'
|
||||
escape = lambda i, asname=False:'"'+i+'"'
|
||||
for i in itags:
|
||||
if i in numerics:
|
||||
tt.add("""(CASE WHEN %s ~ E'^[[:digit:]]+([.][[:digit:]]+)?$' THEN CAST (%s AS FLOAT) ELSE NULL END) as %s__num"""%(escape(i),escape(i),i))
|
||||
|
|
Loading…
Add table
Reference in a new issue