提交 d88aa261 编写于 作者: J JingShang Lu

fix for #5743

上级 308f09f1
......@@ -18,6 +18,7 @@
<sql-cases>
<sql-case id="select_constant_without_table" value="SELECT 1 as a" />
<sql-case id="select_with_uuid" value="select uuid from t_order where uuid = '15c2c185-9068-4db9-aad7-6c0d52713f28'" />
<sql-case id="select_with_same_table_name_and_alias" value="SELECT t_order.* FROM t_order t_order WHERE user_id = ? AND order_id = ?" />
<sql-case id="select_with_same_table_name_and_alias_column_with_owner" value="SELECT t_order.order_id,t_order.user_id,status FROM t_order t_order WHERE t_order.user_id = ? AND order_id = ?" db-types="MySQL,H2"/>
<sql-case id="select_not_equal_with_single_table" value="SELECT * FROM t_order_item WHERE item_id &lt;&gt; ? ORDER BY item_id" />
......
......@@ -306,7 +306,7 @@ dataType
dataTypeName
: INT | INT2 | INT4 | INT8 | SMALLINT | INTEGER | BIGINT | DECIMAL | NUMERIC | REAL | FLOAT | FLOAT4 | FLOAT8 | DOUBLE PRECISION | SMALLSERIAL | SERIAL | BIGSERIAL
| MONEY | VARCHAR | CHARACTER | CHAR | TEXT | NAME | BYTEA | TIMESTAMP | DATE | TIME | INTERVAL | BOOLEAN | ENUM | POINT
| LINE | LSEG | BOX | PATH | POLYGON | CIRCLE | CIDR | INET | MACADDR | MACADDR8 | BIT | VARBIT | TSVECTOR | TSQUERY | UUID | XML
| LINE | LSEG | BOX | PATH | POLYGON | CIRCLE | CIDR | INET | MACADDR | MACADDR8 | BIT | VARBIT | TSVECTOR | TSQUERY | XML
| JSON | INT4RANGE | INT8RANGE | NUMRANGE | TSRANGE | TSTZRANGE | DATERANGE | ARRAY | identifier
;
......
......@@ -1505,4 +1505,24 @@
<expression-projection start-index="7" stop-index="18" />
</projections>
</select>
<select sql-case-id="select_with_uuid" >
<tables>
<simple-table name="t_order" start-index="17" stop-index="23" />
</tables>
<projections start-index="7" stop-index="10">
<column-projection name="uuid" start-index="7" stop-index="10" />
</projections>
<where start-index="25" stop-index="75">
<and-predicate>
<predicate start-index="31" stop-index="75">
<column-left-value name="uuid" start-index="31" stop-index="34"/>
<operator type="=" />
<compare-right-value>
<literal-expression value="15c2c185-9068-4db9-aad7-6c0d52713f28" start-index="38" stop-index="75" />
</compare-right-value>
</predicate>
</and-predicate>
</where>
</select>
</sql-parser-test-cases>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册