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:
parent
8705db5844
commit
4a6d161c08
@ -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++
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user