ClickHouse/tests/queries/0_stateless/01889_sqlite_read_write.reference
Azat Khuzhin f10fc95933 Fix INSERT into SQLite with single quote
Previously it leads to syntax error, due to incorrect escaping of single
quotes for SQLite, "\'" had been used instead of "''"

So set output_format_values_escape_quote_with_quote=true for SQLite to
fix this.

v2: prepare modified Context for writing on storage creation
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-02-15 12:47:29 +01:00

48 lines
1.3 KiB
Plaintext

create database engine
show database tables:
table1
table2
table3
table4
table5
show creare table:
CREATE TABLE SQLite.table1\n(\n `col1` Nullable(String),\n `col2` Nullable(Int16)\n)\nENGINE = SQLite
CREATE TABLE SQLite.table2\n(\n `col1` Nullable(Int32),\n `col2` Nullable(String)\n)\nENGINE = SQLite
describe table:
col1 Nullable(String)
col2 Nullable(Int16)
col1 Nullable(Int32)
col2 Nullable(String)
select *:
line1 1
line2 2
line3 3
1 text1
2 text2
3 text3
test types
CREATE TABLE SQLite.table4\n(\n `a` Nullable(Int32),\n `b` Nullable(Int32),\n `c` Nullable(Int8),\n `d` Nullable(Int16),\n `e` Nullable(Int32),\n `f` Nullable(Int64),\n `g` Nullable(Int32),\n `h` Nullable(Int64)\n)\nENGINE = SQLite
CREATE TABLE SQLite.table5\n(\n `a` Nullable(String),\n `b` Nullable(String),\n `c` Nullable(Float64),\n `d` Nullable(Float64),\n `e` Nullable(Float64),\n `f` Nullable(Float32)\n)\nENGINE = SQLite
create table engine with table3
CREATE TABLE default.sqlite_table3\n(\n `col1` String,\n `col2` Int32\n)\nENGINE = SQLite
1
not a null 2
3
4
line\'6 6
7
test table function
line1 1
line2 2
line3 3
line4 4
test schema inference
col1 Nullable(String)
col2 Nullable(Int32)
col1 Nullable(String)
col2 Nullable(Int32)
test path in clickhouse-local
line1 1
line2 2
line3 3