processor.Execute() must use custom table if provided.

This commit is contained in:
Andy Truong 2020-07-10 10:04:35 +10:00
parent bc3728a18f
commit 3db62520b7
No known key found for this signature in database
GPG Key ID: 37D6D97FF6D6DFB0

View File

@ -96,6 +96,12 @@ func (p *processor) Execute(db *DB) {
}
}
if nil != stmt.Schema {
if stmt.Table != stmt.Schema.Table {
stmt.Schema.Table = stmt.Table
}
}
for _, f := range p.fns {
f(db)
}