Open macneale4 opened 1 year ago
Probably the easiest thing to do is show you code:
https://github.com/dolthub/dolt/pull/new/macneale4/prepared-bug-report
This temporary test shows a enginetest script which passes without trouble with enginetest.TestScript but fails with enginetest.TestScriptPrepared
enginetest.TestScript
enginetest.TestScriptPrepared
The thing which distinguishes the failing queries is that they contain as of.
as of
When running the following query:
select * from test as of 'HEAD' where pk = 2;
The following error is generated:
column "pk" could not be found in any table in scope
But the query works fine if you remove as of 'HEAD'
as of 'HEAD'
When we were debugging this, expandStars was failing to convert the star expression in his example projection. That's as far as we got.
expandStars
Probably the easiest thing to do is show you code:
https://github.com/dolthub/dolt/pull/new/macneale4/prepared-bug-report
This temporary test shows a enginetest script which passes without trouble with
enginetest.TestScript
but fails withenginetest.TestScriptPrepared
The thing which distinguishes the failing queries is that they contain
as of
.When running the following query:
select * from test as of 'HEAD' where pk = 2;
The following error is generated:
column "pk" could not be found in any table in scope
But the query works fine if you remove
as of 'HEAD'