1
0
forked from MTSR/mapserver

fix pq sql replacement char

This commit is contained in:
Thomas Rudin 2020-01-19 15:34:20 +01:00
parent f42d867d16
commit 64a6cff429

View File

@ -11,7 +11,7 @@ where o.type = $1
and o.posx >= $2 and o.posy >= $3 and o.posz >= $4 and o.posx >= $2 and o.posy >= $3 and o.posz >= $4
and o.posx <= $5 and o.posy <= $6 and o.posz <= $7 and o.posx <= $5 and o.posy <= $6 and o.posz <= $7
order by o.id order by o.id
limit ?8 limit $8
` `
const getMapDataWithAttributeLikePosQuery = ` const getMapDataWithAttributeLikePosQuery = `
select o.id, o.type, o.mtime, select o.id, o.type, o.mtime,
@ -27,7 +27,7 @@ and o.type = $1
and o.posx >= $2 and o.posy >= $3 and o.posz >= $4 and o.posx >= $2 and o.posy >= $3 and o.posz >= $4
and o.posx <= $5 and o.posy <= $6 and o.posz <= $7 and o.posx <= $5 and o.posy <= $6 and o.posz <= $7
order by o.id order by o.id
limit ?10 limit $10
` `
const removeMapDataQuery = ` const removeMapDataQuery = `