KN4CK3R
|
529a264d8e
|
Fix sqlite multiline query parse (#2367)
The app "DB Browser for SQLite" produces multiline queries in the `sqlite_master` table which xorm can't parse.
Examples:
```
CREATE TABLE "push_mirror"
(
id INTEGER not null
primary key autoincrement,
repo_id INTEGER,
remote_name TEXT,
interval INTEGER,
created_unix INTEGER,
last_update INTEGER,
last_error TEXT,
sync_on_commit INTEGER default 0 not null
, `remote_address` TEXT NULL)
```
```
CREATE INDEX "IDX_audit_event_action" ON "audit_event" (
"action"
)
```
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2367
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-committed-by: KN4CK3R <admin@oldschoolhack.me>
|
2023-12-01 07:07:35 +00:00 |