zettadb / kunlun

KunlunBase is a distributed relational database management system(RDBMS) with complete NewSQL capabilities and robust transaction ACID guarantees and is compatible with standard SQL. Applications which used PostgreSQL or MySQL can work with KunlunBase as-is without any code change or rebuild because KunlunBase supports both PostgreSQL and MySQL connection protocols and DML SQL grammars. MySQL DBAs can quickly work on a KunlunBase cluster because we use MySQL as storage nodes of KunlunBase. KunlunBase can elastically scale out as needed, and guarantees transaction ACID under error conditions, and KunlunBase fully passes TPC-C, TPC-H and TPC-DS test suites, so it not only support OLTP workloads but also OLAP workloads. Application developers can use KunlunBase to build IT systems that handles terabytes of data, without any effort on their part to implement data sharding, distributed transaction processing, distributed query processing, crash safety, high availability, strong consistency, horizontal scalability. All these powerful features are provided by KunlunBase. KunlunBase supports powerful and user friendly cluster management, monitor and provision features, can be readily used as DBaaS.
http://www.kunlunbase.com
Apache License 2.0
143 stars 20 forks source link

The generated sql do not escape the string #678

Open jd-zhang opened 2 years ago

jd-zhang commented 2 years ago

Issue migrated from trac ticket # 518

component: computing nodes | priority: major

2022-03-24 14:53:41: smith created the issue


postgres=# create table t7(a varchar(100)); CREATE TABLE postgres=# insert into t7 select ''''; ERROR: Kunlun-db: MySQL storage node (2, 4) returned error: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''')' at line 1. postgres=# explain insert into t7 select ''''; QUERY PLAN

Insert on t7 (cost=0.00..0.01 rows=1 width=218) -> Result (cost=0.00..0.01 rows=1 width=218) (2 rows)

postgres=# explain select * from t7 where a = ''''; QUERY PLAN

RemoteScan on t7 (cost=0.00..1.00 rows=1 width=218) Shard: 2 Remote SQL: select a from postgres_$$_public.t7 where (a = ''') (2 rows)

postgres=#

jd-zhang commented 2 years ago

2022-03-24 14:53:51: smith changed owner from david to smith

jd-zhang commented 2 years ago

2022-03-24 14:53:51: smith changed status from new to accepted