摘要:postgre version 17(commit hash: a17aa50d67bad4ee39a94988c679d2c2fed0e934) The SQL CREATE FUNCTION process_orders() RETURNS void AS $$ DECLARE c record
阅读全文
摘要:背景 在 Mysql 的建表语法中,用户可以使用 index 关键字指定列名作为索引。在 LightDB 24.1 中支持了该语法的部分特性。 用例 -- use default index name create table foo(a int, index (a)); -- create uni
阅读全文
摘要:背景 在 Oracle 中,>=, <=, !=, <> 操作符字符之间允许存在空格。为兼容这种特性,LightDB 24.1 中对这些比较操作符作了特殊处理。 用例 select count(*) from dual where 1 > = 1; select count(*) from dual
阅读全文
摘要:背景 在 Oracle 中,用户自定义的无参函数可以不带括号执行。为支持该特性,LightDB 24.1 版本中,允许用户使用无参函数的函数名调用函数,包括系统函数,如:now. 此功能限制在 LightDB 的 oracle 数据库下运行。 用例 create function fn_nopara
阅读全文
摘要:背景 在 Oracle 和 PostgreSQL 中 datetime 标识符并没有作为关键字,也不是数据类型。在 Mysql 中,datetime 是数据类型名,但并不是保留关键字。在 LightDB 23.4 及以前版本中,datetime 被误当成可以作为列名的关键字,导致 Oracle 用户
阅读全文
摘要:what is ‘query jumbling’? SUMMARY: it’s a mechanism for calculating query id. DETAIL: PostgreSQL extracts the node->type of each Node in the raw query
阅读全文
摘要:setup In the section of C declarations within the file src/backend/parser/gram.y, include the following code, #ifdef YYDEBUG #undef YYDEBUG #endif #de
阅读全文