2024年1月30日

摘要: postgre version 17(commit hash: a17aa50d67bad4ee39a94988c679d2c2fed0e934) The SQL CREATE FUNCTION process_orders() RETURNS void AS $$ DECLARE c record 阅读全文
posted @ 2024-01-30 20:06 winter-loo 阅读(6) 评论(0) 推荐(0) 编辑

2024年1月22日

摘要: 背景 在 Mysql 的建表语法中,用户可以使用 index 关键字指定列名作为索引。在 LightDB 24.1 中支持了该语法的部分特性。 用例 -- use default index name create table foo(a int, index (a)); -- create uni 阅读全文
posted @ 2024-01-22 11:58 winter-loo 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 背景 在 Oracle 中,>=, <=, !=, <> 操作符字符之间允许存在空格。为兼容这种特性,LightDB 24.1 中对这些比较操作符作了特殊处理。 用例 select count(*) from dual where 1 > = 1; select count(*) from dual 阅读全文
posted @ 2024-01-22 11:43 winter-loo 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 背景 在 Oracle 中,用户自定义的无参函数可以不带括号执行。为支持该特性,LightDB 24.1 版本中,允许用户使用无参函数的函数名调用函数,包括系统函数,如:now. 此功能限制在 LightDB 的 oracle 数据库下运行。 用例 create function fn_nopara 阅读全文
posted @ 2024-01-22 11:29 winter-loo 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 背景 在 Oracle 和 PostgreSQL 中 datetime 标识符并没有作为关键字,也不是数据类型。在 Mysql 中,datetime 是数据类型名,但并不是保留关键字。在 LightDB 23.4 及以前版本中,datetime 被误当成可以作为列名的关键字,导致 Oracle 用户 阅读全文
posted @ 2024-01-22 11:06 winter-loo 阅读(4) 评论(0) 推荐(0) 编辑

2024年1月12日

摘要: 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 阅读全文
posted @ 2024-01-12 11:23 winter-loo 阅读(4) 评论(0) 推荐(0) 编辑

2024年1月4日

摘要: 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 阅读全文
posted @ 2024-01-04 21:16 winter-loo 阅读(53) 评论(0) 推荐(0) 编辑

2023年12月25日

摘要: 背景 在 Oracle 中,长度为 0 的字符串被视为 NULL. 下文中长度为 0 的字符串被称为 EMPTY_STRING. 而 PostgreSQL 能够区别对待 EMPTY_STRING 和 NULL. 为了兼容 Oracle 的行为,在 LightDB 23.4 版本前,已经基本将 EMP 阅读全文
posted @ 2023-12-25 17:38 winter-loo 阅读(10) 评论(0) 推荐(0) 编辑

2023年11月2日

摘要: previous article: Function Candidates Selection Algorithm Problem Description function actual arguments and cadidates T = (193341, 23, 23) C = [(19334 阅读全文
posted @ 2023-11-02 20:41 winter-loo 阅读(2) 评论(0) 推荐(0) 编辑

2023年10月31日

摘要: Function Candidates Selection Algorithm environment setup In lightdb orafce extension, execute sql below, CREATE DOMAIN oracle.clob AS TEXT; -- versio 阅读全文
posted @ 2023-10-31 23:38 winter-loo 阅读(15) 评论(0) 推荐(0) 编辑

导航