1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

orm: postgres fixes

This commit is contained in:
Alexander Medvednikov 2021-09-30 20:00:23 +03:00
parent 8705db5844
commit 4a6d161c08
2 changed files with 4 additions and 2 deletions

View File

@ -282,7 +282,7 @@ pub fn orm_select_gen(orm SelectConfig, para string, num bool, qm string, start_
}
if orm.has_limit {
str += ' LIMIT ?'
str += ' LIMIT $qm'
if num {
str += '$c'
c++
@ -290,7 +290,7 @@ pub fn orm_select_gen(orm SelectConfig, para string, num bool, qm string, start_
}
if orm.has_offset {
str += ' OFFSET ?'
str += ' OFFSET $qm'
if num {
str += '$c'
c++

View File

@ -5,6 +5,8 @@ import io
#flag -lpq
#flag linux -I/usr/include/postgresql
#flag darwin -I/opt/local/include/postgresql11
#flag darwin -I/opt/homebrew/include
#flag darwin -L/opt/homebrew/lib
#flag windows -I @VEXEROOT/thirdparty/pg/include
#flag windows -L @VEXEROOT/thirdparty/pg/win64