摘要:This note will introduce the workflow of parse.pl of the ecpg precompiler. Run the precompiler: perl parse.pl . ../../../backend/parser/gram.y workflo
阅读全文
摘要:背景 在如下的 sql 中, select rowid from (select 1 from t); lightdb 24.1 以前会直接报错,说找不到 rowid 列。为了兼容 Oracle, 在 24.1 中,我们选择将告知子查询除了返回子查询应有的列之外,还需返回 rowid 列。 样例 以
阅读全文
摘要:The SQL select a from (select a from t); Overview from (select a from t) will map to one RangeTblEntry struct of the outter query. from t will map to
阅读全文
摘要:背景 Oracle 中支持很多种分区管理操作。其中 merge partitions 会将多个连续分区合并成一个分区。lightdb 24.1 中支持了该功能。 merge partitions 功能支持 list 和 range 分区,不支持 hash 分区。 用例 range 分区 CREATE
阅读全文
摘要:背景 Oracle 的 Raw 类型可以进行位操作,在 lightdb 24.1 中,对其中的函数:bit_and, bit_or, bit_xor, bit_complement 四个函数进行了改进:这些函数有了 strict 属性,即输入参数如果有 null, 则直接返回 null。 用例 bi
阅读全文