You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
droptable if exists test1;
droptable if exists schema3.test3;
CREATETABLEtest1(`id`int(10) unsigned NOT NULL,`t_id`int(10) unsigned NOT NULL DEFAULT '0',`name`char(120) NOT NULL DEFAULT '',`pad`int(11) NOT NULL,PRIMARY KEY (`id`),KEY `k_1` (`t_id`))DEFAULT CHARSET=UTF8;
CREATETABLEschema3.test3(`id`int(10) unsigned NOT NULL,`m_id`int(10) unsigned NOT NULL DEFAULT '0',`name`char(120) NOT NULL DEFAULT '',`pad`int(11) NOT NULL,PRIMARY KEY (`id`),KEY `k_1` (`m_id`))DEFAULT CHARSET=UTF8;
5.6.29-dble-9.9.9.9-b83955577d2f5f3555ac6f1254e9c5edb69cefb4-20190129042006
schema.xml
server.xml
step1. execute the sql:
expect result:
1.execute correctly and return right result
real result:
mysql> select schema3.test3.id,schema3.test3.pad from test1 join schema3.test3 where test1.pad=schema3.test3.pad;
ERROR 1003 (HY000): Unknown column 'schema3.test3.pad' in 'where clause'
mysql> explain select schema3.test3.id,schema3.test3.pad from test1 join schema3.test3 where test1.pad=schema3.test3.pad;
+-----------+----------+---------------------------------------------------------------------------------------------------+
| DATA_NODE | TYPE | SQL/REF |
+-----------+----------+---------------------------------------------------------------------------------------------------+
| dn1_0 | BASE SQL | select
test3
.id
,test3
.pad
fromtest1
jointest3
where test1.pad = schema3.test3.pad || merge_1 | MERGE | dn1_0 |
+-----------+----------+---------------------------------------------------------------------------------------------------+
supplements:
1.
/label ~BUG
located in auto_test: dble/features/sql_cover/special/sql_global.feature, dble/sqls/special_global/select/join.sql (line 17)
The text was updated successfully, but these errors were encountered: