mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
orm: fix last_id() call in mysql (#12173)
This commit is contained in:
parent
5bfa3d5530
commit
5b9553d5c4
@ -105,7 +105,7 @@ pub fn (db Connection) delete(table string, where orm.QueryData) ? {
|
||||
}
|
||||
|
||||
pub fn (db Connection) last_id() orm.Primitive {
|
||||
query := 'SELECT last_insert_rowid();'
|
||||
query := 'SELECT last_insert_id();'
|
||||
id := db.query(query) or {
|
||||
Result{
|
||||
result: 0
|
||||
|
Loading…
Reference in New Issue
Block a user