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++