orm: postgres fixes
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 {
|
if orm.has_limit {
|
||||||
str += ' LIMIT ?'
|
str += ' LIMIT $qm'
|
||||||
if num {
|
if num {
|
||||||
str += '$c'
|
str += '$c'
|
||||||
c++
|
c++
|
||||||
|
@ -290,7 +290,7 @@ pub fn orm_select_gen(orm SelectConfig, para string, num bool, qm string, start_
|
||||||
}
|
}
|
||||||
|
|
||||||
if orm.has_offset {
|
if orm.has_offset {
|
||||||
str += ' OFFSET ?'
|
str += ' OFFSET $qm'
|
||||||
if num {
|
if num {
|
||||||
str += '$c'
|
str += '$c'
|
||||||
c++
|
c++
|
||||||
|
|
|
@ -5,6 +5,8 @@ import io
|
||||||
#flag -lpq
|
#flag -lpq
|
||||||
#flag linux -I/usr/include/postgresql
|
#flag linux -I/usr/include/postgresql
|
||||||
#flag darwin -I/opt/local/include/postgresql11
|
#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 -I @VEXEROOT/thirdparty/pg/include
|
||||||
#flag windows -L @VEXEROOT/thirdparty/pg/win64
|
#flag windows -L @VEXEROOT/thirdparty/pg/win64
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue