Skip to content

Commit

Permalink
Fix (#1616): INSERT INTO with a SELECT * FROM and a subquery throws e…
Browse files Browse the repository at this point in the history
…xception (#1624)
  • Loading branch information
ambujsahu81 authored Jan 19, 2023
1 parent bfc65eb commit 0e8a555
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/70insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ yy.Insert.prototype.compile = function (databaseid) {
// INSERT INTO table SELECT
} else if (this.select) {
this.select.modifier = 'RECORDSET';
if (this.queries) {
this.select.queries = this.queries;
}
var selectfn = this.select.compile(databaseid);
if (db.engineid && alasql.engines[db.engineid].intoTable) {
var statement = function (params, cb) {
Expand Down

0 comments on commit 0e8a555

Please sign in to comment.