mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fixed table var
This commit is contained in:
parent
6142a4a5d2
commit
4fdfe0d404
1 changed files with 2 additions and 2 deletions
|
@ -86,8 +86,8 @@ class sqlite_sql_generator extends sql_generator {
|
|||
}
|
||||
|
||||
// From http://sqlite.org/autoinc.html
|
||||
$value = (int)$this->mdb->get_field_sql('SELECT MAX(id) FROM {'.$tablename.'}');
|
||||
return array("UPDATE sqlite_sequence SET seq=$value WHERE name='$this->prefix$tablename'");
|
||||
$value = (int)$this->mdb->get_field_sql('SELECT MAX(id) FROM {'.$table.'}');
|
||||
return array("UPDATE sqlite_sequence SET seq=$value WHERE name='{$this->prefix}{$table}'");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue