File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ fn prepare_one_select_plan(
518518 result_columns. push ( ResultSetColumn {
519519 // these result_columns work as placeholders for the values, so the expr doesn't matter
520520 expr : ast:: Expr :: Literal ( ast:: Literal :: Numeric ( i. to_string ( ) ) ) ,
521- alias : None ,
521+ alias : Some ( format ! ( "column{}" , i + 1 ) ) ,
522522 contains_aggregates : false ,
523523 } ) ;
524524 }
Original file line number Diff line number Diff line change @@ -1244,6 +1244,11 @@ do_execsql_test_on_specific_db {:memory:} affinity-conversion-2 {
12441244 SELECT * FROM t WHERE a == 2;
12451245} {2}
12461246
1247+ # https://github.com/tursodatabase/turso/issues/3950
1248+ do_execsql_test select-values-column-name {
1249+ SELECT column1 FROM (VALUES(123));
1250+ } {123}
1251+
12471252# Test suite for SQLite affinity conversion in WHERE clauses
12481253
12491254# ============================================
@@ -1469,3 +1474,4 @@ do_execsql_test_on_specific_db {:memory:} affinity-conversion-22 {
14691474# CREATE INDEX idx20 ON t20(lower(name));
14701475# SELECT * FROM t20 WHERE lower(name) = 'abc';
14711476# } {ABC abc}
1477+
You can’t perform that action at this time.
0 commit comments