diff --git a/README.md b/README.md index d9ed2e50..cda5b0f3 100644 --- a/README.md +++ b/README.md @@ -167,19 +167,19 @@ SQLite `NULL` affinity always can be transparent converted for a nullable column - **database** as *string*, **required**, no default SQLite database path. - + - **updatable** as *boolean*, optional, default *true* This option allow or disallow write operations on SQLite database file. - + - **truncatable** as *boolean*, optional, default *true* Allows foreign tables to be truncated using the `TRUNCATE` command. - + - **keep_connections** as *boolean*, optional, default *true* - + Allows to keep connections to SQLite while there is no SQL operations between PostgreSQL and SQLite. - + - **batch_size** as *integer*, optional, default *1* Specifies the number of rows which should be inserted in a single `INSERT` operation. This setting can be overridden for individual tables. @@ -203,17 +203,17 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL SQLite table name. Use if not equal to name of foreign table in PostgreSQL. Also see about [identifier case handling](#identifier-case-handling). - **truncatable** as *boolean*, optional, default from the same `CREATE SERVER` option - + See `CREATE SERVER` options section for details. - **batch_size** as *integer*, optional, default from the same `CREATE SERVER` option See `CREATE SERVER` options section for details. - + - **updatable** as *boolean*, optional, default *true* This option can allow or disallow write operations on a SQLite table independed of the same server option. - + `sqlite_fdw` accepts the following column-level options via the `CREATE FOREIGN TABLE` command: @@ -225,7 +225,7 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL Set preferred SQLite affinity for some PostgreSQL data types can be stored in different ways in SQLite (mixed affinity case). Updated and inserted values will have this affinity. Default preferred SQLite affinity for `timestamp` and `uuid` PostgreSQL data types is `text`. - + - Use `INT` value for SQLite column (epoch Unix Time) to be treated/visualized as `timestamp` in PostgreSQL. - Use `BLOB` value for SQLite column to be treated/visualized as `uuid` in PostgreSQL 14+. @@ -327,7 +327,7 @@ with names composed from ASCII base latin letters *only*. CREATE TABLE T_dia ( "Ä" INTEGER, "ä" NUMERIC - ); + ); ``` For SQLite there is no difference between @@ -340,7 +340,7 @@ For SQLite there is no difference between ``` For PostgreSQL the query with comment `№4` is independend query to table `T`, not to table `t` as other queries. Please note this table name composed from ASCII base latin letters *only*. This is not applicable for other -alphabet systems or mixed names. This is because `toLower` operation in PostgreSQL is Unicode opration but +alphabet systems or mixed names. This is because `toLower` operation in PostgreSQL is Unicode opration but ASCII only operation in SQLite, hence other characters will not be changed. ```sql @@ -586,6 +586,8 @@ You can execute test by test.sh directly. The version of PostgreSQL is detected automatically by $(VERSION) variable in Makefile. The corresponding sql and expected directory will be used to compare the result. For example, for Postgres 15.0, you can execute "test.sh" directly, and the sql/15.0 and expected/15.0 will be used to compare automatically. +Test data directory is `/tmp/sqlite_fdw_test`. If you have `/tmp` mounted as `tmpfs` the tests will be up to 800% faster. + Contributing ------------ diff --git a/connection.c b/connection.c index a13110d7..ce16a07b 100644 --- a/connection.c +++ b/connection.c @@ -11,23 +11,18 @@ */ #include "postgres.h" - #include "sqlite_fdw.h" #include "access/xact.h" -#include "mb/pg_wchar.h" -#include "funcapi.h" -#include "miscadmin.h" -#include "utils/hsearch.h" +#include "commands/defrem.h" +#if (PG_VERSION_NUM >= 140000 && PG_VERSION_NUM < 150000) + #include "miscadmin.h" +#endif +#include "optimizer/cost.h" +#include "utils/builtins.h" #include "utils/inval.h" -#include "utils/memutils.h" -#include "utils/resowner.h" #include "utils/syscache.h" -#include "utils/builtins.h" -#include "commands/defrem.h" -/* Length of host */ -#define HOST_LEN 256 /* * Connection cache hash table entry diff --git a/deparse.c b/deparse.c index 7b8e77b5..8d1d8bf4 100644 --- a/deparse.c +++ b/deparse.c @@ -11,37 +11,29 @@ */ #include "postgres.h" - #include "sqlite_fdw.h" -#include "pgtime.h" -#include "access/heapam.h" -#include "access/htup_details.h" -#include "access/sysattr.h" #include "catalog/pg_aggregate.h" #include "catalog/pg_collation.h" #include "catalog/pg_namespace.h" #include "catalog/pg_operator.h" -#include "catalog/pg_opfamily.h" #include "catalog/pg_proc.h" #if PG_VERSION_NUM >= 160000 -#include "catalog/pg_ts_config.h" + #include "catalog/pg_ts_config.h" #endif #include "catalog/pg_ts_dict.h" -#include "catalog/pg_type.h" +#if (PG_VERSION_NUM < 130000) + #include "catalog/pg_type.h" +#endif #include "commands/defrem.h" +#include "mb/pg_wchar.h" #include "nodes/nodeFuncs.h" -#include "nodes/plannodes.h" -#include "optimizer/clauses.h" #include "optimizer/tlist.h" #include "parser/parsetree.h" #include "utils/builtins.h" #include "utils/lsyscache.h" #include "utils/syscache.h" -#include "utils/timestamp.h" #include "utils/typcache.h" -#include "commands/tablecmds.h" -#include "mb/pg_wchar.h" /* * Global context for sqlite_foreign_expr_walker's search of an expression tree. diff --git a/expected/12.16/aggregate.out b/expected/12.16/aggregate.out index 735edc82..d56c8769 100644 --- a/expected/12.16/aggregate.out +++ b/expected/12.16/aggregate.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 1: diff --git a/expected/12.16/extra/aggregates.out b/expected/12.16/extra/aggregates.out index d927c3fa..06f44077 100644 --- a/expected/12.16/extra/aggregates.out +++ b/expected/12.16/extra/aggregates.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/12.16/extra/bitstring.out b/expected/12.16/extra/bitstring.out new file mode 100644 index 00000000..d5105515 --- /dev/null +++ b/expected/12.16/extra/bitstring.out @@ -0,0 +1,810 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +NOTICE: foreign table "type_BIT+" does not exist, skipping +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +ERROR: bit string length 1 does not match type bit(6) +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +ERROR: bit string length 2 does not match type bit(6) +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +ERROR: bit string length 3 does not match type bit(6) +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 15: +SELECT * FROM "type_BIT+"; + i | b | t | l | bi +---+--------+---------+---+---- + 6 | 110110 | integer | 2 | 54 + 7 | 111001 | integer | 2 | 57 + 8 | 110000 | integer | 2 | 48 + 9 | 100001 | integer | 2 | 33 +(4 rows) + +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; + i | b +---+-------- + 8 | 110000 + 9 | 100001 +(2 rows) + +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; + i | b +---+-------- + 7 | 111001 +(1 row) + +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + i | b +---+-------- + 6 | 110110 +(1 row) + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +NOTICE: foreign table "type_VARBIT+" does not exist, skipping +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); +--Testcase 34: +SELECT * FROM "type_VARBIT+"; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 6 | 110110 | integer | 2 + 7 | 111001 | integer | 2 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; + i | b | t | l +---+--------+---------+--- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 +(7 rows) + +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 7 | 111001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(3 rows) + +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + i | b | t | l +---+--------+---------+--- + 6 | 110110 | integer | 2 +(1 row) + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +ERROR: SQLite FDW dosens't support very long bit/varbit data +HINT: bit length 65, maximum 64 +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + i | b | t | l +----+-----------------------------------------------------------------+---------+---- + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 +(3 rows) + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 111111 + 6 | 110110 | 8 | 110000 | 110110 + 6 | 110110 | 9 | 100001 | 110111 + 7 | 111001 | 6 | 110110 | 111111 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 111001 + 7 | 111001 | 9 | 100001 | 111001 + 8 | 110000 | 6 | 110110 | 110110 + 8 | 110000 | 7 | 111001 | 111001 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 110001 + 9 | 100001 | 6 | 110110 | 110111 + 9 | 100001 | 7 | 111001 | 111001 + 9 | 100001 | 8 | 110000 | 110001 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 110000 + 6 | 110110 | 8 | 110000 | 110000 + 6 | 110110 | 9 | 100001 | 100000 + 7 | 111001 | 6 | 110110 | 110000 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 110000 + 7 | 111001 | 9 | 100001 | 100001 + 8 | 110000 | 6 | 110110 | 110000 + 8 | 110000 | 7 | 111001 | 110000 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 100000 + 9 | 100001 | 6 | 110110 | 100000 + 9 | 100001 | 7 | 111001 | 100001 + 9 | 100001 | 8 | 110000 | 100000 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 000000 + 6 | 110110 | 7 | 111001 | 001111 + 6 | 110110 | 8 | 110000 | 000110 + 6 | 110110 | 9 | 100001 | 010111 + 7 | 111001 | 6 | 110110 | 001111 + 7 | 111001 | 7 | 111001 | 000000 + 7 | 111001 | 8 | 110000 | 001001 + 7 | 111001 | 9 | 100001 | 011000 + 8 | 110000 | 6 | 110110 | 000110 + 8 | 110000 | 7 | 111001 | 001001 + 8 | 110000 | 8 | 110000 | 000000 + 8 | 110000 | 9 | 100001 | 010001 + 9 | 100001 | 6 | 110110 | 010111 + 9 | 100001 | 7 | 111001 | 011000 + 9 | 100001 | 8 | 110000 | 010001 + 9 | 100001 | 9 | 100001 | 000000 +(16 rows) + +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 +(4 rows) + +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b << 3) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (~ b) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot OR bit strings of different sizes +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot AND bit strings of different sizes +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot XOR bit strings of different sizes +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 001 + 5 | 101 | 001 + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 +(13 rows) + +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 000 + 5 | 101 | 000 + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 +(13 rows) + +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 01 + 3 | 11 | 00 + 4 | 100 | 011 + 5 | 101 | 010 + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 +(13 rows) + +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" << 3) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, (~ (b)::"bit") + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 6 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_BIT+" +drop cascades to foreign table "type_VARBIT" +drop cascades to foreign table "type_VARBIT+" +drop cascades to server sqlite2 diff --git a/expected/12.16/extra/bool.out b/expected/12.16/extra/bool.out index 4083dbca..45750a6a 100644 --- a/expected/12.16/extra/bool.out +++ b/expected/12.16/extra/bool.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -121,8 +121,9 @@ SELECT * FROM "type_BOOLEAN+"; --Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (1 bytes) : 'x' +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; --Testcase 36: @@ -249,8 +250,9 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 49: ERR - invalid float for bool column SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "real" affinity : 3.14159265358979 +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 50 DELETE FROM "type_BOOLEAN" WHERE i = 27; --Testcase 51: diff --git a/expected/12.16/extra/encodings.out b/expected/12.16/extra/encodings.out index 1e041e7d..9c4ccec7 100644 --- a/expected/12.16/extra/encodings.out +++ b/expected/12.16/extra/encodings.out @@ -39,7 +39,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; i | t @@ -74,7 +74,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -118,6 +118,8 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; i | t -----+--------------------------------------------------------------------- @@ -138,6 +140,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); SELECT * FROM "Unicode data" WHERE i = 'bel+'; i | t @@ -198,6 +202,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -239,6 +245,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -417,6 +425,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -437,6 +447,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -457,6 +469,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -528,7 +542,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -554,6 +568,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -568,8 +584,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -584,6 +604,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -645,6 +667,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -665,6 +689,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -679,6 +705,8 @@ ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -699,16 +727,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -757,16 +795,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -815,6 +861,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -862,6 +910,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -935,11 +985,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -955,6 +1007,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -969,8 +1023,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -985,6 +1043,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -1046,6 +1106,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1066,6 +1128,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1080,6 +1144,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1100,16 +1166,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1158,16 +1234,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1216,6 +1300,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1236,6 +1322,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1256,6 +1344,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1329,11 +1419,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1349,12 +1441,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1453,6 +1553,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1467,6 +1569,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1487,16 +1591,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1545,16 +1659,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1603,6 +1725,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1623,6 +1747,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1643,6 +1769,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1716,11 +1844,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1736,12 +1866,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1813,6 +1951,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1854,6 +1994,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1874,16 +2016,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1932,16 +2084,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1990,6 +2150,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2010,6 +2172,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2030,6 +2194,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2103,11 +2269,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2123,12 +2291,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2200,6 +2376,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2220,6 +2398,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2261,16 +2441,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -2319,16 +2509,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2377,6 +2575,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2397,6 +2597,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2417,6 +2619,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2490,11 +2694,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2510,12 +2716,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2587,6 +2801,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2607,6 +2823,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2621,6 +2839,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -2647,6 +2867,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -2661,6 +2883,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -2713,16 +2937,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2771,6 +3003,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2791,6 +3025,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2811,6 +3047,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2883,11 +3121,13 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2903,12 +3143,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2980,6 +3228,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3000,6 +3250,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3014,6 +3266,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3040,6 +3294,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3054,6 +3310,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3106,16 +3364,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3164,6 +3430,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3184,6 +3452,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3204,6 +3474,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3276,11 +3548,13 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3296,12 +3570,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3373,6 +3655,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3393,6 +3677,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3407,6 +3693,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3427,16 +3715,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -3564,6 +3862,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3584,6 +3884,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3604,6 +3906,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3676,11 +3980,13 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3696,12 +4002,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3773,6 +4087,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3793,6 +4109,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3807,6 +4125,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3833,6 +4153,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3847,6 +4169,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3899,16 +4223,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3957,6 +4289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3977,6 +4311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3997,6 +4333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4068,11 +4406,13 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4088,12 +4428,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4165,6 +4513,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4185,6 +4535,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4199,6 +4551,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4219,16 +4573,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -4277,16 +4641,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4362,6 +4738,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4382,6 +4760,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4455,11 +4835,13 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4475,12 +4857,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4552,6 +4942,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4572,6 +4964,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4586,6 +4980,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4612,6 +5008,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -4626,6 +5024,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -4678,16 +5078,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4736,6 +5144,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -4756,6 +5166,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4776,6 +5188,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4848,11 +5262,13 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4868,12 +5284,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4945,6 +5369,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4965,6 +5391,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4979,6 +5407,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4999,16 +5429,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5057,16 +5497,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5142,6 +5594,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5162,6 +5616,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5234,11 +5690,13 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5254,12 +5712,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5331,6 +5797,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5351,6 +5819,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5365,6 +5835,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5385,16 +5857,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5443,6 +5925,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -5451,6 +5935,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -5461,6 +5947,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5535,6 +6023,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5555,6 +6045,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5628,11 +6120,13 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5648,12 +6142,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5725,6 +6227,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5745,6 +6249,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5759,6 +6265,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5785,6 +6293,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -5799,6 +6309,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -5851,16 +6363,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5909,6 +6429,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -5929,6 +6451,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5949,6 +6473,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6021,11 +6547,13 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6041,12 +6569,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6118,6 +6654,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6138,6 +6676,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6152,6 +6692,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6178,6 +6720,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -6192,6 +6736,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -6244,16 +6790,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -6302,6 +6858,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6322,6 +6880,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6342,6 +6902,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6414,11 +6976,13 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6434,12 +6998,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6511,6 +7083,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6531,6 +7105,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6545,6 +7121,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6565,16 +7143,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -6623,6 +7213,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -6637,6 +7229,8 @@ SELECT * FROM "Unicode data" WHERE i = 'srp'; SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; i | t -----+------------------------------------------- @@ -6695,6 +7289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6715,6 +7311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6735,6 +7333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6807,11 +7407,13 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6827,12 +7429,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6904,6 +7514,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6924,6 +7536,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6938,6 +7552,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6958,16 +7574,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7095,6 +7721,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7115,6 +7743,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7135,6 +7765,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7207,11 +7839,13 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7332,6 +7966,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7352,6 +7988,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7366,6 +8004,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7386,16 +8026,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7444,16 +8094,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7502,6 +8160,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7522,6 +8182,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7542,6 +8204,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7615,11 +8279,13 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7635,12 +8301,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -7712,6 +8386,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7732,6 +8408,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7746,6 +8424,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7845,16 +8525,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7903,6 +8593,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7923,6 +8615,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7943,6 +8637,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8015,11 +8711,13 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8035,12 +8733,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8112,6 +8818,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8153,6 +8861,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8173,16 +8883,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -8231,16 +8951,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8289,6 +9017,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8309,6 +9039,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8329,6 +9061,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8402,11 +9136,13 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8422,12 +9158,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8499,6 +9243,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8519,6 +9265,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8533,6 +9281,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8632,16 +9382,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8690,6 +9450,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8710,6 +9472,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8730,6 +9494,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8802,11 +9568,13 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8822,12 +9590,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8899,6 +9675,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8919,6 +9697,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8960,16 +9740,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9018,16 +9808,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9076,6 +9874,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9096,6 +9896,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9116,6 +9918,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9189,11 +9993,13 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9215,12 +10021,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9319,6 +10133,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9333,6 +10149,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9353,16 +10171,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9411,16 +10241,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9469,6 +10307,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9489,6 +10329,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9509,6 +10351,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9582,11 +10426,13 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9602,12 +10448,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9679,6 +10533,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -9699,6 +10555,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9713,6 +10571,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9733,16 +10593,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9791,6 +10661,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -9799,6 +10671,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -9809,6 +10683,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9883,6 +10759,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9903,6 +10781,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9976,7 +10856,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/expected/12.16/extra/float4.out b/expected/12.16/extra/float4.out index fc3b830d..6533dacf 100644 --- a/expected/12.16/extra/float4.out +++ b/expected/12.16/extra/float4.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/expected/12.16/extra/float8.out b/expected/12.16/extra/float8.out index 562faaf0..be13f418 100644 --- a/expected/12.16/extra/float8.out +++ b/expected/12.16/extra/float8.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/expected/12.16/extra/insert.out b/expected/12.16/extra/insert.out index 917a45c8..19773b50 100644 --- a/expected/12.16/extra/insert.out +++ b/expected/12.16/extra/insert.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/expected/12.16/extra/int4.out b/expected/12.16/extra/int4.out index 22fedac4..33e37dfb 100644 --- a/expected/12.16/extra/int4.out +++ b/expected/12.16/extra/int4.out @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/expected/12.16/extra/int8.out b/expected/12.16/extra/int8.out index ce5fca6e..06818382 100644 --- a/expected/12.16/extra/int8.out +++ b/expected/12.16/extra/int8.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/expected/12.16/extra/join.out b/expected/12.16/extra/join.out index 5c415445..b9986c19 100644 --- a/expected/12.16/extra/join.out +++ b/expected/12.16/extra/join.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( i integer, diff --git a/expected/12.16/extra/limit.out b/expected/12.16/extra/limit.out index a5f0141f..27323d02 100644 --- a/expected/12.16/extra/limit.out +++ b/expected/12.16/extra/limit.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/12.16/extra/numeric.out b/expected/12.16/extra/numeric.out index 7d3c8cff..ba879d51 100644 --- a/expected/12.16/extra/numeric.out +++ b/expected/12.16/extra/numeric.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; --Testcase 570: diff --git a/expected/12.16/extra/out_of_range.out b/expected/12.16/extra/out_of_range.out new file mode 100644 index 00000000..8de68b14 --- /dev/null +++ b/expected/12.16/extra/out_of_range.out @@ -0,0 +1,172 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow + q1 | q2 +----------------------+------------------- + 123 | 456 + 123 | 4567890123456789 + 4567890123456789 | 123 + 4567890123456789 | 4567890123456789 + 4567890123456789 | -4567890123456789 + -9223372036854775808 | 0 +(6 rows) + +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow + q1 +---------------------- + 123 + 123 + 4567890123456789 + 4567890123456789 + 4567890123456789 + -9223372036854775808 +(6 rows) + +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +NOTICE: drop cascades to 5 other objects +DETAIL: drop cascades to foreign table int4_tbl +drop cascades to foreign table int4_tmp +drop cascades to foreign table int2_tbl +drop cascades to foreign table int2_tmp +drop cascades to foreign table int8_tbl +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/12.16/extra/prepare.out b/expected/12.16/extra/prepare.out index 980e3492..4bd94a0b 100644 --- a/expected/12.16/extra/prepare.out +++ b/expected/12.16/extra/prepare.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( unique1 int4, diff --git a/expected/12.16/extra/select.out b/expected/12.16/extra/select.out index da0f61e5..86567108 100644 --- a/expected/12.16/extra/select.out +++ b/expected/12.16/extra/select.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( unique1 int4, diff --git a/expected/12.16/extra/select_having.out b/expected/12.16/extra/select_having.out index 9bc2ef0c..1a159651 100644 --- a/expected/12.16/extra/select_having.out +++ b/expected/12.16/extra/select_having.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; -- load test data diff --git a/expected/12.16/extra/sqlite_fdw_post.out b/expected/12.16/extra/sqlite_fdw_post.out index 818b0270..6b683b08 100644 --- a/expected/12.16/extra/sqlite_fdw_post.out +++ b/expected/12.16/extra/sqlite_fdw_post.out @@ -6,9 +6,9 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 484: @@ -137,7 +137,7 @@ ERROR: SQL error during prepare: no such table: main.T 1 SELECT `C 1`, `c3`, `c DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -4622,20 +4622,24 @@ DROP FUNCTION f_test(int); ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 WHERE c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 274: SELECT ft1.c1, ft2.c2, ft1.c8 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 275: SELECT ft1.c1, ft2.c2, ft1 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE text; -- =================================================================== -- subtransaction @@ -9746,7 +9750,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/expected/12.16/extra/timestamp.out b/expected/12.16/extra/timestamp.out index 3b2931f6..802a83f5 100644 --- a/expected/12.16/extra/timestamp.out +++ b/expected/12.16/extra/timestamp.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/expected/12.16/extra/update.out b/expected/12.16/extra/update.out index d5b713cd..a0c29c4b 100644 --- a/expected/12.16/extra/update.out +++ b/expected/12.16/extra/update.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( i INT OPTIONS (key 'true'), diff --git a/expected/12.16/extra/uuid.out b/expected/12.16/extra/uuid.out index 92eb5efb..34256a54 100644 --- a/expected/12.16/extra/uuid.out +++ b/expected/12.16/extra/uuid.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 109: @@ -440,11 +440,13 @@ ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; --Testcase 189: SELECT * FROM "type_UUID+" WHERE "i" = 42; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length +HINT: SQLite value with "blob" affinity (17 bytes) in hex : a0eebc999c0b4ef8bb6d6bb9bd380a11f1 +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 190: SELECT * FROM "type_UUID+" WHERE "i" = 43; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length +HINT: SQLite value with "blob" affinity (15 bytes) in hex : b0eebc999c0b4ef8bb6d6bb9bd380a +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 191: EXPLAIN VERBOSE DELETE FROM "type_UUID" WHERE "i" IN (42, 43); diff --git a/expected/12.16/selectfunc.out b/expected/12.16/selectfunc.out index 0ff93436..14dcd259 100644 --- a/expected/12.16/selectfunc.out +++ b/expected/12.16/selectfunc.out @@ -4,7 +4,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); --Testcase 3: diff --git a/expected/12.16/sqlite_fdw.out b/expected/12.16/sqlite_fdw.out index 7e2f0d97..b0f6b693 100644 --- a/expected/12.16/sqlite_fdw.out +++ b/expected/12.16/sqlite_fdw.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: @@ -1501,8 +1501,9 @@ SELECT * FROM fts_table; -- should work ALTER TABLE fts_table ALTER COLUMN name TYPE int; --Testcase 160: SELECT * FROM fts_table; -- should fail -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (12 bytes) : 'this is name' +CONTEXT: foreign table "fts_table" foreign column "name" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table -- issue #62 github --Testcase 236: INSERT INTO noprimary VALUES (4, 'Test''s'); diff --git a/expected/12.16/type.out b/expected/12.16/type.out index f97792aa..9106169a 100644 --- a/expected/12.16/type.out +++ b/expected/12.16/type.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; @@ -510,763 +510,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; -NOTICE: foreign table "type_BIT+" does not exist, skipping ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); -ERROR: bit string length 1 does not match type bit(6) ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); -ERROR: bit string length 2 does not match type bit(6) ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); -ERROR: bit string length 3 does not match type bit(6) ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 213: -SELECT * FROM "type_BIT+"; - i | b | t | l | bi ----+--------+---------+---+---- - 6 | 110110 | integer | 2 | 54 - 7 | 111001 | integer | 2 | 57 - 8 | 110000 | integer | 2 | 48 - 9 | 100001 | integer | 2 | 33 -(4 rows) - ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; - i | b ----+-------- - 8 | 110000 - 9 | 100001 -(2 rows) - ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; - i | b ----+-------- - 7 | 111001 -(1 row) - ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - i | b ----+-------- - 6 | 110110 -(1 row) - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; -NOTICE: foreign table "type_VARBIT+" does not exist, skipping ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); ---Testcase 232 -SELECT * FROM "type_VARBIT+"; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 6 | 110110 | integer | 2 - 7 | 111001 | integer | 2 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(11 rows) - ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; - i | b | t | l ----+--------+---------+--- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 -(7 rows) - ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 7 | 111001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(3 rows) - ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - i | b | t | l ----+--------+---------+--- - 6 | 110110 | integer | 2 -(1 row) - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); -ERROR: SQLite FDW dosens't support very long bit/varbit data -HINT: bit length 65, maximum 64 ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - i | b | t | l -----+-----------------------------------------------------------------+---------+---- - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 -(3 rows) - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 111111 - 6 | 110110 | 8 | 110000 | 110110 - 6 | 110110 | 9 | 100001 | 110111 - 7 | 111001 | 6 | 110110 | 111111 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 111001 - 7 | 111001 | 9 | 100001 | 111001 - 8 | 110000 | 6 | 110110 | 110110 - 8 | 110000 | 7 | 111001 | 111001 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 110001 - 9 | 100001 | 6 | 110110 | 110111 - 9 | 100001 | 7 | 111001 | 111001 - 9 | 100001 | 8 | 110000 | 110001 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 110000 - 6 | 110110 | 8 | 110000 | 110000 - 6 | 110110 | 9 | 100001 | 100000 - 7 | 111001 | 6 | 110110 | 110000 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 110000 - 7 | 111001 | 9 | 100001 | 100001 - 8 | 110000 | 6 | 110110 | 110000 - 8 | 110000 | 7 | 111001 | 110000 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 100000 - 9 | 100001 | 6 | 110110 | 100000 - 9 | 100001 | 7 | 111001 | 100001 - 9 | 100001 | 8 | 110000 | 100000 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 000000 - 6 | 110110 | 7 | 111001 | 001111 - 6 | 110110 | 8 | 110000 | 000110 - 6 | 110110 | 9 | 100001 | 010111 - 7 | 111001 | 6 | 110110 | 001111 - 7 | 111001 | 7 | 111001 | 000000 - 7 | 111001 | 8 | 110000 | 001001 - 7 | 111001 | 9 | 100001 | 011000 - 8 | 110000 | 6 | 110110 | 000110 - 8 | 110000 | 7 | 111001 | 001001 - 8 | 110000 | 8 | 110000 | 000000 - 8 | 110000 | 9 | 100001 | 010001 - 9 | 100001 | 6 | 110110 | 010111 - 9 | 100001 | 7 | 111001 | 011000 - 9 | 100001 | 8 | 110000 | 010001 - 9 | 100001 | 9 | 100001 | 000000 -(16 rows) - ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 -(4 rows) - ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan (cost=100.00..73691.22 rows=1633932 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) - SQLite query: SELECT r1.`i`, r1.`b`, r2.`i`, r2.`b` FROM (main."type_BIT" r1 INNER JOIN main."type_BIT" r2 ON ((((r1.`b` >> 2) < (r1.`b` & r2.`b`))))) -(3 rows) - ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan (cost=100.00..73691.22 rows=1633932 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) - SQLite query: SELECT r1.`i`, r1.`b`, r2.`i`, r2.`b` FROM (main."type_BIT" r1 INNER JOIN main."type_BIT" r2 ON ((((r1.`b` >> 2) < (r1.`b` & r2.`b`))))) -(3 rows) - ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan (cost=100.00..73691.22 rows=1633932 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) - SQLite query: SELECT r1.`i`, r1.`b`, r2.`i`, r2.`b` FROM (main."type_BIT" r1 INNER JOIN main."type_BIT" r2 ON ((((r1.`b` >> 2) < (r1.`b` & r2.`b`))))) -(3 rows) - ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b << 3) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (~ b) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 252: bit strings of different sizes -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); -ERROR: cannot OR bit strings of different sizes ---Testcase 253: bit strings of different sizes -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); -ERROR: cannot AND bit strings of different sizes ---Testcase 254: bit strings of different sizes -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); -ERROR: cannot XOR bit strings of different sizes ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 001 - 5 | 101 | 001 - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 -(13 rows) - ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 000 - 5 | 101 | 000 - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 -(13 rows) - ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 01 - 3 | 11 | 00 - 4 | 100 | 011 - 5 | 101 | 010 - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 -(13 rows) - ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan (cost=100.00..49842.39 rows=1104133 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") - SQLite query: SELECT r1.`i`, r1.`b`, r2.`i`, r2.`b` FROM (main."type_VARBIT" r1 INNER JOIN main."type_VARBIT" r2 ON ((((r1.`b` >> 2) < (r1.`b` & r2.`b`))))) -(3 rows) - ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan (cost=100.00..49842.39 rows=1104133 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") - SQLite query: SELECT r1.`i`, r1.`b`, r2.`i`, r2.`b` FROM (main."type_VARBIT" r1 INNER JOIN main."type_VARBIT" r2 ON ((((r1.`b` >> 2) < (r1.`b` & r2.`b`))))) -(3 rows) - ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan (cost=100.00..49842.39 rows=1104133 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") - SQLite query: SELECT r1.`i`, r1.`b`, r2.`i`, r2.`b` FROM (main."type_VARBIT" r1 INNER JOIN main."type_VARBIT" r2 ON ((((r1.`b` >> 2) < (r1.`b` & r2.`b`))))) -(3 rows) - ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" << 3) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, (~ (b)::"bit") - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 50 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1292,6 +538,8 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_VARBIT" drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" @@ -1312,8 +560,4 @@ drop cascades to foreign table "Unicode data" drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_BIT" -drop cascades to foreign table "type_BIT+" -drop cascades to foreign table "type_VARBIT" -drop cascades to foreign table "type_VARBIT+" drop cascades to server sqlite2 diff --git a/expected/13.12/aggregate.out b/expected/13.12/aggregate.out index d3f193e0..584a2c11 100644 --- a/expected/13.12/aggregate.out +++ b/expected/13.12/aggregate.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 1: diff --git a/expected/13.12/extra/aggregates.out b/expected/13.12/extra/aggregates.out index 5eba7c83..b0087451 100644 --- a/expected/13.12/extra/aggregates.out +++ b/expected/13.12/extra/aggregates.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/13.12/extra/bitstring.out b/expected/13.12/extra/bitstring.out new file mode 100644 index 00000000..d5105515 --- /dev/null +++ b/expected/13.12/extra/bitstring.out @@ -0,0 +1,810 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +NOTICE: foreign table "type_BIT+" does not exist, skipping +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +ERROR: bit string length 1 does not match type bit(6) +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +ERROR: bit string length 2 does not match type bit(6) +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +ERROR: bit string length 3 does not match type bit(6) +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 15: +SELECT * FROM "type_BIT+"; + i | b | t | l | bi +---+--------+---------+---+---- + 6 | 110110 | integer | 2 | 54 + 7 | 111001 | integer | 2 | 57 + 8 | 110000 | integer | 2 | 48 + 9 | 100001 | integer | 2 | 33 +(4 rows) + +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; + i | b +---+-------- + 8 | 110000 + 9 | 100001 +(2 rows) + +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; + i | b +---+-------- + 7 | 111001 +(1 row) + +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + i | b +---+-------- + 6 | 110110 +(1 row) + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +NOTICE: foreign table "type_VARBIT+" does not exist, skipping +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); +--Testcase 34: +SELECT * FROM "type_VARBIT+"; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 6 | 110110 | integer | 2 + 7 | 111001 | integer | 2 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; + i | b | t | l +---+--------+---------+--- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 +(7 rows) + +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 7 | 111001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(3 rows) + +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + i | b | t | l +---+--------+---------+--- + 6 | 110110 | integer | 2 +(1 row) + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +ERROR: SQLite FDW dosens't support very long bit/varbit data +HINT: bit length 65, maximum 64 +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + i | b | t | l +----+-----------------------------------------------------------------+---------+---- + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 +(3 rows) + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 111111 + 6 | 110110 | 8 | 110000 | 110110 + 6 | 110110 | 9 | 100001 | 110111 + 7 | 111001 | 6 | 110110 | 111111 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 111001 + 7 | 111001 | 9 | 100001 | 111001 + 8 | 110000 | 6 | 110110 | 110110 + 8 | 110000 | 7 | 111001 | 111001 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 110001 + 9 | 100001 | 6 | 110110 | 110111 + 9 | 100001 | 7 | 111001 | 111001 + 9 | 100001 | 8 | 110000 | 110001 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 110000 + 6 | 110110 | 8 | 110000 | 110000 + 6 | 110110 | 9 | 100001 | 100000 + 7 | 111001 | 6 | 110110 | 110000 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 110000 + 7 | 111001 | 9 | 100001 | 100001 + 8 | 110000 | 6 | 110110 | 110000 + 8 | 110000 | 7 | 111001 | 110000 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 100000 + 9 | 100001 | 6 | 110110 | 100000 + 9 | 100001 | 7 | 111001 | 100001 + 9 | 100001 | 8 | 110000 | 100000 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 000000 + 6 | 110110 | 7 | 111001 | 001111 + 6 | 110110 | 8 | 110000 | 000110 + 6 | 110110 | 9 | 100001 | 010111 + 7 | 111001 | 6 | 110110 | 001111 + 7 | 111001 | 7 | 111001 | 000000 + 7 | 111001 | 8 | 110000 | 001001 + 7 | 111001 | 9 | 100001 | 011000 + 8 | 110000 | 6 | 110110 | 000110 + 8 | 110000 | 7 | 111001 | 001001 + 8 | 110000 | 8 | 110000 | 000000 + 8 | 110000 | 9 | 100001 | 010001 + 9 | 100001 | 6 | 110110 | 010111 + 9 | 100001 | 7 | 111001 | 011000 + 9 | 100001 | 8 | 110000 | 010001 + 9 | 100001 | 9 | 100001 | 000000 +(16 rows) + +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 +(4 rows) + +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b << 3) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (~ b) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot OR bit strings of different sizes +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot AND bit strings of different sizes +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot XOR bit strings of different sizes +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 001 + 5 | 101 | 001 + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 +(13 rows) + +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 000 + 5 | 101 | 000 + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 +(13 rows) + +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 01 + 3 | 11 | 00 + 4 | 100 | 011 + 5 | 101 | 010 + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 +(13 rows) + +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" << 3) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, (~ (b)::"bit") + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 6 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_BIT+" +drop cascades to foreign table "type_VARBIT" +drop cascades to foreign table "type_VARBIT+" +drop cascades to server sqlite2 diff --git a/expected/13.12/extra/bool.out b/expected/13.12/extra/bool.out index 4083dbca..45750a6a 100644 --- a/expected/13.12/extra/bool.out +++ b/expected/13.12/extra/bool.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -121,8 +121,9 @@ SELECT * FROM "type_BOOLEAN+"; --Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (1 bytes) : 'x' +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; --Testcase 36: @@ -249,8 +250,9 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 49: ERR - invalid float for bool column SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "real" affinity : 3.14159265358979 +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 50 DELETE FROM "type_BOOLEAN" WHERE i = 27; --Testcase 51: diff --git a/expected/13.12/extra/encodings.out b/expected/13.12/extra/encodings.out index 1e041e7d..9c4ccec7 100644 --- a/expected/13.12/extra/encodings.out +++ b/expected/13.12/extra/encodings.out @@ -39,7 +39,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; i | t @@ -74,7 +74,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -118,6 +118,8 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; i | t -----+--------------------------------------------------------------------- @@ -138,6 +140,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); SELECT * FROM "Unicode data" WHERE i = 'bel+'; i | t @@ -198,6 +202,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -239,6 +245,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -417,6 +425,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -437,6 +447,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -457,6 +469,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -528,7 +542,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -554,6 +568,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -568,8 +584,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -584,6 +604,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -645,6 +667,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -665,6 +689,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -679,6 +705,8 @@ ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -699,16 +727,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -757,16 +795,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -815,6 +861,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -862,6 +910,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -935,11 +985,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -955,6 +1007,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -969,8 +1023,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -985,6 +1043,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -1046,6 +1106,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1066,6 +1128,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1080,6 +1144,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1100,16 +1166,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1158,16 +1234,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1216,6 +1300,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1236,6 +1322,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1256,6 +1344,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1329,11 +1419,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1349,12 +1441,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1453,6 +1553,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1467,6 +1569,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1487,16 +1591,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1545,16 +1659,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1603,6 +1725,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1623,6 +1747,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1643,6 +1769,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1716,11 +1844,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1736,12 +1866,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1813,6 +1951,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1854,6 +1994,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1874,16 +2016,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1932,16 +2084,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1990,6 +2150,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2010,6 +2172,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2030,6 +2194,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2103,11 +2269,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2123,12 +2291,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2200,6 +2376,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2220,6 +2398,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2261,16 +2441,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -2319,16 +2509,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2377,6 +2575,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2397,6 +2597,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2417,6 +2619,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2490,11 +2694,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2510,12 +2716,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2587,6 +2801,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2607,6 +2823,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2621,6 +2839,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -2647,6 +2867,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -2661,6 +2883,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -2713,16 +2937,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2771,6 +3003,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2791,6 +3025,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2811,6 +3047,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2883,11 +3121,13 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2903,12 +3143,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2980,6 +3228,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3000,6 +3250,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3014,6 +3266,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3040,6 +3294,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3054,6 +3310,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3106,16 +3364,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3164,6 +3430,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3184,6 +3452,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3204,6 +3474,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3276,11 +3548,13 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3296,12 +3570,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3373,6 +3655,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3393,6 +3677,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3407,6 +3693,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3427,16 +3715,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -3564,6 +3862,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3584,6 +3884,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3604,6 +3906,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3676,11 +3980,13 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3696,12 +4002,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3773,6 +4087,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3793,6 +4109,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3807,6 +4125,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3833,6 +4153,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3847,6 +4169,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3899,16 +4223,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3957,6 +4289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3977,6 +4311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3997,6 +4333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4068,11 +4406,13 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4088,12 +4428,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4165,6 +4513,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4185,6 +4535,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4199,6 +4551,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4219,16 +4573,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -4277,16 +4641,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4362,6 +4738,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4382,6 +4760,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4455,11 +4835,13 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4475,12 +4857,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4552,6 +4942,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4572,6 +4964,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4586,6 +4980,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4612,6 +5008,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -4626,6 +5024,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -4678,16 +5078,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4736,6 +5144,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -4756,6 +5166,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4776,6 +5188,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4848,11 +5262,13 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4868,12 +5284,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4945,6 +5369,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4965,6 +5391,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4979,6 +5407,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4999,16 +5429,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5057,16 +5497,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5142,6 +5594,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5162,6 +5616,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5234,11 +5690,13 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5254,12 +5712,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5331,6 +5797,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5351,6 +5819,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5365,6 +5835,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5385,16 +5857,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5443,6 +5925,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -5451,6 +5935,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -5461,6 +5947,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5535,6 +6023,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5555,6 +6045,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5628,11 +6120,13 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5648,12 +6142,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5725,6 +6227,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5745,6 +6249,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5759,6 +6265,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5785,6 +6293,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -5799,6 +6309,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -5851,16 +6363,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5909,6 +6429,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -5929,6 +6451,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5949,6 +6473,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6021,11 +6547,13 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6041,12 +6569,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6118,6 +6654,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6138,6 +6676,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6152,6 +6692,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6178,6 +6720,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -6192,6 +6736,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -6244,16 +6790,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -6302,6 +6858,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6322,6 +6880,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6342,6 +6902,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6414,11 +6976,13 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6434,12 +6998,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6511,6 +7083,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6531,6 +7105,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6545,6 +7121,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6565,16 +7143,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -6623,6 +7213,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -6637,6 +7229,8 @@ SELECT * FROM "Unicode data" WHERE i = 'srp'; SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; i | t -----+------------------------------------------- @@ -6695,6 +7289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6715,6 +7311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6735,6 +7333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6807,11 +7407,13 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6827,12 +7429,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6904,6 +7514,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6924,6 +7536,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6938,6 +7552,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6958,16 +7574,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7095,6 +7721,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7115,6 +7743,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7135,6 +7765,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7207,11 +7839,13 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7332,6 +7966,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7352,6 +7988,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7366,6 +8004,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7386,16 +8026,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7444,16 +8094,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7502,6 +8160,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7522,6 +8182,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7542,6 +8204,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7615,11 +8279,13 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7635,12 +8301,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -7712,6 +8386,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7732,6 +8408,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7746,6 +8424,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7845,16 +8525,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7903,6 +8593,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7923,6 +8615,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7943,6 +8637,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8015,11 +8711,13 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8035,12 +8733,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8112,6 +8818,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8153,6 +8861,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8173,16 +8883,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -8231,16 +8951,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8289,6 +9017,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8309,6 +9039,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8329,6 +9061,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8402,11 +9136,13 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8422,12 +9158,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8499,6 +9243,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8519,6 +9265,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8533,6 +9281,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8632,16 +9382,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8690,6 +9450,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8710,6 +9472,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8730,6 +9494,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8802,11 +9568,13 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8822,12 +9590,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8899,6 +9675,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8919,6 +9697,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8960,16 +9740,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9018,16 +9808,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9076,6 +9874,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9096,6 +9896,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9116,6 +9918,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9189,11 +9993,13 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9215,12 +10021,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9319,6 +10133,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9333,6 +10149,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9353,16 +10171,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9411,16 +10241,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9469,6 +10307,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9489,6 +10329,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9509,6 +10351,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9582,11 +10426,13 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9602,12 +10448,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9679,6 +10533,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -9699,6 +10555,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9713,6 +10571,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9733,16 +10593,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9791,6 +10661,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -9799,6 +10671,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -9809,6 +10683,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9883,6 +10759,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9903,6 +10781,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9976,7 +10856,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/expected/13.12/extra/float4.out b/expected/13.12/extra/float4.out index fc3b830d..6533dacf 100644 --- a/expected/13.12/extra/float4.out +++ b/expected/13.12/extra/float4.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/expected/13.12/extra/float8.out b/expected/13.12/extra/float8.out index 562faaf0..be13f418 100644 --- a/expected/13.12/extra/float8.out +++ b/expected/13.12/extra/float8.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/expected/13.12/extra/insert.out b/expected/13.12/extra/insert.out index 917a45c8..19773b50 100644 --- a/expected/13.12/extra/insert.out +++ b/expected/13.12/extra/insert.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/expected/13.12/extra/int4.out b/expected/13.12/extra/int4.out index c7550828..6c9329ab 100644 --- a/expected/13.12/extra/int4.out +++ b/expected/13.12/extra/int4.out @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/expected/13.12/extra/int8.out b/expected/13.12/extra/int8.out index 9156b35b..a3fd3d02 100644 --- a/expected/13.12/extra/int8.out +++ b/expected/13.12/extra/int8.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/expected/13.12/extra/join.out b/expected/13.12/extra/join.out index 753a6c1d..db3f4bea 100644 --- a/expected/13.12/extra/join.out +++ b/expected/13.12/extra/join.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( i integer, diff --git a/expected/13.12/extra/limit.out b/expected/13.12/extra/limit.out index 550f09a2..c8e8d24a 100644 --- a/expected/13.12/extra/limit.out +++ b/expected/13.12/extra/limit.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/13.12/extra/numeric.out b/expected/13.12/extra/numeric.out index 90adf3b4..3fda49ca 100644 --- a/expected/13.12/extra/numeric.out +++ b/expected/13.12/extra/numeric.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; --Testcase 570: diff --git a/expected/13.12/extra/out_of_range.out b/expected/13.12/extra/out_of_range.out new file mode 100644 index 00000000..8de68b14 --- /dev/null +++ b/expected/13.12/extra/out_of_range.out @@ -0,0 +1,172 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow + q1 | q2 +----------------------+------------------- + 123 | 456 + 123 | 4567890123456789 + 4567890123456789 | 123 + 4567890123456789 | 4567890123456789 + 4567890123456789 | -4567890123456789 + -9223372036854775808 | 0 +(6 rows) + +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow + q1 +---------------------- + 123 + 123 + 4567890123456789 + 4567890123456789 + 4567890123456789 + -9223372036854775808 +(6 rows) + +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +NOTICE: drop cascades to 5 other objects +DETAIL: drop cascades to foreign table int4_tbl +drop cascades to foreign table int4_tmp +drop cascades to foreign table int2_tbl +drop cascades to foreign table int2_tmp +drop cascades to foreign table int8_tbl +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/13.12/extra/prepare.out b/expected/13.12/extra/prepare.out index cbdeaa4c..ca4e4913 100644 --- a/expected/13.12/extra/prepare.out +++ b/expected/13.12/extra/prepare.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( unique1 int4, diff --git a/expected/13.12/extra/select.out b/expected/13.12/extra/select.out index da0f61e5..86567108 100644 --- a/expected/13.12/extra/select.out +++ b/expected/13.12/extra/select.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( unique1 int4, diff --git a/expected/13.12/extra/select_having.out b/expected/13.12/extra/select_having.out index 9bc2ef0c..1a159651 100644 --- a/expected/13.12/extra/select_having.out +++ b/expected/13.12/extra/select_having.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; -- load test data diff --git a/expected/13.12/extra/sqlite_fdw_post.out b/expected/13.12/extra/sqlite_fdw_post.out index 237f7a48..726222c2 100644 --- a/expected/13.12/extra/sqlite_fdw_post.out +++ b/expected/13.12/extra/sqlite_fdw_post.out @@ -6,9 +6,9 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 484: @@ -137,7 +137,7 @@ ERROR: SQL error during prepare: no such table: main.T 1 SELECT `C 1`, `c3`, `c DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -4624,20 +4624,24 @@ DROP FUNCTION f_test(int); ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 WHERE c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 274: SELECT ft1.c1, ft2.c2, ft1.c8 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 275: SELECT ft1.c1, ft2.c2, ft1 FROM ft1, ft2 WHERE ft1.c1 = ft2.c1 AND ft1.c1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE text; -- =================================================================== -- subtransaction @@ -9748,7 +9752,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/expected/13.12/extra/timestamp.out b/expected/13.12/extra/timestamp.out index 3b2931f6..802a83f5 100644 --- a/expected/13.12/extra/timestamp.out +++ b/expected/13.12/extra/timestamp.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/expected/13.12/extra/update.out b/expected/13.12/extra/update.out index d5b713cd..a0c29c4b 100644 --- a/expected/13.12/extra/update.out +++ b/expected/13.12/extra/update.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( i INT OPTIONS (key 'true'), diff --git a/expected/13.12/extra/uuid.out b/expected/13.12/extra/uuid.out index 92eb5efb..34256a54 100644 --- a/expected/13.12/extra/uuid.out +++ b/expected/13.12/extra/uuid.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 109: @@ -440,11 +440,13 @@ ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; --Testcase 189: SELECT * FROM "type_UUID+" WHERE "i" = 42; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length +HINT: SQLite value with "blob" affinity (17 bytes) in hex : a0eebc999c0b4ef8bb6d6bb9bd380a11f1 +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 190: SELECT * FROM "type_UUID+" WHERE "i" = 43; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length +HINT: SQLite value with "blob" affinity (15 bytes) in hex : b0eebc999c0b4ef8bb6d6bb9bd380a +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 191: EXPLAIN VERBOSE DELETE FROM "type_UUID" WHERE "i" IN (42, 43); diff --git a/expected/13.12/selectfunc.out b/expected/13.12/selectfunc.out index 0ff93436..14dcd259 100644 --- a/expected/13.12/selectfunc.out +++ b/expected/13.12/selectfunc.out @@ -4,7 +4,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); --Testcase 3: diff --git a/expected/13.12/sqlite_fdw.out b/expected/13.12/sqlite_fdw.out index 7e2f0d97..b0f6b693 100644 --- a/expected/13.12/sqlite_fdw.out +++ b/expected/13.12/sqlite_fdw.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: @@ -1501,8 +1501,9 @@ SELECT * FROM fts_table; -- should work ALTER TABLE fts_table ALTER COLUMN name TYPE int; --Testcase 160: SELECT * FROM fts_table; -- should fail -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (12 bytes) : 'this is name' +CONTEXT: foreign table "fts_table" foreign column "name" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table -- issue #62 github --Testcase 236: INSERT INTO noprimary VALUES (4, 'Test''s'); diff --git a/expected/13.12/type.out b/expected/13.12/type.out index ffce5186..9106169a 100644 --- a/expected/13.12/type.out +++ b/expected/13.12/type.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; @@ -510,1316 +510,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE IF EXISTS "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(3 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=1 width=20) - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(3 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(42 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 -(23 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(3 rows) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(2 rows) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(3 rows) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - -> Foreign Update on public."type_UUID" (cost=10.00..15.00 rows=15 width=24) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(4 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | - 44 | | null | -(2 rows) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(2 rows) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) -(3 rows) - ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; -NOTICE: foreign table "type_BIT+" does not exist, skipping ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); -ERROR: bit string length 1 does not match type bit(6) ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); -ERROR: bit string length 2 does not match type bit(6) ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); -ERROR: bit string length 3 does not match type bit(6) ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 213: -SELECT * FROM "type_BIT+"; - i | b | t | l | bi ----+--------+---------+---+---- - 6 | 110110 | integer | 2 | 54 - 7 | 111001 | integer | 2 | 57 - 8 | 110000 | integer | 2 | 48 - 9 | 100001 | integer | 2 | 33 -(4 rows) - ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; - i | b ----+-------- - 8 | 110000 - 9 | 100001 -(2 rows) - ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; - i | b ----+-------- - 7 | 111001 -(1 row) - ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - i | b ----+-------- - 6 | 110110 -(1 row) - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; -NOTICE: foreign table "type_VARBIT+" does not exist, skipping ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); ---Testcase 232 -SELECT * FROM "type_VARBIT+"; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 6 | 110110 | integer | 2 - 7 | 111001 | integer | 2 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(11 rows) - ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; - i | b | t | l ----+--------+---------+--- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 -(7 rows) - ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 7 | 111001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(3 rows) - ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - i | b | t | l ----+--------+---------+--- - 6 | 110110 | integer | 2 -(1 row) - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); -ERROR: SQLite FDW dosens't support very long bit/varbit data -HINT: bit length 65, maximum 64 ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - i | b | t | l -----+-----------------------------------------------------------------+---------+---- - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 -(3 rows) - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 111111 - 6 | 110110 | 8 | 110000 | 110110 - 6 | 110110 | 9 | 100001 | 110111 - 7 | 111001 | 6 | 110110 | 111111 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 111001 - 7 | 111001 | 9 | 100001 | 111001 - 8 | 110000 | 6 | 110110 | 110110 - 8 | 110000 | 7 | 111001 | 111001 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 110001 - 9 | 100001 | 6 | 110110 | 110111 - 9 | 100001 | 7 | 111001 | 111001 - 9 | 100001 | 8 | 110000 | 110001 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 110000 - 6 | 110110 | 8 | 110000 | 110000 - 6 | 110110 | 9 | 100001 | 100000 - 7 | 111001 | 6 | 110110 | 110000 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 110000 - 7 | 111001 | 9 | 100001 | 100001 - 8 | 110000 | 6 | 110110 | 110000 - 8 | 110000 | 7 | 111001 | 110000 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 100000 - 9 | 100001 | 6 | 110110 | 100000 - 9 | 100001 | 7 | 111001 | 100001 - 9 | 100001 | 8 | 110000 | 100000 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 000000 - 6 | 110110 | 7 | 111001 | 001111 - 6 | 110110 | 8 | 110000 | 000110 - 6 | 110110 | 9 | 100001 | 010111 - 7 | 111001 | 6 | 110110 | 001111 - 7 | 111001 | 7 | 111001 | 000000 - 7 | 111001 | 8 | 110000 | 001001 - 7 | 111001 | 9 | 100001 | 011000 - 8 | 110000 | 6 | 110110 | 000110 - 8 | 110000 | 7 | 111001 | 001001 - 8 | 110000 | 8 | 110000 | 000000 - 8 | 110000 | 9 | 100001 | 010001 - 9 | 100001 | 6 | 110110 | 010111 - 9 | 100001 | 7 | 111001 | 011000 - 9 | 100001 | 8 | 110000 | 010001 - 9 | 100001 | 9 | 100001 | 000000 -(16 rows) - ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 -(4 rows) - ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b << 3) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (~ b) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot OR bit strings of different sizes ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot AND bit strings of different sizes ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot XOR bit strings of different sizes ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 001 - 5 | 101 | 001 - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 -(13 rows) - ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 000 - 5 | 101 | 000 - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 -(13 rows) - ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 01 - 3 | 11 | 00 - 4 | 100 | 011 - 5 | 101 | 010 - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 -(13 rows) - ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" << 3) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, (~ (b)::"bit") - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 51 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1845,7 +538,10 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_VARBIT" drop cascades to foreign table "type_UUIDpk" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1864,10 +560,4 @@ drop cascades to foreign table "Unicode data" drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" -drop cascades to foreign table "type_BIT" -drop cascades to foreign table "type_BIT+" -drop cascades to foreign table "type_VARBIT" -drop cascades to foreign table "type_VARBIT+" drop cascades to server sqlite2 diff --git a/expected/14.9/aggregate.out b/expected/14.9/aggregate.out index d3f193e0..584a2c11 100644 --- a/expected/14.9/aggregate.out +++ b/expected/14.9/aggregate.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 1: diff --git a/expected/14.9/extra/aggregates.out b/expected/14.9/extra/aggregates.out index f891bb61..5da75fe1 100644 --- a/expected/14.9/extra/aggregates.out +++ b/expected/14.9/extra/aggregates.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/14.9/extra/bitstring.out b/expected/14.9/extra/bitstring.out new file mode 100644 index 00000000..d5105515 --- /dev/null +++ b/expected/14.9/extra/bitstring.out @@ -0,0 +1,810 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +NOTICE: foreign table "type_BIT+" does not exist, skipping +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +ERROR: bit string length 1 does not match type bit(6) +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +ERROR: bit string length 2 does not match type bit(6) +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +ERROR: bit string length 3 does not match type bit(6) +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 15: +SELECT * FROM "type_BIT+"; + i | b | t | l | bi +---+--------+---------+---+---- + 6 | 110110 | integer | 2 | 54 + 7 | 111001 | integer | 2 | 57 + 8 | 110000 | integer | 2 | 48 + 9 | 100001 | integer | 2 | 33 +(4 rows) + +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; + i | b +---+-------- + 8 | 110000 + 9 | 100001 +(2 rows) + +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; + i | b +---+-------- + 7 | 111001 +(1 row) + +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + i | b +---+-------- + 6 | 110110 +(1 row) + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +NOTICE: foreign table "type_VARBIT+" does not exist, skipping +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); +--Testcase 34: +SELECT * FROM "type_VARBIT+"; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 6 | 110110 | integer | 2 + 7 | 111001 | integer | 2 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; + i | b | t | l +---+--------+---------+--- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 +(7 rows) + +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 7 | 111001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(3 rows) + +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + i | b | t | l +---+--------+---------+--- + 6 | 110110 | integer | 2 +(1 row) + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +ERROR: SQLite FDW dosens't support very long bit/varbit data +HINT: bit length 65, maximum 64 +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + i | b | t | l +----+-----------------------------------------------------------------+---------+---- + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 +(3 rows) + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 111111 + 6 | 110110 | 8 | 110000 | 110110 + 6 | 110110 | 9 | 100001 | 110111 + 7 | 111001 | 6 | 110110 | 111111 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 111001 + 7 | 111001 | 9 | 100001 | 111001 + 8 | 110000 | 6 | 110110 | 110110 + 8 | 110000 | 7 | 111001 | 111001 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 110001 + 9 | 100001 | 6 | 110110 | 110111 + 9 | 100001 | 7 | 111001 | 111001 + 9 | 100001 | 8 | 110000 | 110001 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 110000 + 6 | 110110 | 8 | 110000 | 110000 + 6 | 110110 | 9 | 100001 | 100000 + 7 | 111001 | 6 | 110110 | 110000 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 110000 + 7 | 111001 | 9 | 100001 | 100001 + 8 | 110000 | 6 | 110110 | 110000 + 8 | 110000 | 7 | 111001 | 110000 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 100000 + 9 | 100001 | 6 | 110110 | 100000 + 9 | 100001 | 7 | 111001 | 100001 + 9 | 100001 | 8 | 110000 | 100000 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 000000 + 6 | 110110 | 7 | 111001 | 001111 + 6 | 110110 | 8 | 110000 | 000110 + 6 | 110110 | 9 | 100001 | 010111 + 7 | 111001 | 6 | 110110 | 001111 + 7 | 111001 | 7 | 111001 | 000000 + 7 | 111001 | 8 | 110000 | 001001 + 7 | 111001 | 9 | 100001 | 011000 + 8 | 110000 | 6 | 110110 | 000110 + 8 | 110000 | 7 | 111001 | 001001 + 8 | 110000 | 8 | 110000 | 000000 + 8 | 110000 | 9 | 100001 | 010001 + 9 | 100001 | 6 | 110110 | 010111 + 9 | 100001 | 7 | 111001 | 011000 + 9 | 100001 | 8 | 110000 | 010001 + 9 | 100001 | 9 | 100001 | 000000 +(16 rows) + +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 +(4 rows) + +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b << 3) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (~ b) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot OR bit strings of different sizes +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot AND bit strings of different sizes +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot XOR bit strings of different sizes +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 001 + 5 | 101 | 001 + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 +(13 rows) + +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 000 + 5 | 101 | 000 + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 +(13 rows) + +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 01 + 3 | 11 | 00 + 4 | 100 | 011 + 5 | 101 | 010 + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 +(13 rows) + +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" << 3) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, (~ (b)::"bit") + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 6 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_BIT+" +drop cascades to foreign table "type_VARBIT" +drop cascades to foreign table "type_VARBIT+" +drop cascades to server sqlite2 diff --git a/expected/14.9/extra/bool.out b/expected/14.9/extra/bool.out index 4083dbca..45750a6a 100644 --- a/expected/14.9/extra/bool.out +++ b/expected/14.9/extra/bool.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -121,8 +121,9 @@ SELECT * FROM "type_BOOLEAN+"; --Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (1 bytes) : 'x' +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; --Testcase 36: @@ -249,8 +250,9 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 49: ERR - invalid float for bool column SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "real" affinity : 3.14159265358979 +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 50 DELETE FROM "type_BOOLEAN" WHERE i = 27; --Testcase 51: diff --git a/expected/14.9/extra/encodings.out b/expected/14.9/extra/encodings.out index 1e041e7d..9c4ccec7 100644 --- a/expected/14.9/extra/encodings.out +++ b/expected/14.9/extra/encodings.out @@ -39,7 +39,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; i | t @@ -74,7 +74,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -118,6 +118,8 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; i | t -----+--------------------------------------------------------------------- @@ -138,6 +140,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); SELECT * FROM "Unicode data" WHERE i = 'bel+'; i | t @@ -198,6 +202,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -239,6 +245,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -417,6 +425,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -437,6 +447,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -457,6 +469,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -528,7 +542,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -554,6 +568,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -568,8 +584,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -584,6 +604,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -645,6 +667,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -665,6 +689,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -679,6 +705,8 @@ ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -699,16 +727,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -757,16 +795,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -815,6 +861,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -862,6 +910,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -935,11 +985,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -955,6 +1007,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -969,8 +1023,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -985,6 +1043,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -1046,6 +1106,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1066,6 +1128,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1080,6 +1144,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1100,16 +1166,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1158,16 +1234,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1216,6 +1300,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1236,6 +1322,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1256,6 +1344,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1329,11 +1419,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1349,12 +1441,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1453,6 +1553,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1467,6 +1569,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1487,16 +1591,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1545,16 +1659,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1603,6 +1725,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1623,6 +1747,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1643,6 +1769,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1716,11 +1844,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1736,12 +1866,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1813,6 +1951,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1854,6 +1994,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1874,16 +2016,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1932,16 +2084,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1990,6 +2150,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2010,6 +2172,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2030,6 +2194,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2103,11 +2269,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2123,12 +2291,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2200,6 +2376,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2220,6 +2398,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2261,16 +2441,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -2319,16 +2509,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2377,6 +2575,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2397,6 +2597,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2417,6 +2619,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2490,11 +2694,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2510,12 +2716,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2587,6 +2801,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2607,6 +2823,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2621,6 +2839,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -2647,6 +2867,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -2661,6 +2883,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -2713,16 +2937,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2771,6 +3003,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2791,6 +3025,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2811,6 +3047,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2883,11 +3121,13 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2903,12 +3143,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2980,6 +3228,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3000,6 +3250,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3014,6 +3266,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3040,6 +3294,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3054,6 +3310,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3106,16 +3364,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3164,6 +3430,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3184,6 +3452,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3204,6 +3474,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3276,11 +3548,13 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3296,12 +3570,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3373,6 +3655,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3393,6 +3677,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3407,6 +3693,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3427,16 +3715,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -3564,6 +3862,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3584,6 +3884,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3604,6 +3906,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3676,11 +3980,13 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3696,12 +4002,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3773,6 +4087,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3793,6 +4109,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3807,6 +4125,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3833,6 +4153,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3847,6 +4169,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3899,16 +4223,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3957,6 +4289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3977,6 +4311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3997,6 +4333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4068,11 +4406,13 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4088,12 +4428,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4165,6 +4513,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4185,6 +4535,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4199,6 +4551,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4219,16 +4573,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -4277,16 +4641,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4362,6 +4738,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4382,6 +4760,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4455,11 +4835,13 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4475,12 +4857,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4552,6 +4942,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4572,6 +4964,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4586,6 +4980,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4612,6 +5008,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -4626,6 +5024,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -4678,16 +5078,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4736,6 +5144,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -4756,6 +5166,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4776,6 +5188,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4848,11 +5262,13 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4868,12 +5284,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4945,6 +5369,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4965,6 +5391,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4979,6 +5407,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4999,16 +5429,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5057,16 +5497,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5142,6 +5594,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5162,6 +5616,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5234,11 +5690,13 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5254,12 +5712,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5331,6 +5797,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5351,6 +5819,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5365,6 +5835,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5385,16 +5857,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5443,6 +5925,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -5451,6 +5935,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -5461,6 +5947,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5535,6 +6023,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5555,6 +6045,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5628,11 +6120,13 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5648,12 +6142,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5725,6 +6227,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5745,6 +6249,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5759,6 +6265,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5785,6 +6293,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -5799,6 +6309,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -5851,16 +6363,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5909,6 +6429,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -5929,6 +6451,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5949,6 +6473,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6021,11 +6547,13 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6041,12 +6569,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6118,6 +6654,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6138,6 +6676,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6152,6 +6692,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6178,6 +6720,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -6192,6 +6736,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -6244,16 +6790,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -6302,6 +6858,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6322,6 +6880,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6342,6 +6902,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6414,11 +6976,13 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6434,12 +6998,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6511,6 +7083,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6531,6 +7105,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6545,6 +7121,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6565,16 +7143,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -6623,6 +7213,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -6637,6 +7229,8 @@ SELECT * FROM "Unicode data" WHERE i = 'srp'; SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; i | t -----+------------------------------------------- @@ -6695,6 +7289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6715,6 +7311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6735,6 +7333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6807,11 +7407,13 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6827,12 +7429,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6904,6 +7514,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6924,6 +7536,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6938,6 +7552,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6958,16 +7574,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7095,6 +7721,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7115,6 +7743,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7135,6 +7765,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7207,11 +7839,13 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7332,6 +7966,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7352,6 +7988,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7366,6 +8004,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7386,16 +8026,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7444,16 +8094,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7502,6 +8160,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7522,6 +8182,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7542,6 +8204,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7615,11 +8279,13 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7635,12 +8301,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -7712,6 +8386,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7732,6 +8408,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7746,6 +8424,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7845,16 +8525,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7903,6 +8593,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7923,6 +8615,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7943,6 +8637,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8015,11 +8711,13 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8035,12 +8733,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8112,6 +8818,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8153,6 +8861,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8173,16 +8883,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -8231,16 +8951,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8289,6 +9017,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8309,6 +9039,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8329,6 +9061,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8402,11 +9136,13 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8422,12 +9158,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8499,6 +9243,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8519,6 +9265,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8533,6 +9281,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8632,16 +9382,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8690,6 +9450,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8710,6 +9472,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8730,6 +9494,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8802,11 +9568,13 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8822,12 +9590,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8899,6 +9675,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8919,6 +9697,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8960,16 +9740,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9018,16 +9808,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9076,6 +9874,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9096,6 +9896,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9116,6 +9918,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9189,11 +9993,13 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9215,12 +10021,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9319,6 +10133,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9333,6 +10149,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9353,16 +10171,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9411,16 +10241,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9469,6 +10307,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9489,6 +10329,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9509,6 +10351,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9582,11 +10426,13 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9602,12 +10448,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9679,6 +10533,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -9699,6 +10555,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9713,6 +10571,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9733,16 +10593,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9791,6 +10661,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -9799,6 +10671,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -9809,6 +10683,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9883,6 +10759,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9903,6 +10781,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9976,7 +10856,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/expected/14.9/extra/float4.out b/expected/14.9/extra/float4.out index 54eded03..6d9242f0 100644 --- a/expected/14.9/extra/float4.out +++ b/expected/14.9/extra/float4.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/expected/14.9/extra/float8.out b/expected/14.9/extra/float8.out index 7b747c2f..44ccb074 100644 --- a/expected/14.9/extra/float8.out +++ b/expected/14.9/extra/float8.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/expected/14.9/extra/insert.out b/expected/14.9/extra/insert.out index ada16edb..7a2c6c77 100644 --- a/expected/14.9/extra/insert.out +++ b/expected/14.9/extra/insert.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/expected/14.9/extra/int4.out b/expected/14.9/extra/int4.out index 26da5735..d5d7231f 100644 --- a/expected/14.9/extra/int4.out +++ b/expected/14.9/extra/int4.out @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/expected/14.9/extra/int8.out b/expected/14.9/extra/int8.out index 7b036da6..d40b12c9 100644 --- a/expected/14.9/extra/int8.out +++ b/expected/14.9/extra/int8.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/expected/14.9/extra/join.out b/expected/14.9/extra/join.out index 8a20dd20..0b9ab1c3 100644 --- a/expected/14.9/extra/join.out +++ b/expected/14.9/extra/join.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( i integer, diff --git a/expected/14.9/extra/limit.out b/expected/14.9/extra/limit.out index 550f09a2..c8e8d24a 100644 --- a/expected/14.9/extra/limit.out +++ b/expected/14.9/extra/limit.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/14.9/extra/numeric.out b/expected/14.9/extra/numeric.out index 7a890c75..90dd2684 100644 --- a/expected/14.9/extra/numeric.out +++ b/expected/14.9/extra/numeric.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; --Testcase 570: diff --git a/expected/14.9/extra/out_of_range.out b/expected/14.9/extra/out_of_range.out new file mode 100644 index 00000000..8de68b14 --- /dev/null +++ b/expected/14.9/extra/out_of_range.out @@ -0,0 +1,172 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow + q1 | q2 +----------------------+------------------- + 123 | 456 + 123 | 4567890123456789 + 4567890123456789 | 123 + 4567890123456789 | 4567890123456789 + 4567890123456789 | -4567890123456789 + -9223372036854775808 | 0 +(6 rows) + +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow + q1 +---------------------- + 123 + 123 + 4567890123456789 + 4567890123456789 + 4567890123456789 + -9223372036854775808 +(6 rows) + +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +NOTICE: drop cascades to 5 other objects +DETAIL: drop cascades to foreign table int4_tbl +drop cascades to foreign table int4_tmp +drop cascades to foreign table int2_tbl +drop cascades to foreign table int2_tmp +drop cascades to foreign table int8_tbl +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/14.9/extra/prepare.out b/expected/14.9/extra/prepare.out index cbdeaa4c..ca4e4913 100644 --- a/expected/14.9/extra/prepare.out +++ b/expected/14.9/extra/prepare.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( unique1 int4, diff --git a/expected/14.9/extra/select.out b/expected/14.9/extra/select.out index da0f61e5..86567108 100644 --- a/expected/14.9/extra/select.out +++ b/expected/14.9/extra/select.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( unique1 int4, diff --git a/expected/14.9/extra/select_having.out b/expected/14.9/extra/select_having.out index 9bc2ef0c..1a159651 100644 --- a/expected/14.9/extra/select_having.out +++ b/expected/14.9/extra/select_having.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; -- load test data diff --git a/expected/14.9/extra/sqlite_fdw_post.out b/expected/14.9/extra/sqlite_fdw_post.out index c5acaac7..c2a72da1 100644 --- a/expected/14.9/extra/sqlite_fdw_post.out +++ b/expected/14.9/extra/sqlite_fdw_post.out @@ -6,11 +6,11 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr3 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 484: @@ -155,7 +155,7 @@ ERROR: SQL error during prepare: no such table: main.T 1 SELECT `C 1`, `c3`, `c DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -4721,20 +4721,24 @@ DROP TABLE reind_fdw_parent; ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8) WHERE x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 274: SELECT ftx.x1, ft2.c2, ftx.x8 FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 275: SELECT ftx.x1, ft2.c2, ftx FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 811: ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE text; -- =================================================================== @@ -10216,7 +10220,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/expected/14.9/extra/timestamp.out b/expected/14.9/extra/timestamp.out index 3b2931f6..802a83f5 100644 --- a/expected/14.9/extra/timestamp.out +++ b/expected/14.9/extra/timestamp.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/expected/14.9/extra/update.out b/expected/14.9/extra/update.out index 69411f9e..825667fa 100644 --- a/expected/14.9/extra/update.out +++ b/expected/14.9/extra/update.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( i INT OPTIONS (key 'true'), diff --git a/expected/14.9/extra/uuid.out b/expected/14.9/extra/uuid.out index b3fc91a8..91d00ccc 100644 --- a/expected/14.9/extra/uuid.out +++ b/expected/14.9/extra/uuid.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 109: @@ -442,11 +442,13 @@ ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; --Testcase 189: SELECT * FROM "type_UUID+" WHERE "i" = 42; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length +HINT: SQLite value with "blob" affinity (17 bytes) in hex : a0eebc999c0b4ef8bb6d6bb9bd380a11f1 +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 190: SELECT * FROM "type_UUID+" WHERE "i" = 43; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length +HINT: SQLite value with "blob" affinity (15 bytes) in hex : b0eebc999c0b4ef8bb6d6bb9bd380a +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 191: EXPLAIN VERBOSE DELETE FROM "type_UUID" WHERE "i" IN (42, 43); diff --git a/expected/14.9/selectfunc.out b/expected/14.9/selectfunc.out index 0ff93436..14dcd259 100644 --- a/expected/14.9/selectfunc.out +++ b/expected/14.9/selectfunc.out @@ -4,7 +4,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); --Testcase 3: diff --git a/expected/14.9/sqlite_fdw.out b/expected/14.9/sqlite_fdw.out index 51690c38..05fee260 100644 --- a/expected/14.9/sqlite_fdw.out +++ b/expected/14.9/sqlite_fdw.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: @@ -1483,8 +1483,9 @@ SELECT * FROM fts_table; -- should work ALTER TABLE fts_table ALTER COLUMN name TYPE int; --Testcase 160: SELECT * FROM fts_table; -- should fail -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (12 bytes) : 'this is name' +CONTEXT: foreign table "fts_table" foreign column "name" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table -- issue #62 github --Testcase 236: INSERT INTO noprimary VALUES (4, 'Test''s'); diff --git a/expected/14.9/type.out b/expected/14.9/type.out index bac27fce..9106169a 100644 --- a/expected/14.9/type.out +++ b/expected/14.9/type.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; @@ -510,1318 +510,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE IF EXISTS "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(42 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(23 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(3 rows) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(2 rows) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(3 rows) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(4 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | - 44 | | null | -(2 rows) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(2 rows) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) -(3 rows) - ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; -NOTICE: foreign table "type_BIT+" does not exist, skipping ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); -ERROR: bit string length 1 does not match type bit(6) ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); -ERROR: bit string length 2 does not match type bit(6) ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); -ERROR: bit string length 3 does not match type bit(6) ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 213: -SELECT * FROM "type_BIT+"; - i | b | t | l | bi ----+--------+---------+---+---- - 6 | 110110 | integer | 2 | 54 - 7 | 111001 | integer | 2 | 57 - 8 | 110000 | integer | 2 | 48 - 9 | 100001 | integer | 2 | 33 -(4 rows) - ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; - i | b ----+-------- - 8 | 110000 - 9 | 100001 -(2 rows) - ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; - i | b ----+-------- - 7 | 111001 -(1 row) - ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - i | b ----+-------- - 6 | 110110 -(1 row) - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; -NOTICE: foreign table "type_VARBIT+" does not exist, skipping ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); ---Testcase 232 -SELECT * FROM "type_VARBIT+"; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 6 | 110110 | integer | 2 - 7 | 111001 | integer | 2 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(11 rows) - ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; - i | b | t | l ----+--------+---------+--- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 -(7 rows) - ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 7 | 111001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(3 rows) - ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - i | b | t | l ----+--------+---------+--- - 6 | 110110 | integer | 2 -(1 row) - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); -ERROR: SQLite FDW dosens't support very long bit/varbit data -HINT: bit length 65, maximum 64 ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - i | b | t | l -----+-----------------------------------------------------------------+---------+---- - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 -(3 rows) - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 111111 - 6 | 110110 | 8 | 110000 | 110110 - 6 | 110110 | 9 | 100001 | 110111 - 7 | 111001 | 6 | 110110 | 111111 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 111001 - 7 | 111001 | 9 | 100001 | 111001 - 8 | 110000 | 6 | 110110 | 110110 - 8 | 110000 | 7 | 111001 | 111001 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 110001 - 9 | 100001 | 6 | 110110 | 110111 - 9 | 100001 | 7 | 111001 | 111001 - 9 | 100001 | 8 | 110000 | 110001 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 110000 - 6 | 110110 | 8 | 110000 | 110000 - 6 | 110110 | 9 | 100001 | 100000 - 7 | 111001 | 6 | 110110 | 110000 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 110000 - 7 | 111001 | 9 | 100001 | 100001 - 8 | 110000 | 6 | 110110 | 110000 - 8 | 110000 | 7 | 111001 | 110000 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 100000 - 9 | 100001 | 6 | 110110 | 100000 - 9 | 100001 | 7 | 111001 | 100001 - 9 | 100001 | 8 | 110000 | 100000 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 000000 - 6 | 110110 | 7 | 111001 | 001111 - 6 | 110110 | 8 | 110000 | 000110 - 6 | 110110 | 9 | 100001 | 010111 - 7 | 111001 | 6 | 110110 | 001111 - 7 | 111001 | 7 | 111001 | 000000 - 7 | 111001 | 8 | 110000 | 001001 - 7 | 111001 | 9 | 100001 | 011000 - 8 | 110000 | 6 | 110110 | 000110 - 8 | 110000 | 7 | 111001 | 001001 - 8 | 110000 | 8 | 110000 | 000000 - 8 | 110000 | 9 | 100001 | 010001 - 9 | 100001 | 6 | 110110 | 010111 - 9 | 100001 | 7 | 111001 | 011000 - 9 | 100001 | 8 | 110000 | 010001 - 9 | 100001 | 9 | 100001 | 000000 -(16 rows) - ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 -(4 rows) - ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b << 3) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (~ b) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot OR bit strings of different sizes ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot AND bit strings of different sizes ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot XOR bit strings of different sizes ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 001 - 5 | 101 | 001 - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 -(13 rows) - ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 000 - 5 | 101 | 000 - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 -(13 rows) - ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 01 - 3 | 11 | 00 - 4 | 100 | 011 - 5 | 101 | 010 - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 -(13 rows) - ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" << 3) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, (~ (b)::"bit") - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 51 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1847,7 +538,10 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_VARBIT" drop cascades to foreign table "type_UUIDpk" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1866,10 +560,4 @@ drop cascades to foreign table "Unicode data" drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" -drop cascades to foreign table "type_BIT" -drop cascades to foreign table "type_BIT+" -drop cascades to foreign table "type_VARBIT" -drop cascades to foreign table "type_VARBIT+" drop cascades to server sqlite2 diff --git a/expected/15.4/aggregate.out b/expected/15.4/aggregate.out index d3f193e0..584a2c11 100644 --- a/expected/15.4/aggregate.out +++ b/expected/15.4/aggregate.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 1: diff --git a/expected/15.4/extra/aggregates.out b/expected/15.4/extra/aggregates.out index 081834da..d7ccb85b 100644 --- a/expected/15.4/extra/aggregates.out +++ b/expected/15.4/extra/aggregates.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/15.4/extra/bitstring.out b/expected/15.4/extra/bitstring.out new file mode 100644 index 00000000..d5105515 --- /dev/null +++ b/expected/15.4/extra/bitstring.out @@ -0,0 +1,810 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +NOTICE: foreign table "type_BIT+" does not exist, skipping +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +ERROR: bit string length 1 does not match type bit(6) +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +ERROR: bit string length 2 does not match type bit(6) +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +ERROR: bit string length 3 does not match type bit(6) +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 15: +SELECT * FROM "type_BIT+"; + i | b | t | l | bi +---+--------+---------+---+---- + 6 | 110110 | integer | 2 | 54 + 7 | 111001 | integer | 2 | 57 + 8 | 110000 | integer | 2 | 48 + 9 | 100001 | integer | 2 | 33 +(4 rows) + +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; + i | b +---+-------- + 8 | 110000 + 9 | 100001 +(2 rows) + +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; + i | b +---+-------- + 7 | 111001 +(1 row) + +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + i | b +---+-------- + 6 | 110110 +(1 row) + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +NOTICE: foreign table "type_VARBIT+" does not exist, skipping +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); +--Testcase 34: +SELECT * FROM "type_VARBIT+"; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 6 | 110110 | integer | 2 + 7 | 111001 | integer | 2 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; + i | b | t | l +---+--------+---------+--- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 +(7 rows) + +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 7 | 111001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(3 rows) + +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + i | b | t | l +---+--------+---------+--- + 6 | 110110 | integer | 2 +(1 row) + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +ERROR: SQLite FDW dosens't support very long bit/varbit data +HINT: bit length 65, maximum 64 +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + i | b | t | l +----+-----------------------------------------------------------------+---------+---- + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 +(3 rows) + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 111111 + 6 | 110110 | 8 | 110000 | 110110 + 6 | 110110 | 9 | 100001 | 110111 + 7 | 111001 | 6 | 110110 | 111111 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 111001 + 7 | 111001 | 9 | 100001 | 111001 + 8 | 110000 | 6 | 110110 | 110110 + 8 | 110000 | 7 | 111001 | 111001 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 110001 + 9 | 100001 | 6 | 110110 | 110111 + 9 | 100001 | 7 | 111001 | 111001 + 9 | 100001 | 8 | 110000 | 110001 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 110000 + 6 | 110110 | 8 | 110000 | 110000 + 6 | 110110 | 9 | 100001 | 100000 + 7 | 111001 | 6 | 110110 | 110000 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 110000 + 7 | 111001 | 9 | 100001 | 100001 + 8 | 110000 | 6 | 110110 | 110000 + 8 | 110000 | 7 | 111001 | 110000 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 100000 + 9 | 100001 | 6 | 110110 | 100000 + 9 | 100001 | 7 | 111001 | 100001 + 9 | 100001 | 8 | 110000 | 100000 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 000000 + 6 | 110110 | 7 | 111001 | 001111 + 6 | 110110 | 8 | 110000 | 000110 + 6 | 110110 | 9 | 100001 | 010111 + 7 | 111001 | 6 | 110110 | 001111 + 7 | 111001 | 7 | 111001 | 000000 + 7 | 111001 | 8 | 110000 | 001001 + 7 | 111001 | 9 | 100001 | 011000 + 8 | 110000 | 6 | 110110 | 000110 + 8 | 110000 | 7 | 111001 | 001001 + 8 | 110000 | 8 | 110000 | 000000 + 8 | 110000 | 9 | 100001 | 010001 + 9 | 100001 | 6 | 110110 | 010111 + 9 | 100001 | 7 | 111001 | 011000 + 9 | 100001 | 8 | 110000 | 010001 + 9 | 100001 | 9 | 100001 | 000000 +(16 rows) + +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 +(4 rows) + +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b << 3) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (~ b) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot OR bit strings of different sizes +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot AND bit strings of different sizes +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot XOR bit strings of different sizes +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 001 + 5 | 101 | 001 + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 +(13 rows) + +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 000 + 5 | 101 | 000 + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 +(13 rows) + +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 01 + 3 | 11 | 00 + 4 | 100 | 011 + 5 | 101 | 010 + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 +(13 rows) + +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" << 3) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, (~ (b)::"bit") + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 6 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_BIT+" +drop cascades to foreign table "type_VARBIT" +drop cascades to foreign table "type_VARBIT+" +drop cascades to server sqlite2 diff --git a/expected/15.4/extra/bool.out b/expected/15.4/extra/bool.out index 4083dbca..45750a6a 100644 --- a/expected/15.4/extra/bool.out +++ b/expected/15.4/extra/bool.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -121,8 +121,9 @@ SELECT * FROM "type_BOOLEAN+"; --Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (1 bytes) : 'x' +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; --Testcase 36: @@ -249,8 +250,9 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 49: ERR - invalid float for bool column SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "real" affinity : 3.14159265358979 +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 50 DELETE FROM "type_BOOLEAN" WHERE i = 27; --Testcase 51: diff --git a/expected/15.4/extra/encodings.out b/expected/15.4/extra/encodings.out index 1e041e7d..9c4ccec7 100644 --- a/expected/15.4/extra/encodings.out +++ b/expected/15.4/extra/encodings.out @@ -39,7 +39,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; i | t @@ -74,7 +74,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -118,6 +118,8 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; i | t -----+--------------------------------------------------------------------- @@ -138,6 +140,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); SELECT * FROM "Unicode data" WHERE i = 'bel+'; i | t @@ -198,6 +202,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -239,6 +245,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -417,6 +425,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -437,6 +447,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -457,6 +469,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -528,7 +542,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -554,6 +568,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -568,8 +584,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -584,6 +604,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -645,6 +667,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -665,6 +689,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -679,6 +705,8 @@ ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -699,16 +727,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -757,16 +795,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -815,6 +861,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -862,6 +910,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -935,11 +985,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -955,6 +1007,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -969,8 +1023,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -985,6 +1043,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -1046,6 +1106,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1066,6 +1128,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1080,6 +1144,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1100,16 +1166,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1158,16 +1234,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1216,6 +1300,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1236,6 +1322,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1256,6 +1344,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1329,11 +1419,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1349,12 +1441,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1453,6 +1553,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1467,6 +1569,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1487,16 +1591,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1545,16 +1659,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1603,6 +1725,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1623,6 +1747,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1643,6 +1769,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1716,11 +1844,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1736,12 +1866,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1813,6 +1951,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1854,6 +1994,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1874,16 +2016,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1932,16 +2084,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1990,6 +2150,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2010,6 +2172,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2030,6 +2194,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2103,11 +2269,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2123,12 +2291,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2200,6 +2376,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2220,6 +2398,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2261,16 +2441,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -2319,16 +2509,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2377,6 +2575,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2397,6 +2597,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2417,6 +2619,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2490,11 +2694,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2510,12 +2716,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2587,6 +2801,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2607,6 +2823,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2621,6 +2839,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -2647,6 +2867,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -2661,6 +2883,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -2713,16 +2937,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2771,6 +3003,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2791,6 +3025,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2811,6 +3047,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2883,11 +3121,13 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2903,12 +3143,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2980,6 +3228,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3000,6 +3250,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3014,6 +3266,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3040,6 +3294,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3054,6 +3310,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3106,16 +3364,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3164,6 +3430,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3184,6 +3452,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3204,6 +3474,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3276,11 +3548,13 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3296,12 +3570,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3373,6 +3655,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3393,6 +3677,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3407,6 +3693,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3427,16 +3715,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -3564,6 +3862,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3584,6 +3884,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3604,6 +3906,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3676,11 +3980,13 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3696,12 +4002,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3773,6 +4087,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3793,6 +4109,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3807,6 +4125,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3833,6 +4153,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3847,6 +4169,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3899,16 +4223,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3957,6 +4289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3977,6 +4311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3997,6 +4333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4068,11 +4406,13 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4088,12 +4428,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4165,6 +4513,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4185,6 +4535,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4199,6 +4551,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4219,16 +4573,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -4277,16 +4641,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4362,6 +4738,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4382,6 +4760,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4455,11 +4835,13 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4475,12 +4857,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4552,6 +4942,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4572,6 +4964,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4586,6 +4980,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4612,6 +5008,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -4626,6 +5024,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -4678,16 +5078,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4736,6 +5144,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -4756,6 +5166,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4776,6 +5188,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4848,11 +5262,13 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4868,12 +5284,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4945,6 +5369,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4965,6 +5391,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4979,6 +5407,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4999,16 +5429,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5057,16 +5497,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5142,6 +5594,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5162,6 +5616,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5234,11 +5690,13 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5254,12 +5712,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5331,6 +5797,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5351,6 +5819,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5365,6 +5835,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5385,16 +5857,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5443,6 +5925,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -5451,6 +5935,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -5461,6 +5947,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5535,6 +6023,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5555,6 +6045,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5628,11 +6120,13 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5648,12 +6142,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5725,6 +6227,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5745,6 +6249,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5759,6 +6265,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5785,6 +6293,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -5799,6 +6309,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -5851,16 +6363,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5909,6 +6429,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -5929,6 +6451,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5949,6 +6473,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6021,11 +6547,13 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6041,12 +6569,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6118,6 +6654,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6138,6 +6676,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6152,6 +6692,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6178,6 +6720,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -6192,6 +6736,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -6244,16 +6790,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -6302,6 +6858,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6322,6 +6880,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6342,6 +6902,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6414,11 +6976,13 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6434,12 +6998,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6511,6 +7083,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6531,6 +7105,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6545,6 +7121,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6565,16 +7143,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -6623,6 +7213,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -6637,6 +7229,8 @@ SELECT * FROM "Unicode data" WHERE i = 'srp'; SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; i | t -----+------------------------------------------- @@ -6695,6 +7289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6715,6 +7311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6735,6 +7333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6807,11 +7407,13 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6827,12 +7429,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6904,6 +7514,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6924,6 +7536,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6938,6 +7552,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6958,16 +7574,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7095,6 +7721,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7115,6 +7743,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7135,6 +7765,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7207,11 +7839,13 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7332,6 +7966,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7352,6 +7988,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7366,6 +8004,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7386,16 +8026,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7444,16 +8094,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7502,6 +8160,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7522,6 +8182,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7542,6 +8204,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7615,11 +8279,13 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7635,12 +8301,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -7712,6 +8386,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7732,6 +8408,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7746,6 +8424,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7845,16 +8525,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7903,6 +8593,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7923,6 +8615,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7943,6 +8637,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8015,11 +8711,13 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8035,12 +8733,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8112,6 +8818,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8153,6 +8861,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8173,16 +8883,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -8231,16 +8951,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8289,6 +9017,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8309,6 +9039,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8329,6 +9061,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8402,11 +9136,13 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8422,12 +9158,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8499,6 +9243,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8519,6 +9265,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8533,6 +9281,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8632,16 +9382,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8690,6 +9450,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8710,6 +9472,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8730,6 +9494,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8802,11 +9568,13 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8822,12 +9590,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8899,6 +9675,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8919,6 +9697,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8960,16 +9740,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9018,16 +9808,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9076,6 +9874,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9096,6 +9896,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9116,6 +9918,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9189,11 +9993,13 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9215,12 +10021,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9319,6 +10133,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9333,6 +10149,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9353,16 +10171,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9411,16 +10241,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9469,6 +10307,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9489,6 +10329,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9509,6 +10351,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9582,11 +10426,13 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9602,12 +10448,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9679,6 +10533,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -9699,6 +10555,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9713,6 +10571,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9733,16 +10593,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9791,6 +10661,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -9799,6 +10671,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -9809,6 +10683,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9883,6 +10759,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9903,6 +10781,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9976,7 +10856,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/expected/15.4/extra/float4.out b/expected/15.4/extra/float4.out index 54eded03..6d9242f0 100644 --- a/expected/15.4/extra/float4.out +++ b/expected/15.4/extra/float4.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/expected/15.4/extra/float8.out b/expected/15.4/extra/float8.out index 7b747c2f..44ccb074 100644 --- a/expected/15.4/extra/float8.out +++ b/expected/15.4/extra/float8.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/expected/15.4/extra/insert.out b/expected/15.4/extra/insert.out index 090e257f..2d579fbe 100644 --- a/expected/15.4/extra/insert.out +++ b/expected/15.4/extra/insert.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/expected/15.4/extra/int4.out b/expected/15.4/extra/int4.out index 26da5735..d5d7231f 100644 --- a/expected/15.4/extra/int4.out +++ b/expected/15.4/extra/int4.out @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/expected/15.4/extra/int8.out b/expected/15.4/extra/int8.out index 7b036da6..d40b12c9 100644 --- a/expected/15.4/extra/int8.out +++ b/expected/15.4/extra/int8.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/expected/15.4/extra/join.out b/expected/15.4/extra/join.out index 45b21267..4c5a6dde 100644 --- a/expected/15.4/extra/join.out +++ b/expected/15.4/extra/join.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( i integer, diff --git a/expected/15.4/extra/limit.out b/expected/15.4/extra/limit.out index e3d82c38..8998e395 100644 --- a/expected/15.4/extra/limit.out +++ b/expected/15.4/extra/limit.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/15.4/extra/numeric.out b/expected/15.4/extra/numeric.out index da44652b..7148ff51 100644 --- a/expected/15.4/extra/numeric.out +++ b/expected/15.4/extra/numeric.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; --Testcase 570: diff --git a/expected/15.4/extra/out_of_range.out b/expected/15.4/extra/out_of_range.out new file mode 100644 index 00000000..8de68b14 --- /dev/null +++ b/expected/15.4/extra/out_of_range.out @@ -0,0 +1,172 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow + q1 | q2 +----------------------+------------------- + 123 | 456 + 123 | 4567890123456789 + 4567890123456789 | 123 + 4567890123456789 | 4567890123456789 + 4567890123456789 | -4567890123456789 + -9223372036854775808 | 0 +(6 rows) + +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow + q1 +---------------------- + 123 + 123 + 4567890123456789 + 4567890123456789 + 4567890123456789 + -9223372036854775808 +(6 rows) + +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +NOTICE: drop cascades to 5 other objects +DETAIL: drop cascades to foreign table int4_tbl +drop cascades to foreign table int4_tmp +drop cascades to foreign table int2_tbl +drop cascades to foreign table int2_tmp +drop cascades to foreign table int8_tbl +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/15.4/extra/prepare.out b/expected/15.4/extra/prepare.out index cbdeaa4c..ca4e4913 100644 --- a/expected/15.4/extra/prepare.out +++ b/expected/15.4/extra/prepare.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( unique1 int4, diff --git a/expected/15.4/extra/select.out b/expected/15.4/extra/select.out index 49394537..2f7f5359 100644 --- a/expected/15.4/extra/select.out +++ b/expected/15.4/extra/select.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( unique1 int4, diff --git a/expected/15.4/extra/select_having.out b/expected/15.4/extra/select_having.out index 9bc2ef0c..1a159651 100644 --- a/expected/15.4/extra/select_having.out +++ b/expected/15.4/extra/select_having.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; -- load test data diff --git a/expected/15.4/extra/sqlite_fdw_post.out b/expected/15.4/extra/sqlite_fdw_post.out index 421bccef..545aa866 100644 --- a/expected/15.4/extra/sqlite_fdw_post.out +++ b/expected/15.4/extra/sqlite_fdw_post.out @@ -6,11 +6,11 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr3 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 484: @@ -155,7 +155,7 @@ ERROR: SQL error during prepare: no such table: main.T 1 SELECT `C 1`, `c3`, `c DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -4954,20 +4954,24 @@ DROP TABLE reind_fdw_parent; ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8) WHERE x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 274: SELECT ftx.x1, ft2.c2, ftx.x8 FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 275: SELECT ftx.x1, ft2.c2, ftx FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column -- ANALYZE ft1; -- ERROR -- =================================================================== -- local type can be different from remote type in some cases, @@ -10562,7 +10566,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/expected/15.4/extra/timestamp.out b/expected/15.4/extra/timestamp.out index 3b2931f6..802a83f5 100644 --- a/expected/15.4/extra/timestamp.out +++ b/expected/15.4/extra/timestamp.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/expected/15.4/extra/update.out b/expected/15.4/extra/update.out index 69411f9e..825667fa 100644 --- a/expected/15.4/extra/update.out +++ b/expected/15.4/extra/update.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( i INT OPTIONS (key 'true'), diff --git a/expected/15.4/extra/uuid.out b/expected/15.4/extra/uuid.out index b3fc91a8..91d00ccc 100644 --- a/expected/15.4/extra/uuid.out +++ b/expected/15.4/extra/uuid.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 109: @@ -442,11 +442,13 @@ ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; --Testcase 189: SELECT * FROM "type_UUID+" WHERE "i" = 42; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length +HINT: SQLite value with "blob" affinity (17 bytes) in hex : a0eebc999c0b4ef8bb6d6bb9bd380a11f1 +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 190: SELECT * FROM "type_UUID+" WHERE "i" = 43; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length +HINT: SQLite value with "blob" affinity (15 bytes) in hex : b0eebc999c0b4ef8bb6d6bb9bd380a +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 191: EXPLAIN VERBOSE DELETE FROM "type_UUID" WHERE "i" IN (42, 43); diff --git a/expected/15.4/selectfunc.out b/expected/15.4/selectfunc.out index 0ff93436..14dcd259 100644 --- a/expected/15.4/selectfunc.out +++ b/expected/15.4/selectfunc.out @@ -4,7 +4,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); --Testcase 3: diff --git a/expected/15.4/sqlite_fdw.out b/expected/15.4/sqlite_fdw.out index 51690c38..05fee260 100644 --- a/expected/15.4/sqlite_fdw.out +++ b/expected/15.4/sqlite_fdw.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: @@ -1483,8 +1483,9 @@ SELECT * FROM fts_table; -- should work ALTER TABLE fts_table ALTER COLUMN name TYPE int; --Testcase 160: SELECT * FROM fts_table; -- should fail -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (12 bytes) : 'this is name' +CONTEXT: foreign table "fts_table" foreign column "name" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table -- issue #62 github --Testcase 236: INSERT INTO noprimary VALUES (4, 'Test''s'); diff --git a/expected/15.4/type.out b/expected/15.4/type.out index bac27fce..9106169a 100644 --- a/expected/15.4/type.out +++ b/expected/15.4/type.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; @@ -510,1318 +510,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE IF EXISTS "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 28, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); - QUERY PLAN ------------------------------------------------------------------- - Insert on public."type_UUID" (cost=0.00..0.01 rows=0 width=0) - Batch Size: 1 - -> Result (cost=0.00..0.01 rows=1 width=20) - Output: 39, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'::uuid -(4 rows) - ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(42 rows) - ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - i | u | t | l -----+--------------------------------------+------+---- - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(20 rows) - ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'a0eebc999c0b4ef8bb6d6bb9bd380a11')) -(3 rows) - ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; - i | u | t | l -----+--------------------------------------+------+---- - 7 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 8 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 9 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 38 - 10 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 37 - 11 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 32 - 12 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 39 - 14 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 16 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 23 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 24 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 26 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 27 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 28 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | text | 36 - 35 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 36 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 37 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 38 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 39 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 - 40 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 | blob | 16 -(20 rows) - ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------- - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((`i` = 25)) -(3 rows) - ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a12')) -(3 rows) - ---Testcase 174: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 1 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 2 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 3 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 38 - 4 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 32 - 5 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 39 - 6 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 37 - 13 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 15 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 17 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 18 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 19 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 20 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 21 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 22 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | text | 36 - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 - 29 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 30 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 31 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 32 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 33 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 - 34 | a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 | blob | 16 -(23 rows) - ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 25 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | blob | 16 -(3 rows) - ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..15.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..15.00 rows=15 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 177: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(2 rows) - ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 | text | 36 -(2 rows) - ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb900000a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb9bd380a15')) -(3 rows) - ---Testcase 182: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(3 rows) - ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ - Update on public."type_UUID" (cost=10.00..6.00 rows=0 width=0) - -> Foreign Update on public."type_UUID" (cost=10.00..6.00 rows=6 width=64) - SQLite query: UPDATE main."type_UUID" SET `u` = X'b0eebc999c0b4ef8bb6d6bb9bd380a15' WHERE ((sqlite_fdw_uuid_blob(`u`) = X'b0eebc999c0b4ef8bb6d6bb900000a15')) -(3 rows) - ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; -ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); - QUERY PLAN ---------------------------------------------------------------------------------- - Delete on public."type_UUID" (cost=10.00..29.00 rows=0 width=0) - -> Foreign Delete on public."type_UUID" (cost=10.00..29.00 rows=29 width=4) - SQLite query: DELETE FROM main."type_UUID" WHERE (`i` IN (42, 43)) -(3 rows) - ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 44 | | null | -(4 rows) - ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - i | u | t | l -----+---+------+--- - 44 | | null | - 44 | | null | -(2 rows) - ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - i | u | t | l -----+--------------------------------------+------+---- - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 - 41 | b0eebc99-9c0b-4ef8-bb6d-6bb900000a15 | blob | 16 -(2 rows) - ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; - QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..5.00 rows=5 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NULL)) -(3 rows) - ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------- - Foreign Scan on public."type_UUID+" (cost=10.00..1045.00 rows=1045 width=54) - Output: i, u, t, l - SQLite query: SELECT `i`, sqlite_fdw_uuid_blob(`u`), `t`, `l` FROM main."type_UUID+" WHERE ((sqlite_fdw_uuid_blob(`u`) IS NOT NULL)) -(3 rows) - ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; -NOTICE: foreign table "type_BIT+" does not exist, skipping ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); -ERROR: bit string length 1 does not match type bit(6) ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); -ERROR: bit string length 2 does not match type bit(6) ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); -ERROR: bit string length 3 does not match type bit(6) ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 213: -SELECT * FROM "type_BIT+"; - i | b | t | l | bi ----+--------+---------+---+---- - 6 | 110110 | integer | 2 | 54 - 7 | 111001 | integer | 2 | 57 - 8 | 110000 | integer | 2 | 48 - 9 | 100001 | integer | 2 | 33 -(4 rows) - ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; - i | b ----+-------- - 8 | 110000 - 9 | 100001 -(2 rows) - ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; - i | b ----+-------- - 7 | 111001 -(1 row) - ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - i | b ----+-------- - 6 | 110110 -(1 row) - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; -NOTICE: foreign table "type_VARBIT+" does not exist, skipping ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); ---Testcase 232 -SELECT * FROM "type_VARBIT+"; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 6 | 110110 | integer | 2 - 7 | 111001 | integer | 2 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(11 rows) - ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; - i | b | t | l ----+--------+---------+--- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 -(7 rows) - ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 7 | 111001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(3 rows) - ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - i | b | t | l ----+--------+---------+--- - 6 | 110110 | integer | 2 -(1 row) - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); -ERROR: SQLite FDW dosens't support very long bit/varbit data -HINT: bit length 65, maximum 64 ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - i | b | t | l -----+-----------------------------------------------------------------+---------+---- - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 -(3 rows) - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 111111 - 6 | 110110 | 8 | 110000 | 110110 - 6 | 110110 | 9 | 100001 | 110111 - 7 | 111001 | 6 | 110110 | 111111 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 111001 - 7 | 111001 | 9 | 100001 | 111001 - 8 | 110000 | 6 | 110110 | 110110 - 8 | 110000 | 7 | 111001 | 111001 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 110001 - 9 | 100001 | 6 | 110110 | 110111 - 9 | 100001 | 7 | 111001 | 111001 - 9 | 100001 | 8 | 110000 | 110001 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 110000 - 6 | 110110 | 8 | 110000 | 110000 - 6 | 110110 | 9 | 100001 | 100000 - 7 | 111001 | 6 | 110110 | 110000 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 110000 - 7 | 111001 | 9 | 100001 | 100001 - 8 | 110000 | 6 | 110110 | 110000 - 8 | 110000 | 7 | 111001 | 110000 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 100000 - 9 | 100001 | 6 | 110110 | 100000 - 9 | 100001 | 7 | 111001 | 100001 - 9 | 100001 | 8 | 110000 | 100000 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 000000 - 6 | 110110 | 7 | 111001 | 001111 - 6 | 110110 | 8 | 110000 | 000110 - 6 | 110110 | 9 | 100001 | 010111 - 7 | 111001 | 6 | 110110 | 001111 - 7 | 111001 | 7 | 111001 | 000000 - 7 | 111001 | 8 | 110000 | 001001 - 7 | 111001 | 9 | 100001 | 011000 - 8 | 110000 | 6 | 110110 | 000110 - 8 | 110000 | 7 | 111001 | 001001 - 8 | 110000 | 8 | 110000 | 000000 - 8 | 110000 | 9 | 100001 | 010001 - 9 | 100001 | 6 | 110110 | 010111 - 9 | 100001 | 7 | 111001 | 011000 - 9 | 100001 | 8 | 110000 | 010001 - 9 | 100001 | 9 | 100001 | 000000 -(16 rows) - ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 -(4 rows) - ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b << 3) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (~ b) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot OR bit strings of different sizes ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot AND bit strings of different sizes ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot XOR bit strings of different sizes ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 001 - 5 | 101 | 001 - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 -(13 rows) - ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 000 - 5 | 101 | 000 - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 -(13 rows) - ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 01 - 3 | 11 | 00 - 4 | 100 | 011 - 5 | 101 | 010 - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 -(13 rows) - ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" << 3) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, (~ (b)::"bit") - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 51 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1847,7 +538,10 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_VARBIT" drop cascades to foreign table "type_UUIDpk" +drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" drop cascades to foreign table notype drop cascades to foreign table typetest @@ -1866,10 +560,4 @@ drop cascades to foreign table "Unicode data" drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_UUID" -drop cascades to foreign table "type_UUID+" -drop cascades to foreign table "type_BIT" -drop cascades to foreign table "type_BIT+" -drop cascades to foreign table "type_VARBIT" -drop cascades to foreign table "type_VARBIT+" drop cascades to server sqlite2 diff --git a/expected/16.0/aggregate.out b/expected/16.0/aggregate.out index d3f193e0..584a2c11 100644 --- a/expected/16.0/aggregate.out +++ b/expected/16.0/aggregate.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; --Testcase 1: diff --git a/expected/16.0/extra/aggregates.out b/expected/16.0/extra/aggregates.out index ee557d14..3c50d008 100644 --- a/expected/16.0/extra/aggregates.out +++ b/expected/16.0/extra/aggregates.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/16.0/extra/bitstring.out b/expected/16.0/extra/bitstring.out new file mode 100644 index 00000000..d5105515 --- /dev/null +++ b/expected/16.0/extra/bitstring.out @@ -0,0 +1,810 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +NOTICE: foreign table "type_BIT+" does not exist, skipping +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +ERROR: bit string length 1 does not match type bit(6) +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +ERROR: bit string length 2 does not match type bit(6) +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +ERROR: bit string length 3 does not match type bit(6) +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +ERROR: column "b" is of type bit but expression is of type integer +LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); + ^ +HINT: You will need to rewrite or cast the expression. +--Testcase 15: +SELECT * FROM "type_BIT+"; + i | b | t | l | bi +---+--------+---------+---+---- + 6 | 110110 | integer | 2 | 54 + 7 | 111001 | integer | 2 | 57 + 8 | 110000 | integer | 2 | 48 + 9 | 100001 | integer | 2 | 33 +(4 rows) + +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; + i | b +---+-------- + 8 | 110000 + 9 | 100001 +(2 rows) + +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; + i | b +---+-------- + 7 | 111001 +(1 row) + +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + i | b +---+-------- + 6 | 110110 +(1 row) + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +NOTICE: foreign table "type_VARBIT+" does not exist, skipping +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); +--Testcase 34: +SELECT * FROM "type_VARBIT+"; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 6 | 110110 | integer | 2 + 7 | 111001 | integer | 2 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(11 rows) + +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; + i | b | t | l +---+--------+---------+--- + 1 | 1 | integer | 1 + 2 | 10 | integer | 1 + 3 | 11 | integer | 1 + 4 | 100 | integer | 1 + 5 | 101 | integer | 1 + 8 | 110000 | integer | 2 + 9 | 100001 | integer | 2 +(7 rows) + +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; + i | b | t | l +----+---------------------------------------------------------------+---------+---- + 7 | 111001 | integer | 2 + 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 +(3 rows) + +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + i | b | t | l +---+--------+---------+--- + 6 | 110110 | integer | 2 +(1 row) + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +ERROR: SQLite FDW dosens't support very long bit/varbit data +HINT: bit length 65, maximum 64 +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + i | b | t | l +----+-----------------------------------------------------------------+---------+---- + 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 +(3 rows) + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 111111 + 6 | 110110 | 8 | 110000 | 110110 + 6 | 110110 | 9 | 100001 | 110111 + 7 | 111001 | 6 | 110110 | 111111 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 111001 + 7 | 111001 | 9 | 100001 | 111001 + 8 | 110000 | 6 | 110110 | 110110 + 8 | 110000 | 7 | 111001 | 111001 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 110001 + 9 | 100001 | 6 | 110110 | 110111 + 9 | 100001 | 7 | 111001 | 111001 + 9 | 100001 | 8 | 110000 | 110001 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 110110 + 6 | 110110 | 7 | 111001 | 110000 + 6 | 110110 | 8 | 110000 | 110000 + 6 | 110110 | 9 | 100001 | 100000 + 7 | 111001 | 6 | 110110 | 110000 + 7 | 111001 | 7 | 111001 | 111001 + 7 | 111001 | 8 | 110000 | 110000 + 7 | 111001 | 9 | 100001 | 100001 + 8 | 110000 | 6 | 110110 | 110000 + 8 | 110000 | 7 | 111001 | 110000 + 8 | 110000 | 8 | 110000 | 110000 + 8 | 110000 | 9 | 100001 | 100000 + 9 | 100001 | 6 | 110110 | 100000 + 9 | 100001 | 7 | 111001 | 100001 + 9 | 100001 | 8 | 110000 | 100000 + 9 | 100001 | 9 | 100001 | 100001 +(16 rows) + +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + i₁ | b₁ | i₂ | b₂ | res +----+--------+----+--------+-------- + 6 | 110110 | 6 | 110110 | 000000 + 6 | 110110 | 7 | 111001 | 001111 + 6 | 110110 | 8 | 110000 | 000110 + 6 | 110110 | 9 | 100001 | 010111 + 7 | 111001 | 6 | 110110 | 001111 + 7 | 111001 | 7 | 111001 | 000000 + 7 | 111001 | 8 | 110000 | 001001 + 7 | 111001 | 9 | 100001 | 011000 + 8 | 110000 | 6 | 110110 | 000110 + 8 | 110000 | 7 | 111001 | 001001 + 8 | 110000 | 8 | 110000 | 000000 + 8 | 110000 | 9 | 100001 | 010001 + 9 | 100001 | 6 | 110110 | 010111 + 9 | 100001 | 7 | 111001 | 011000 + 9 | 100001 | 8 | 110000 | 010001 + 9 | 100001 | 9 | 100001 | 000000 +(16 rows) + +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 +(4 rows) + +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 +(4 rows) + +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; + QUERY PLAN +-------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) + Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) + -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" + -> Materialize (cost=10.00..2225.07 rows=2214 width=13) + Output: b2.i, b2.b + -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(10 rows) + +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (b << 3) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) + Output: i, b, (~ b) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(3 rows) + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot OR bit strings of different sizes +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot AND bit strings of different sizes +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +ERROR: cannot XOR bit strings of different sizes +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 001 + 5 | 101 | 001 + 6 | 110110 | 001101 + 7 | 111001 | 001110 + 8 | 110000 | 001100 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 +(13 rows) + +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 00 + 3 | 11 | 00 + 4 | 100 | 000 + 5 | 101 | 000 + 6 | 110110 | 110000 + 7 | 111001 | 001000 + 8 | 110000 | 000000 + 9 | 100001 | 001000 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 +(13 rows) + +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + i | b | res +----+-----------------------------------------------------------------+----------------------------------------------------------------- + 1 | 1 | 0 + 2 | 10 | 01 + 3 | 11 | 00 + 4 | 100 | 011 + 5 | 101 | 010 + 6 | 110110 | 001001 + 7 | 111001 | 000110 + 8 | 110000 | 001111 + 9 | 100001 | 011110 + 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 + 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 + 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 + 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 +(13 rows) + +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; + QUERY PLAN +----------------------------------------------------------------------------------------------- + Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) + Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") + -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) + Output: b1.i, b1.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" + -> Materialize (cost=10.00..1829.10 rows=1820 width=21) + Output: b2.i, b2.b + -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) + Output: b2.i, b2.b + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(10 rows) + +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" >> 2) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, ((b)::"bit" << 3) + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + QUERY PLAN +-------------------------------------------------------------------------------- + Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) + Output: i, b, (~ (b)::"bit") + SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" +(3 rows) + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 100010 + 7 | 111001 | 101001 + 8 | 110000 | 100000 + 9 | 100001 | 100001 +(4 rows) + +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 111111 + 7 | 111001 | 111011 + 8 | 110000 | 111011 + 9 | 100001 | 101011 +(4 rows) + +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; + i | b | res +---+--------+-------- + 6 | 110110 | 011101 + 7 | 111001 | 010010 + 8 | 110000 | 011011 + 9 | 100001 | 001010 +(4 rows) + +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + i | b +---+-------- + 6 | 110110 + 7 | 111001 + 8 | 110000 + 9 | 100001 +(4 rows) + +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) +(3 rows) + +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) +(3 rows) + +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; + QUERY PLAN +----------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) + SQLite query: SELECT `i`, `b` FROM main."type_BIT" +(4 rows) + +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) +(3 rows) + +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; + QUERY PLAN +--------------------------------------------------------------------------------------- + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) +(3 rows) + +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + QUERY PLAN +------------------------------------------------------------------------------------ + Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) + Output: i, b + SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) +(3 rows) + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; +NOTICE: drop cascades to 6 other objects +DETAIL: drop cascades to server sqlite_svr +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_BIT+" +drop cascades to foreign table "type_VARBIT" +drop cascades to foreign table "type_VARBIT+" +drop cascades to server sqlite2 diff --git a/expected/16.0/extra/bool.out b/expected/16.0/extra/bool.out index 4083dbca..45750a6a 100644 --- a/expected/16.0/extra/bool.out +++ b/expected/16.0/extra/bool.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 01: @@ -121,8 +121,9 @@ SELECT * FROM "type_BOOLEAN+"; --Testcase 34: ERR - invalid text affinity because not ISO:SQL text input SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = 'x' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (1 bytes) : 'x' +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 35 DELETE FROM "type_BOOLEAN" WHERE i = 23; --Testcase 36: @@ -249,8 +250,9 @@ INSERT INTO "type_BOOLEAN"(i, b) VALUES (27, 3.14159265358979); ALTER FOREIGN TABLE "type_BOOLEAN" ALTER COLUMN "b" TYPE bool; --Testcase 49: ERR - invalid float for bool column SELECT * FROM "type_BOOLEAN+"; -ERROR: SQLite data affinity "real" disallowed for PostgreSQL data type "boolean" -HINT: In column "b" expected SQLite affinity "integer", incorrect value = '3.14159265358979' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "real" affinity : 3.14159265358979 +CONTEXT: foreign table "type_BOOLEAN+" foreign column "b" have data type "boolean" (usual affinity "integer"), in query there is reference to foreign column --Testcase 50 DELETE FROM "type_BOOLEAN" WHERE i = 27; --Testcase 51: diff --git a/expected/16.0/extra/encodings.out b/expected/16.0/extra/encodings.out index 1e041e7d..9c4ccec7 100644 --- a/expected/16.0/extra/encodings.out +++ b/expected/16.0/extra/encodings.out @@ -39,7 +39,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; i | t @@ -74,7 +74,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -118,6 +118,8 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; i | t -----+--------------------------------------------------------------------- @@ -138,6 +140,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); SELECT * FROM "Unicode data" WHERE i = 'bel+'; i | t @@ -198,6 +202,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -239,6 +245,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -417,6 +425,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -437,6 +447,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -457,6 +469,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_JP" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -528,7 +542,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -554,6 +568,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -568,8 +584,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -584,6 +604,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xd1 0x96 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xd1 0x9e in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -645,6 +667,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -665,6 +689,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -679,6 +705,8 @@ ERROR: character with byte sequence 0xce 0xac in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -699,16 +727,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -757,16 +795,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc5 0xbe in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "EUC_KR" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -815,6 +861,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -862,6 +910,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "EUC_KR" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -935,11 +985,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -955,6 +1007,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; i | t -----+--------------------------------------------------- @@ -969,8 +1023,12 @@ SELECT * FROM "Unicode data" WHERE i = 'rus'; SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; i | t -----+--------------------------------------------------- @@ -985,6 +1043,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Широк%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Гей, %'; ERROR: character with byte sequence 0xe2 0x80 0x94 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('bel+', 'У рудога вераб’я ў сховішчы пад фатэлем ляжаць нейкія гаючыя зёлкі._'); ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'bel+'; @@ -1046,6 +1106,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1066,6 +1128,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1080,6 +1144,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1100,16 +1166,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1158,16 +1234,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1216,6 +1300,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1236,6 +1322,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1256,6 +1344,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1329,11 +1419,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1349,12 +1441,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1453,6 +1553,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -1467,6 +1569,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1487,16 +1591,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1545,16 +1659,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1603,6 +1725,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -1623,6 +1747,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -1643,6 +1769,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -1716,11 +1844,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -1736,12 +1866,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -1813,6 +1951,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -1854,6 +1994,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -1874,16 +2016,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -1932,16 +2084,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -1990,6 +2150,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2010,6 +2172,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2030,6 +2194,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2103,11 +2269,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2123,12 +2291,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2200,6 +2376,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2220,6 +2398,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2261,16 +2441,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -2319,16 +2509,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2377,6 +2575,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2397,6 +2597,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2417,6 +2619,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "ISO_8859_8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2490,11 +2694,13 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2510,12 +2716,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2587,6 +2801,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -2607,6 +2823,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -2621,6 +2839,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -2647,6 +2867,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -2661,6 +2883,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -2713,16 +2937,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -2771,6 +3003,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -2791,6 +3025,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -2811,6 +3047,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -2883,11 +3121,13 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -2903,12 +3143,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -2980,6 +3228,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3000,6 +3250,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3014,6 +3266,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3040,6 +3294,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3054,6 +3310,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3106,16 +3364,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN1" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3164,6 +3430,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3184,6 +3452,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3204,6 +3474,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN1" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3276,11 +3548,13 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3296,12 +3570,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3373,6 +3655,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3393,6 +3677,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3407,6 +3693,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3427,16 +3715,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN2" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -3564,6 +3862,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3584,6 +3884,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3604,6 +3906,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN2" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -3676,11 +3980,13 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -3696,12 +4002,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -3773,6 +4087,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -3793,6 +4109,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -3807,6 +4125,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -3833,6 +4153,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -3847,6 +4169,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -3899,16 +4223,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN3" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -3957,6 +4289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -3977,6 +4311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -3997,6 +4333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN3" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4068,11 +4406,13 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4088,12 +4428,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4165,6 +4513,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4185,6 +4535,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4199,6 +4551,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4219,16 +4573,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -4277,16 +4641,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN4" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4362,6 +4738,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4382,6 +4760,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN4" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4455,11 +4835,13 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4475,12 +4857,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4552,6 +4942,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4572,6 +4964,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4586,6 +4980,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4612,6 +5008,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -4626,6 +5024,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -4678,16 +5078,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN5" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -4736,6 +5144,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -4756,6 +5166,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -4776,6 +5188,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN5" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -4848,11 +5262,13 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -4868,12 +5284,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -4945,6 +5369,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -4965,6 +5391,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -4979,6 +5407,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -4999,16 +5429,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5057,16 +5497,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x87 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN6" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5142,6 +5594,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5162,6 +5616,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN6" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5234,11 +5690,13 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5254,12 +5712,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5331,6 +5797,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5351,6 +5819,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5365,6 +5835,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5385,16 +5857,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -5443,6 +5925,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -5451,6 +5935,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -5461,6 +5947,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN7" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5535,6 +6023,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5555,6 +6045,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN7" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -5628,11 +6120,13 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -5648,12 +6142,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -5725,6 +6227,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -5745,6 +6249,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -5759,6 +6265,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -5785,6 +6293,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -5799,6 +6309,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -5851,16 +6363,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa1 in encoding "UTF8" has no equivalent in encoding "LATIN8" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -5909,6 +6429,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -5929,6 +6451,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -5949,6 +6473,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN8" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6021,11 +6547,13 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6041,12 +6569,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6118,6 +6654,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6138,6 +6676,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6152,6 +6692,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6178,6 +6720,8 @@ SELECT * FROM "Unicode data" WHERE i = 'eus'; SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; i | t -----+-------------------------------------------------------- @@ -6192,6 +6736,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; i | t -----+-------------------------------------------------------- @@ -6244,16 +6790,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN9" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -6302,6 +6858,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6322,6 +6880,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6342,6 +6902,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN9" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6414,11 +6976,13 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6434,12 +6998,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6511,6 +7083,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6531,6 +7105,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6545,6 +7121,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6565,16 +7143,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xe2 0x80 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "LATIN10" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -6623,6 +7213,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -6637,6 +7229,8 @@ SELECT * FROM "Unicode data" WHERE i = 'srp'; SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; i | t -----+------------------------------------------- @@ -6695,6 +7289,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -6715,6 +7311,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -6735,6 +7333,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "LATIN10" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -6807,11 +7407,13 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -6827,12 +7429,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -6904,6 +7514,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -6924,6 +7536,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -6938,6 +7552,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -6958,16 +7574,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1250" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7095,6 +7721,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7115,6 +7743,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7135,6 +7765,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1250" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7207,11 +7839,13 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7332,6 +7966,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7352,6 +7988,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7366,6 +8004,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7386,16 +8026,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -7444,16 +8094,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1251" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7502,6 +8160,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7522,6 +8182,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7542,6 +8204,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1251" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -7615,11 +8279,13 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -7635,12 +8301,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -7712,6 +8386,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -7732,6 +8408,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -7746,6 +8424,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -7845,16 +8525,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -7903,6 +8593,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -7923,6 +8615,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -7943,6 +8637,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1252" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8015,11 +8711,13 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8035,12 +8733,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8112,6 +8818,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8153,6 +8861,8 @@ DELETE FROM "Unicode data" WHERE t = 'Τάχιστη αλώπηξ βαφής ψ -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8173,16 +8883,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -8231,16 +8951,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1253" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8289,6 +9017,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8309,6 +9039,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8329,6 +9061,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1253" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8402,11 +9136,13 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8422,12 +9158,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8499,6 +9243,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8519,6 +9265,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8533,6 +9281,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -8632,16 +9382,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc5 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1254" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -8690,6 +9450,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -8710,6 +9472,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -8730,6 +9494,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1254" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -8802,11 +9568,13 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -8822,12 +9590,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -8899,6 +9675,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -8919,6 +9697,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -8960,16 +9740,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9018,16 +9808,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1255" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9076,6 +9874,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9096,6 +9896,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9116,6 +9918,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1255" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9189,11 +9993,13 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9215,12 +10021,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9319,6 +10133,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9333,6 +10149,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9353,16 +10171,28 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xbf in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9411,16 +10241,24 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (50 bytes) in hex : 5063686ec485c48720772074c49920c582c3b364c5ba206a65c5bc61206c7562206fc59b6d20736b727a79c584206669672e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; ERROR: character with byte sequence 0xc4 0x85 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1256" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9469,6 +10307,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'srp+'; -- 1257, LATIN7 SELECT * FROM "Unicode data" WHERE i = 'lav'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : c4b66965c4a365c4bc7520636570c4936a73204564676172732042756c73206672616b7520756e2068c5ab746920c5bec48176c49320757a20c48dc4ab6b73746fc5a1c4816d2065c586c4a3c4936d2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Ķieģeļu%'; ERROR: character with byte sequence 0xc4 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('lav+', 'Ķieģeļu cepējs Edgars Buls fraku un hūti žāvē uz čīkstošām eņģēm._'); @@ -9489,6 +10329,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9509,6 +10351,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1256" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9582,11 +10426,13 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (149 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'いろはにほ%'; ERROR: character with byte sequence 0xe3 0x81 0x84 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('jap+', 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす._'); @@ -9602,12 +10448,20 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'jap+'; -- 1251, ISO_8859_5 SELECT * FROM "Unicode data" WHERE i = 'bel'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (124 bytes) in hex : d0a320d180d183d0b4d0bed0b3d0b020d0b2d0b5d180d0b0d0b1e28099d18f20d19e20d181d185d0bed0b2d196d188d187d18b20d0bfd0b0d0b420d184d0b0d182d18dd0bbd0b5d0bc20d0bbd18fd0b6d0b0d186d18c20d0bdd0b5d0b9d0bad196d18f20d0b3d0b0d18ed187d18bd18f20d0b7d191d0bbd0bad1962e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'bul'; ERROR: character with byte sequence 0xd0 0x90 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (89 bytes) in hex : d090d1852c20d187d183d0b4d0bdd0b020d0b1d18ad0bbd0b3d0b0d180d181d0bad0b020d0b7d0b5d0bcd18cd0be2c20d0bfd0bed0bbd18ed188d0b2d0b0d0b920d186d18ad184d182d18fd189d0b820d0b6d0b8d182d0b02e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'rus'; ERROR: character with byte sequence 0xd0 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (160 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'ukr'; ERROR: character with byte sequence 0xd0 0x93 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (129 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'У руд%'; ERROR: character with byte sequence 0xd0 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Ах, ч%'; @@ -9679,6 +10533,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ukr+'; -- 1256, ISO_8859_6 SELECT * FROM "Unicode data" WHERE i = 'ara'; ERROR: character with byte sequence 0xd8 0xa3 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (97 bytes) in hex : d8a3d8a8d8acd8af20d987d988d98ed991d8b220d8add98fd8b7d991d98a20d983d984d98ed985d98fd98620d8b3d98ed8b9d992d981d98ed8b520d982d98fd8b1d990d8b4d98ed8aa20d8abd98ed8aed98ed8afd98c20d8b6d98ed8b8d98ed8ba +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%ضَظَغ%'; ERROR: character with byte sequence 0xd8 0xb6 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('ara+', 'أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ_'); @@ -9699,6 +10555,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'ara+'; -- 1253, ISO_8859_7 SELECT * FROM "Unicode data" WHERE i = 'gre'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (113 bytes) in hex : cea4ceaccf87ceb9cf83cf84ceb720ceb1cebbcf8ecf80ceb7cebe20ceb2ceb1cf86ceaecf8220cf88ceb7cebcceadcebdceb720ceb3ceb72c20ceb4cf81ceb1cf83cebaceb5cebbceafceb6ceb5ceb920cf85cf80ceadcf8120cebdcf89ceb8cf81cebfcf8d20cebacf85cebdcf8ccf82 +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Τάχισ%'; ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('gre+', 'Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός_'); @@ -9713,6 +10571,8 @@ ERROR: character with byte sequence 0xce 0xa4 in encoding "UTF8" has no equival -- 1255, ISO_8859_8 SELECT * FROM "Unicode data" WHERE i = 'heb'; ERROR: character with byte sequence 0xd7 0xa2 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (61 bytes) in hex : d7a2d798d79cd7a320d790d791d7a720d7a0d7a120d793d7a8d79a20d79ed796d792d79f20d7a9d794d7aad7a4d795d7a6d7a520d79bd79920d797d79d +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '%כי ח%'; ERROR: character with byte sequence 0xd7 0x9b in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('heb+', 'עטלף אבק נס דרך מזגן שהתפוצץ כי חם_'); @@ -9733,16 +10593,26 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'heb+'; -- 1252, LATIN1 SELECT * FROM "Unicode data" WHERE i = 'eus'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'fra'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (140 bytes) +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'spa'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Permi%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (28 bytes) in hex : 5065726d696e20676f7820646162696c747a7520796f736b69c3b12e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Dès N%'; ERROR: character with byte sequence 0xc3 0xa8 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Quier%'; ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (56 bytes) in hex : 517569657265206c6120626f6361206578686175737461207669642c206b6977692c207069c3b161207920667567617a206a616dc3b36e2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('eus+', 'Permin gox dabiltzu yoskiñ._'); ERROR: character with byte sequence 0xc3 0xb1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'eus+'; @@ -9791,6 +10661,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'spa+'; -- 1250, LATIN2 SELECT * FROM "Unicode data" WHERE i = 'cze'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (68 bytes) in hex : 5a766cc3a1c5a1c5a5207ac3a16b65c5996ec3bd2075c48d65c588207320c48f6f6cc3adc48d6b792062c49bc5bec3ad20706f64c3a96c207ac3b36e7920c3ba6cc5af2e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE i = 'pol'; i | t -----+------------------------------------------- @@ -9799,6 +10671,8 @@ SELECT * FROM "Unicode data" WHERE i = 'pol'; SELECT * FROM "Unicode data" WHERE i = 'srp'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zvláš%'; ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; @@ -9809,6 +10683,8 @@ SELECT * FROM "Unicode data" WHERE t LIKE 'Pchną%'; SELECT * FROM "Unicode data" WHERE t LIKE 'Ljuba%'; ERROR: character with byte sequence 0xc4 0x91 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (69 bytes) in hex : 4c6a75626176692c204f6c67612c2068616a646520706fc49169207520467564c5be69206920c48d757420c48765c5a1206e6a65c5be6e75206d757a696b7520737263612e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column INSERT INTO "Unicode data" (i, t) VALUES ('cze+', 'Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů._'); ERROR: character with byte sequence 0xc3 0xa1 in encoding "UTF8" has no equivalent in encoding "WIN1257" SELECT * FROM "Unicode data" WHERE i = 'cze+'; @@ -9883,6 +10759,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'lav+'; -- EUC_KR SELECT * FROM "Unicode data" WHERE i = 'kor'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (93 bytes) in hex : ed82a4ec8aa4ec9d9820eab3a0ec9ca0eca1b0eab1b4ec9d8020ec9e85ec88a0eb81bceba6ac20eba78ceb8298ec95bc20ed9598eab3a020ed8ab9ebb384ed959c20eab8b0ec88a0ec9d8020ed9584ec9a94ecb99820ec958aeb8ba42e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE '키스의 고%'; ERROR: character with byte sequence 0xed 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('kor+', '키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다._'); @@ -9903,6 +10781,8 @@ SELECT count(*) n FROM "Unicode data" WHERE i = 'kor+'; -- 1254, LATIN5 SELECT * FROM "Unicode data" WHERE i = 'aze'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" +HINT: SQLite value with "text" affinity (80 bytes) in hex : 5ac99966c999722c206a616b6574696e692064c9992c2070617061c49fc4b16ec4b12064612067c3b674c3bc722c206275206178c59f616d206861766120c3a76f7820736f797571206f6c616361712e +CONTEXT: foreign table "Unicode data" foreign column "t" have data type "text" (usual affinity "text"), in query there is reference to foreign column SELECT * FROM "Unicode data" WHERE t LIKE 'Zəfər%'; ERROR: character with byte sequence 0xc9 0x99 in encoding "UTF8" has no equivalent in encoding "WIN1257" INSERT INTO "Unicode data" (i, t) VALUES ('aze+', 'Zəfər, jaketini də, papağını da götür, bu axşam hava çox soyuq olacaq._'); @@ -9976,7 +10856,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/expected/16.0/extra/float4.out b/expected/16.0/extra/float4.out index dddcdd19..a7836167 100644 --- a/expected/16.0/extra/float4.out +++ b/expected/16.0/extra/float4.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/expected/16.0/extra/float8.out b/expected/16.0/extra/float8.out index a4d94e68..90b787d7 100644 --- a/expected/16.0/extra/float8.out +++ b/expected/16.0/extra/float8.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/expected/16.0/extra/insert.out b/expected/16.0/extra/insert.out index 090e257f..2d579fbe 100644 --- a/expected/16.0/extra/insert.out +++ b/expected/16.0/extra/insert.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/expected/16.0/extra/int4.out b/expected/16.0/extra/int4.out index d4f543bb..448e7481 100644 --- a/expected/16.0/extra/int4.out +++ b/expected/16.0/extra/int4.out @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/expected/16.0/extra/int8.out b/expected/16.0/extra/int8.out index a8c6264e..5472a108 100644 --- a/expected/16.0/extra/int8.out +++ b/expected/16.0/extra/int8.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/expected/16.0/extra/join.out b/expected/16.0/extra/join.out index d9676b58..c683d1e4 100644 --- a/expected/16.0/extra/join.out +++ b/expected/16.0/extra/join.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( i integer, diff --git a/expected/16.0/extra/limit.out b/expected/16.0/extra/limit.out index 34306cb0..411a8fdb 100644 --- a/expected/16.0/extra/limit.out +++ b/expected/16.0/extra/limit.out @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/expected/16.0/extra/numeric.out b/expected/16.0/extra/numeric.out index 87f8966a..d99a9dde 100644 --- a/expected/16.0/extra/numeric.out +++ b/expected/16.0/extra/numeric.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; --Testcase 570: diff --git a/expected/16.0/extra/out_of_range.out b/expected/16.0/extra/out_of_range.out new file mode 100644 index 00000000..8de68b14 --- /dev/null +++ b/expected/16.0/extra/out_of_range.out @@ -0,0 +1,172 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : 2147483648 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow +ERROR: integer out of range +HINT: SQLite value with "integer" affinity : -2147483649 +CONTEXT: foreign table "int4_tmp" foreign column "f1" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : 32768 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow +ERROR: smallint out of range +HINT: SQLite value with "integer" affinity : -32769 +CONTEXT: foreign table "int2_tmp" foreign column "f1" have data type "smallint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow + q1 | q2 +----------------------+------------------- + 123 | 456 + 123 | 4567890123456789 + 4567890123456789 | 123 + 4567890123456789 | 4567890123456789 + 4567890123456789 | -4567890123456789 + -9223372036854775808 | 0 +(6 rows) + +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow + q1 +---------------------- + 123 + 123 + 4567890123456789 + 4567890123456789 + 4567890123456789 + -9223372036854775808 +(6 rows) + +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : 9.22337203685478e+18 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +ERROR: bigint out of range +HINT: SQLite value with "real" affinity : -9.22337203685478e+19 +CONTEXT: foreign table "int8_tbl" foreign column "q1" have data type "bigint" (usual affinity "integer"), in query there is whole-row reference to foreign table +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +NOTICE: drop cascades to 5 other objects +DETAIL: drop cascades to foreign table int4_tbl +drop cascades to foreign table int4_tmp +drop cascades to foreign table int2_tbl +drop cascades to foreign table int2_tmp +drop cascades to foreign table int8_tbl +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/expected/16.0/extra/prepare.out b/expected/16.0/extra/prepare.out index 0c534833..8d7941a8 100644 --- a/expected/16.0/extra/prepare.out +++ b/expected/16.0/extra/prepare.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( unique1 int4, diff --git a/expected/16.0/extra/select.out b/expected/16.0/extra/select.out index 49394537..2f7f5359 100644 --- a/expected/16.0/extra/select.out +++ b/expected/16.0/extra/select.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( unique1 int4, diff --git a/expected/16.0/extra/select_having.out b/expected/16.0/extra/select_having.out index 9bc2ef0c..1a159651 100644 --- a/expected/16.0/extra/select_having.out +++ b/expected/16.0/extra/select_having.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; -- load test data diff --git a/expected/16.0/extra/sqlite_fdw_post.out b/expected/16.0/extra/sqlite_fdw_post.out index ae05737a..91bef518 100644 --- a/expected/16.0/extra/sqlite_fdw_post.out +++ b/expected/16.0/extra/sqlite_fdw_post.out @@ -6,11 +6,11 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr3 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 484: @@ -155,7 +155,7 @@ ERROR: SQL error during prepare: no such table: main.T 1 SELECT `C 1`, `c3`, `c DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -5050,20 +5050,24 @@ DROP TABLE reind_fdw_parent; ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE int; --Testcase 273: SELECT * FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8) WHERE x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 274: SELECT ftx.x1, ft2.c2, ftx.x8 FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 275: SELECT ftx.x1, ft2.c2, ftx FROM ft1 ftx(x1,x2,x3,x4,x5,x6,x7,x8), ft2 WHERE ftx.x1 = ft2.c1 AND ftx.x1 = 1; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ftx" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column --Testcase 276: SELECT sum(c2), array_agg(c8) FROM ft1 GROUP BY c8; -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "c8" expected SQLite affinity "integer", incorrect value = 'foo' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (3 bytes) : 'foo' +CONTEXT: foreign table "ft1" foreign column "c8" have data type "integer" (usual affinity "integer"), in query there is reference to foreign column -- ANALYZE ft1; -- ERROR -- =================================================================== -- local type can be different from remote type in some cases, @@ -10783,7 +10787,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/expected/16.0/extra/timestamp.out b/expected/16.0/extra/timestamp.out index 3b2931f6..802a83f5 100644 --- a/expected/16.0/extra/timestamp.out +++ b/expected/16.0/extra/timestamp.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/expected/16.0/extra/update.out b/expected/16.0/extra/update.out index 69411f9e..825667fa 100644 --- a/expected/16.0/extra/update.out +++ b/expected/16.0/extra/update.out @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( i INT OPTIONS (key 'true'), diff --git a/expected/16.0/extra/uuid.out b/expected/16.0/extra/uuid.out index b3fc91a8..91d00ccc 100644 --- a/expected/16.0/extra/uuid.out +++ b/expected/16.0/extra/uuid.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; --Testcase 109: @@ -442,11 +442,13 @@ ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; --Testcase 189: SELECT * FROM "type_UUID+" WHERE "i" = 42; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 17 bytes length +HINT: SQLite value with "blob" affinity (17 bytes) in hex : a0eebc999c0b4ef8bb6d6bb9bd380a11f1 +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 190: SELECT * FROM "type_UUID+" WHERE "i" = 43; ERROR: PostgreSQL uuid data type allows only 16 bytes SQLite blob value -HINT: incorrect value is 15 bytes length +HINT: SQLite value with "blob" affinity (15 bytes) in hex : b0eebc999c0b4ef8bb6d6bb9bd380a +CONTEXT: foreign table "type_UUID+" foreign column "u" have data type "uuid" (usual affinity "blob"), in query there is reference to foreign column --Testcase 191: EXPLAIN VERBOSE DELETE FROM "type_UUID" WHERE "i" IN (42, 43); diff --git a/expected/16.0/selectfunc.out b/expected/16.0/selectfunc.out index 0ff93436..14dcd259 100644 --- a/expected/16.0/selectfunc.out +++ b/expected/16.0/selectfunc.out @@ -4,7 +4,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); --Testcase 3: diff --git a/expected/16.0/sqlite_fdw.out b/expected/16.0/sqlite_fdw.out index 51690c38..05fee260 100644 --- a/expected/16.0/sqlite_fdw.out +++ b/expected/16.0/sqlite_fdw.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: @@ -1483,8 +1483,9 @@ SELECT * FROM fts_table; -- should work ALTER TABLE fts_table ALTER COLUMN name TYPE int; --Testcase 160: SELECT * FROM fts_table; -- should fail -ERROR: SQLite data affinity "text" disallowed for PostgreSQL data type "integer" -HINT: In column "name" expected SQLite affinity "integer", incorrect value = 'this is name' +ERROR: SQLite value is not compatible with PostgreSQL column data type +HINT: SQLite value with "text" affinity (12 bytes) : 'this is name' +CONTEXT: foreign table "fts_table" foreign column "name" have data type "integer" (usual affinity "integer"), in query there is whole-row reference to foreign table -- issue #62 github --Testcase 236: INSERT INTO noprimary VALUES (4, 'Test''s'); diff --git a/expected/16.0/type.out b/expected/16.0/type.out index 4d791a9b..9106169a 100644 --- a/expected/16.0/type.out +++ b/expected/16.0/type.out @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_svr INTO public; @@ -510,805 +510,9 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; -NOTICE: foreign table "type_BIT+" does not exist, skipping ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); -ERROR: bit string length 1 does not match type bit(6) ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); -ERROR: bit string length 2 does not match type bit(6) ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); -ERROR: bit string length 3 does not match type bit(6) ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); -ERROR: column "b" is of type bit but expression is of type integer -LINE 1: INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); - ^ -HINT: You will need to rewrite or cast the expression. ---Testcase 213: -SELECT * FROM "type_BIT+"; - i | b | t | l | bi ----+--------+---------+---+---- - 6 | 110110 | integer | 2 | 54 - 7 | 111001 | integer | 2 | 57 - 8 | 110000 | integer | 2 | 48 - 9 | 100001 | integer | 2 | 33 -(4 rows) - ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; - i | b ----+-------- - 8 | 110000 - 9 | 100001 -(2 rows) - ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; - i | b ----+-------- - 7 | 111001 -(1 row) - ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - i | b ----+-------- - 6 | 110110 -(1 row) - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; -NOTICE: foreign table "type_VARBIT+" does not exist, skipping ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); ---Testcase 232 -SELECT * FROM "type_VARBIT+"; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 6 | 110110 | integer | 2 - 7 | 111001 | integer | 2 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(11 rows) - ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; - i | b | t | l ----+--------+---------+--- - 1 | 1 | integer | 1 - 2 | 10 | integer | 1 - 3 | 11 | integer | 1 - 4 | 100 | integer | 1 - 5 | 101 | integer | 1 - 8 | 110000 | integer | 2 - 9 | 100001 | integer | 2 -(7 rows) - ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; - i | b | t | l -----+---------------------------------------------------------------+---------+---- - 7 | 111001 | integer | 2 - 10 | 100100101011001010010101000111110110101101101111011000101010 | integer | 18 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 -(3 rows) - ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - i | b | t | l ----+--------+---------+--- - 6 | 110110 | integer | 2 -(1 row) - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); -ERROR: SQLite FDW dosens't support very long bit/varbit data -HINT: bit length 65, maximum 64 ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - i | b | t | l -----+-----------------------------------------------------------------+---------+---- - 11 | 1001001010110010100101010001111101101011011011110110001010101 | integer | 19 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | integer | 19 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | integer | 19 -(3 rows) - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 111111 - 6 | 110110 | 8 | 110000 | 110110 - 6 | 110110 | 9 | 100001 | 110111 - 7 | 111001 | 6 | 110110 | 111111 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 111001 - 7 | 111001 | 9 | 100001 | 111001 - 8 | 110000 | 6 | 110110 | 110110 - 8 | 110000 | 7 | 111001 | 111001 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 110001 - 9 | 100001 | 6 | 110110 | 110111 - 9 | 100001 | 7 | 111001 | 111001 - 9 | 100001 | 8 | 110000 | 110001 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 110110 - 6 | 110110 | 7 | 111001 | 110000 - 6 | 110110 | 8 | 110000 | 110000 - 6 | 110110 | 9 | 100001 | 100000 - 7 | 111001 | 6 | 110110 | 110000 - 7 | 111001 | 7 | 111001 | 111001 - 7 | 111001 | 8 | 110000 | 110000 - 7 | 111001 | 9 | 100001 | 100001 - 8 | 110000 | 6 | 110110 | 110000 - 8 | 110000 | 7 | 111001 | 110000 - 8 | 110000 | 8 | 110000 | 110000 - 8 | 110000 | 9 | 100001 | 100000 - 9 | 100001 | 6 | 110110 | 100000 - 9 | 100001 | 7 | 111001 | 100001 - 9 | 100001 | 8 | 110000 | 100000 - 9 | 100001 | 9 | 100001 | 100001 -(16 rows) - ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - i₁ | b₁ | i₂ | b₂ | res -----+--------+----+--------+-------- - 6 | 110110 | 6 | 110110 | 000000 - 6 | 110110 | 7 | 111001 | 001111 - 6 | 110110 | 8 | 110000 | 000110 - 6 | 110110 | 9 | 100001 | 010111 - 7 | 111001 | 6 | 110110 | 001111 - 7 | 111001 | 7 | 111001 | 000000 - 7 | 111001 | 8 | 110000 | 001001 - 7 | 111001 | 9 | 100001 | 011000 - 8 | 110000 | 6 | 110110 | 000110 - 8 | 110000 | 7 | 111001 | 001001 - 8 | 110000 | 8 | 110000 | 000000 - 8 | 110000 | 9 | 100001 | 010001 - 9 | 100001 | 6 | 110110 | 010111 - 9 | 100001 | 7 | 111001 | 011000 - 9 | 100001 | 8 | 110000 | 010001 - 9 | 100001 | 9 | 100001 | 000000 -(16 rows) - ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 -(4 rows) - ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 -(4 rows) - ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b | b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b & b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; - QUERY PLAN --------------------------------------------------------------------------------------------- - Nested Loop (cost=20.00..77960.48 rows=4901796 width=58) - Output: b1.i, b1.b, b2.i, b2.b, (b1.b # b2.b) - -> Foreign Scan on public."type_BIT" b1 (cost=10.00..2214.00 rows=2214 width=13) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" - -> Materialize (cost=10.00..2225.07 rows=2214 width=13) - Output: b2.i, b2.b - -> Foreign Scan on public."type_BIT" b2 (cost=10.00..2214.00 rows=2214 width=13) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(10 rows) - ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (b << 3) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2219.53 rows=2214 width=45) - Output: i, b, (~ b) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(3 rows) - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot OR bit strings of different sizes ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot AND bit strings of different sizes ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; -ERROR: cannot XOR bit strings of different sizes ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 001 - 5 | 101 | 001 - 6 | 110110 | 001101 - 7 | 111001 | 001110 - 8 | 110000 | 001100 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 001001001010110010100101010001111101101011011011110110001010 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0010010010101100101001010100011111011010110110111101100010101 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 00100100101011001010010101000111110110101101101111011000101010 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 001001001010110010100101010001111101101011011011110110001010101 -(13 rows) - ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 00 - 3 | 11 | 00 - 4 | 100 | 000 - 5 | 101 | 000 - 6 | 110110 | 110000 - 7 | 111001 | 001000 - 8 | 110000 | 000000 - 9 | 100001 | 001000 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 100101011001010010101000111110110101101101111011000101010000 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 1001010110010100101010001111101101011011011110110001010101000 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 10010101100101001010100011111011010110110111101100010101010000 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 100101011001010010101000111110110101101101111011000101010101000 -(13 rows) - ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - i | b | res -----+-----------------------------------------------------------------+----------------------------------------------------------------- - 1 | 1 | 0 - 2 | 10 | 01 - 3 | 11 | 00 - 4 | 100 | 011 - 5 | 101 | 010 - 6 | 110110 | 001001 - 7 | 111001 | 000110 - 8 | 110000 | 001111 - 9 | 100001 | 011110 - 10 | 100100101011001010010101000111110110101101101111011000101010 | 011011010100110101101010111000001001010010010000100111010101 - 11 | 1001001010110010100101010001111101101011011011110110001010101 | 0110110101001101011010101110000010010100100100001001110101010 - 12 | 10010010101100101001010100011111011010110110111101100010101010 | 01101101010011010110101011100000100101001001000010011101010101 - 13 | 100100101011001010010101000111110110101101101111011000101010101 | 011011010100110101101010111000001001010010010000100111010101010 -(13 rows) - ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" | (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" & (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; - QUERY PLAN ------------------------------------------------------------------------------------------------ - Nested Loop (cost=20.00..53330.55 rows=3312400 width=74) - Output: b1.i, b1.b, b2.i, b2.b, ((b1.b)::"bit" # (b2.b)::"bit") - -> Foreign Scan on public."type_VARBIT" b1 (cost=10.00..1820.00 rows=1820 width=21) - Output: b1.i, b1.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" - -> Materialize (cost=10.00..1829.10 rows=1820 width=21) - Output: b2.i, b2.b - -> Foreign Scan on public."type_VARBIT" b2 (cost=10.00..1820.00 rows=1820 width=21) - Output: b2.i, b2.b - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(10 rows) - ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" >> 2) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, ((b)::"bit" << 3) - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - QUERY PLAN --------------------------------------------------------------------------------- - Foreign Scan on public."type_VARBIT" (cost=10.00..1824.55 rows=1820 width=53) - Output: i, b, (~ (b)::"bit") - SQLite query: SELECT `i`, `b` FROM main."type_VARBIT" -(3 rows) - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 100010 - 7 | 111001 | 101001 - 8 | 110000 | 100000 - 9 | 100001 | 100001 -(4 rows) - ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 111111 - 7 | 111001 | 111011 - 8 | 110000 | 111011 - 9 | 100001 | 101011 -(4 rows) - ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; - i | b | res ----+--------+-------- - 6 | 110110 | 011101 - 7 | 111001 | 010010 - 8 | 110000 | 011011 - 9 | 100001 | 001010 -(4 rows) - ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - i | b ----+-------- - 6 | 110110 - 7 | 111001 - 8 | 110000 - 9 | 100001 -(4 rows) - ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` & 43) IS NOT NULL)) -(3 rows) - ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` | 43) IS NOT NULL)) -(3 rows) - ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------ - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - Filter: (("type_BIT".b # '101011'::"bit") IS NOT NULL) - SQLite query: SELECT `i`, `b` FROM main."type_BIT" -(4 rows) - ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` >> 1) IS NOT NULL)) -(3 rows) - ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; - QUERY PLAN ---------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((`b` << 2) IS NOT NULL)) -(3 rows) - ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - QUERY PLAN ------------------------------------------------------------------------------------- - Foreign Scan on public."type_BIT" (cost=10.00..2203.00 rows=2203 width=13) - Output: i, b - SQLite query: SELECT `i`, `b` FROM main."type_BIT" WHERE (((~ `b`) IS NOT NULL)) -(3 rows) - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; -NOTICE: drop cascades to 50 other objects +NOTICE: drop cascades to 48 other objects DETAIL: drop cascades to server sqlite_svr drop cascades to foreign table department drop cascades to foreign table employee @@ -1334,6 +538,8 @@ drop cascades to foreign table "type_TIMESTAMP" drop cascades to foreign table "type_BLOB" drop cascades to foreign table "type_DATE" drop cascades to foreign table "type_TIME" +drop cascades to foreign table "type_BIT" +drop cascades to foreign table "type_VARBIT" drop cascades to foreign table "type_UUIDpk" drop cascades to foreign table "type_UUID" drop cascades to foreign table "BitT" @@ -1354,8 +560,4 @@ drop cascades to foreign table "Unicode data" drop cascades to foreign table "type_BOOLEAN_oper" drop cascades to foreign table type_json drop cascades to foreign table "type_BOOLEAN" -drop cascades to foreign table "type_BIT" -drop cascades to foreign table "type_BIT+" -drop cascades to foreign table "type_VARBIT" -drop cascades to foreign table "type_VARBIT+" drop cascades to server sqlite2 diff --git a/option.c b/option.c index c332f402..99c2c999 100644 --- a/option.c +++ b/option.c @@ -11,38 +11,20 @@ */ #include "postgres.h" - #include "sqlite_fdw.h" -#include -#include -#include - #include "funcapi.h" #include "access/reloptions.h" #include "catalog/pg_foreign_server.h" #include "catalog/pg_foreign_table.h" -#include "catalog/pg_user_mapping.h" #include "catalog/pg_type.h" #include "commands/defrem.h" -#include "commands/explain.h" -#include "foreign/fdwapi.h" -#include "foreign/foreign.h" -#include "miscadmin.h" -#include "mb/pg_wchar.h" -#include "storage/fd.h" -#include "utils/array.h" -#include "utils/builtins.h" #include "utils/guc.h" -#include "utils/rel.h" #include "utils/lsyscache.h" #if PG_VERSION_NUM >= 160000 -#include "utils/varlena.h" + #include "utils/varlena.h" #endif -#include "optimizer/cost.h" -#include "optimizer/pathnode.h" -#include "optimizer/restrictinfo.h" -#include "optimizer/planmain.h" + /* * Describes the valid options for objects that use this wrapper. */ diff --git a/sql/12.16/aggregate.sql b/sql/12.16/aggregate.sql index fcc162f5..470dd42b 100644 --- a/sql/12.16/aggregate.sql +++ b/sql/12.16/aggregate.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; diff --git a/sql/12.16/extra/aggregates.sql b/sql/12.16/extra/aggregates.sql index 3440e077..73dd46be 100644 --- a/sql/12.16/extra/aggregates.sql +++ b/sql/12.16/extra/aggregates.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/12.16/extra/bitstring.sql b/sql/12.16/extra/bitstring.sql new file mode 100644 index 00000000..1e28e9f9 --- /dev/null +++ b/sql/12.16/extra/bitstring.sql @@ -0,0 +1,231 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); + +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +--Testcase 15: +SELECT * FROM "type_BIT+"; +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); + +--Testcase 34: +SELECT * FROM "type_VARBIT+"; +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/12.16/extra/bool.sql b/sql/12.16/extra/bool.sql index d736bae0..c1c58db1 100644 --- a/sql/12.16/extra/bool.sql +++ b/sql/12.16/extra/bool.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/12.16/extra/encodings.sql b/sql/12.16/extra/encodings.sql index 63c19191..0cab82a3 100644 --- a/sql/12.16/extra/encodings.sql +++ b/sql/12.16/extra/encodings.sql @@ -40,7 +40,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; DROP FOREIGN TABLE "Unicode data"; @@ -52,7 +52,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -189,7 +189,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -326,7 +326,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -463,7 +463,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -600,7 +600,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -737,7 +737,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -874,7 +874,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1011,7 +1011,7 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1148,7 +1148,7 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1285,7 +1285,7 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1422,7 +1422,7 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1559,7 +1559,7 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1696,7 +1696,7 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1833,7 +1833,7 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1970,7 +1970,7 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2107,7 +2107,7 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2244,7 +2244,7 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2381,7 +2381,7 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2518,7 +2518,7 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2655,7 +2655,7 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2792,7 +2792,7 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2929,7 +2929,7 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3066,7 +3066,7 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3203,7 +3203,7 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3341,7 +3341,7 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3478,7 +3478,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/sql/12.16/extra/float4.sql b/sql/12.16/extra/float4.sql index 90001b29..342bdf34 100644 --- a/sql/12.16/extra/float4.sql +++ b/sql/12.16/extra/float4.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/sql/12.16/extra/float8.sql b/sql/12.16/extra/float8.sql index 97edb4aa..d42e46bf 100644 --- a/sql/12.16/extra/float8.sql +++ b/sql/12.16/extra/float8.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/sql/12.16/extra/insert.sql b/sql/12.16/extra/insert.sql index c9947f02..2a9a1403 100644 --- a/sql/12.16/extra/insert.sql +++ b/sql/12.16/extra/insert.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/sql/12.16/extra/int4.sql b/sql/12.16/extra/int4.sql index 4b499700..574b9137 100644 --- a/sql/12.16/extra/int4.sql +++ b/sql/12.16/extra/int4.sql @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/sql/12.16/extra/int8.sql b/sql/12.16/extra/int8.sql index 6ce11b96..7d4ba4ba 100644 --- a/sql/12.16/extra/int8.sql +++ b/sql/12.16/extra/int8.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/sql/12.16/extra/join.sql b/sql/12.16/extra/join.sql index d633d623..85eabb84 100644 --- a/sql/12.16/extra/join.sql +++ b/sql/12.16/extra/join.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( diff --git a/sql/12.16/extra/limit.sql b/sql/12.16/extra/limit.sql index e698a7b1..fad57bf9 100644 --- a/sql/12.16/extra/limit.sql +++ b/sql/12.16/extra/limit.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/12.16/extra/numeric.sql b/sql/12.16/extra/numeric.sql index d57f9878..7fdd6aea 100644 --- a/sql/12.16/extra/numeric.sql +++ b/sql/12.16/extra/numeric.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; diff --git a/sql/12.16/extra/out_of_range.sql b/sql/12.16/extra/out_of_range.sql new file mode 100644 index 00000000..efff8c92 --- /dev/null +++ b/sql/12.16/extra/out_of_range.sql @@ -0,0 +1,118 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); + +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; + +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/12.16/extra/prepare.sql b/sql/12.16/extra/prepare.sql index ffe6f124..18acbad7 100644 --- a/sql/12.16/extra/prepare.sql +++ b/sql/12.16/extra/prepare.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( diff --git a/sql/12.16/extra/select.sql b/sql/12.16/extra/select.sql index 2ce03b9f..12ee7b82 100644 --- a/sql/12.16/extra/select.sql +++ b/sql/12.16/extra/select.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( diff --git a/sql/12.16/extra/select_having.sql b/sql/12.16/extra/select_having.sql index de2b8a16..cdc5060b 100644 --- a/sql/12.16/extra/select_having.sql +++ b/sql/12.16/extra/select_having.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; diff --git a/sql/12.16/extra/sqlite_fdw_post.sql b/sql/12.16/extra/sqlite_fdw_post.sql index eacde4fc..62073513 100644 --- a/sql/12.16/extra/sqlite_fdw_post.sql +++ b/sql/12.16/extra/sqlite_fdw_post.sql @@ -8,9 +8,9 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; @@ -134,7 +134,7 @@ SELECT c3, c4 FROM ft1 ORDER BY c3, c1 LIMIT 1; -- should fail DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -3159,7 +3159,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/sql/12.16/extra/timestamp.sql b/sql/12.16/extra/timestamp.sql index 288bdd29..4e7bba12 100644 --- a/sql/12.16/extra/timestamp.sql +++ b/sql/12.16/extra/timestamp.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/sql/12.16/extra/update.sql b/sql/12.16/extra/update.sql index c0bdf32e..26fa665a 100644 --- a/sql/12.16/extra/update.sql +++ b/sql/12.16/extra/update.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( diff --git a/sql/12.16/extra/uuid.sql b/sql/12.16/extra/uuid.sql index b83505f2..59084be0 100644 --- a/sql/12.16/extra/uuid.sql +++ b/sql/12.16/extra/uuid.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/12.16/selectfunc.sql b/sql/12.16/selectfunc.sql index 3db3d875..62e740c4 100644 --- a/sql/12.16/selectfunc.sql +++ b/sql/12.16/selectfunc.sql @@ -5,7 +5,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); diff --git a/sql/12.16/sqlite_fdw.sql b/sql/12.16/sqlite_fdw.sql index 7e781308..ea2ebc5e 100644 --- a/sql/12.16/sqlite_fdw.sql +++ b/sql/12.16/sqlite_fdw.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: diff --git a/sql/12.16/type.sql b/sql/12.16/type.sql index a429c55a..e5145c8d 100644 --- a/sql/12.16/type.sql +++ b/sql/12.16/type.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; @@ -260,227 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); ---Testcase 213: -SELECT * FROM "type_BIT+"; ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); - ---Testcase 232 -SELECT * FROM "type_VARBIT+"; ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - ---Testcase 252: bit strings of different sizes -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 253: bit strings of different sizes -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 254: bit strings of different sizes -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true WHERE (b1."b" >> 2) < (b1."b" & b2."b"); ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.12/aggregate.sql b/sql/13.12/aggregate.sql index fcc162f5..470dd42b 100644 --- a/sql/13.12/aggregate.sql +++ b/sql/13.12/aggregate.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; diff --git a/sql/13.12/extra/aggregates.sql b/sql/13.12/extra/aggregates.sql index 3440e077..73dd46be 100644 --- a/sql/13.12/extra/aggregates.sql +++ b/sql/13.12/extra/aggregates.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/13.12/extra/bitstring.sql b/sql/13.12/extra/bitstring.sql new file mode 100644 index 00000000..1e28e9f9 --- /dev/null +++ b/sql/13.12/extra/bitstring.sql @@ -0,0 +1,231 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); + +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +--Testcase 15: +SELECT * FROM "type_BIT+"; +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); + +--Testcase 34: +SELECT * FROM "type_VARBIT+"; +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.12/extra/bool.sql b/sql/13.12/extra/bool.sql index d736bae0..c1c58db1 100644 --- a/sql/13.12/extra/bool.sql +++ b/sql/13.12/extra/bool.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/13.12/extra/encodings.sql b/sql/13.12/extra/encodings.sql index 63c19191..0cab82a3 100644 --- a/sql/13.12/extra/encodings.sql +++ b/sql/13.12/extra/encodings.sql @@ -40,7 +40,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; DROP FOREIGN TABLE "Unicode data"; @@ -52,7 +52,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -189,7 +189,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -326,7 +326,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -463,7 +463,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -600,7 +600,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -737,7 +737,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -874,7 +874,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1011,7 +1011,7 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1148,7 +1148,7 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1285,7 +1285,7 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1422,7 +1422,7 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1559,7 +1559,7 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1696,7 +1696,7 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1833,7 +1833,7 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1970,7 +1970,7 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2107,7 +2107,7 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2244,7 +2244,7 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2381,7 +2381,7 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2518,7 +2518,7 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2655,7 +2655,7 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2792,7 +2792,7 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2929,7 +2929,7 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3066,7 +3066,7 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3203,7 +3203,7 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3341,7 +3341,7 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3478,7 +3478,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/sql/13.12/extra/float4.sql b/sql/13.12/extra/float4.sql index 90001b29..342bdf34 100644 --- a/sql/13.12/extra/float4.sql +++ b/sql/13.12/extra/float4.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/sql/13.12/extra/float8.sql b/sql/13.12/extra/float8.sql index 97edb4aa..d42e46bf 100644 --- a/sql/13.12/extra/float8.sql +++ b/sql/13.12/extra/float8.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/sql/13.12/extra/insert.sql b/sql/13.12/extra/insert.sql index c9947f02..2a9a1403 100644 --- a/sql/13.12/extra/insert.sql +++ b/sql/13.12/extra/insert.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/sql/13.12/extra/int4.sql b/sql/13.12/extra/int4.sql index 4b499700..574b9137 100644 --- a/sql/13.12/extra/int4.sql +++ b/sql/13.12/extra/int4.sql @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/sql/13.12/extra/int8.sql b/sql/13.12/extra/int8.sql index 6ce11b96..7d4ba4ba 100644 --- a/sql/13.12/extra/int8.sql +++ b/sql/13.12/extra/int8.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/sql/13.12/extra/join.sql b/sql/13.12/extra/join.sql index d633d623..85eabb84 100644 --- a/sql/13.12/extra/join.sql +++ b/sql/13.12/extra/join.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( diff --git a/sql/13.12/extra/limit.sql b/sql/13.12/extra/limit.sql index e698a7b1..fad57bf9 100644 --- a/sql/13.12/extra/limit.sql +++ b/sql/13.12/extra/limit.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/13.12/extra/numeric.sql b/sql/13.12/extra/numeric.sql index d57f9878..7fdd6aea 100644 --- a/sql/13.12/extra/numeric.sql +++ b/sql/13.12/extra/numeric.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; diff --git a/sql/13.12/extra/out_of_range.sql b/sql/13.12/extra/out_of_range.sql new file mode 100644 index 00000000..efff8c92 --- /dev/null +++ b/sql/13.12/extra/out_of_range.sql @@ -0,0 +1,118 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); + +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; + +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/13.12/extra/prepare.sql b/sql/13.12/extra/prepare.sql index ffe6f124..18acbad7 100644 --- a/sql/13.12/extra/prepare.sql +++ b/sql/13.12/extra/prepare.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( diff --git a/sql/13.12/extra/select.sql b/sql/13.12/extra/select.sql index 2ce03b9f..12ee7b82 100644 --- a/sql/13.12/extra/select.sql +++ b/sql/13.12/extra/select.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( diff --git a/sql/13.12/extra/select_having.sql b/sql/13.12/extra/select_having.sql index de2b8a16..cdc5060b 100644 --- a/sql/13.12/extra/select_having.sql +++ b/sql/13.12/extra/select_having.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; diff --git a/sql/13.12/extra/sqlite_fdw_post.sql b/sql/13.12/extra/sqlite_fdw_post.sql index eacde4fc..62073513 100644 --- a/sql/13.12/extra/sqlite_fdw_post.sql +++ b/sql/13.12/extra/sqlite_fdw_post.sql @@ -8,9 +8,9 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; @@ -134,7 +134,7 @@ SELECT c3, c4 FROM ft1 ORDER BY c3, c1 LIMIT 1; -- should fail DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -3159,7 +3159,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/sql/13.12/extra/timestamp.sql b/sql/13.12/extra/timestamp.sql index 288bdd29..4e7bba12 100644 --- a/sql/13.12/extra/timestamp.sql +++ b/sql/13.12/extra/timestamp.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/sql/13.12/extra/update.sql b/sql/13.12/extra/update.sql index c0bdf32e..26fa665a 100644 --- a/sql/13.12/extra/update.sql +++ b/sql/13.12/extra/update.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( diff --git a/sql/13.12/extra/uuid.sql b/sql/13.12/extra/uuid.sql index b83505f2..59084be0 100644 --- a/sql/13.12/extra/uuid.sql +++ b/sql/13.12/extra/uuid.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/13.12/selectfunc.sql b/sql/13.12/selectfunc.sql index 3db3d875..62e740c4 100644 --- a/sql/13.12/selectfunc.sql +++ b/sql/13.12/selectfunc.sql @@ -5,7 +5,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); diff --git a/sql/13.12/sqlite_fdw.sql b/sql/13.12/sqlite_fdw.sql index 7e781308..ea2ebc5e 100644 --- a/sql/13.12/sqlite_fdw.sql +++ b/sql/13.12/sqlite_fdw.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: diff --git a/sql/13.12/type.sql b/sql/13.12/type.sql index 14db974d..e5145c8d 100644 --- a/sql/13.12/type.sql +++ b/sql/13.12/type.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; @@ -260,429 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE IF EXISTS "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); ---Testcase 213: -SELECT * FROM "type_BIT+"; ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); - ---Testcase 232 -SELECT * FROM "type_VARBIT+"; ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.9/aggregate.sql b/sql/14.9/aggregate.sql index fcc162f5..470dd42b 100644 --- a/sql/14.9/aggregate.sql +++ b/sql/14.9/aggregate.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; diff --git a/sql/14.9/extra/aggregates.sql b/sql/14.9/extra/aggregates.sql index 98fe5c0f..65309ec1 100644 --- a/sql/14.9/extra/aggregates.sql +++ b/sql/14.9/extra/aggregates.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/14.9/extra/bitstring.sql b/sql/14.9/extra/bitstring.sql new file mode 100644 index 00000000..1e28e9f9 --- /dev/null +++ b/sql/14.9/extra/bitstring.sql @@ -0,0 +1,231 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); + +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +--Testcase 15: +SELECT * FROM "type_BIT+"; +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); + +--Testcase 34: +SELECT * FROM "type_VARBIT+"; +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.9/extra/bool.sql b/sql/14.9/extra/bool.sql index d736bae0..c1c58db1 100644 --- a/sql/14.9/extra/bool.sql +++ b/sql/14.9/extra/bool.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/14.9/extra/encodings.sql b/sql/14.9/extra/encodings.sql index 63c19191..0cab82a3 100644 --- a/sql/14.9/extra/encodings.sql +++ b/sql/14.9/extra/encodings.sql @@ -40,7 +40,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; DROP FOREIGN TABLE "Unicode data"; @@ -52,7 +52,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -189,7 +189,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -326,7 +326,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -463,7 +463,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -600,7 +600,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -737,7 +737,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -874,7 +874,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1011,7 +1011,7 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1148,7 +1148,7 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1285,7 +1285,7 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1422,7 +1422,7 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1559,7 +1559,7 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1696,7 +1696,7 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1833,7 +1833,7 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1970,7 +1970,7 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2107,7 +2107,7 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2244,7 +2244,7 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2381,7 +2381,7 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2518,7 +2518,7 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2655,7 +2655,7 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2792,7 +2792,7 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2929,7 +2929,7 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3066,7 +3066,7 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3203,7 +3203,7 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3341,7 +3341,7 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3478,7 +3478,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/sql/14.9/extra/float4.sql b/sql/14.9/extra/float4.sql index efd16a44..a881987b 100644 --- a/sql/14.9/extra/float4.sql +++ b/sql/14.9/extra/float4.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/sql/14.9/extra/float8.sql b/sql/14.9/extra/float8.sql index ba94009e..b89bb674 100644 --- a/sql/14.9/extra/float8.sql +++ b/sql/14.9/extra/float8.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/sql/14.9/extra/insert.sql b/sql/14.9/extra/insert.sql index 6e3f82af..87946830 100644 --- a/sql/14.9/extra/insert.sql +++ b/sql/14.9/extra/insert.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/sql/14.9/extra/int4.sql b/sql/14.9/extra/int4.sql index 638dd321..4a3788cf 100644 --- a/sql/14.9/extra/int4.sql +++ b/sql/14.9/extra/int4.sql @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/sql/14.9/extra/int8.sql b/sql/14.9/extra/int8.sql index 2b2aa83e..f931d7cb 100644 --- a/sql/14.9/extra/int8.sql +++ b/sql/14.9/extra/int8.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/sql/14.9/extra/join.sql b/sql/14.9/extra/join.sql index c1db4357..feaf8ee7 100644 --- a/sql/14.9/extra/join.sql +++ b/sql/14.9/extra/join.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( diff --git a/sql/14.9/extra/limit.sql b/sql/14.9/extra/limit.sql index e698a7b1..fad57bf9 100644 --- a/sql/14.9/extra/limit.sql +++ b/sql/14.9/extra/limit.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/14.9/extra/numeric.sql b/sql/14.9/extra/numeric.sql index ad9c0925..4f0c3494 100644 --- a/sql/14.9/extra/numeric.sql +++ b/sql/14.9/extra/numeric.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; diff --git a/sql/14.9/extra/out_of_range.sql b/sql/14.9/extra/out_of_range.sql new file mode 100644 index 00000000..efff8c92 --- /dev/null +++ b/sql/14.9/extra/out_of_range.sql @@ -0,0 +1,118 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); + +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; + +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/14.9/extra/prepare.sql b/sql/14.9/extra/prepare.sql index ffe6f124..18acbad7 100644 --- a/sql/14.9/extra/prepare.sql +++ b/sql/14.9/extra/prepare.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( diff --git a/sql/14.9/extra/select.sql b/sql/14.9/extra/select.sql index 2ce03b9f..12ee7b82 100644 --- a/sql/14.9/extra/select.sql +++ b/sql/14.9/extra/select.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( diff --git a/sql/14.9/extra/select_having.sql b/sql/14.9/extra/select_having.sql index de2b8a16..cdc5060b 100644 --- a/sql/14.9/extra/select_having.sql +++ b/sql/14.9/extra/select_having.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; diff --git a/sql/14.9/extra/sqlite_fdw_post.sql b/sql/14.9/extra/sqlite_fdw_post.sql index 2967a26b..937e2318 100644 --- a/sql/14.9/extra/sqlite_fdw_post.sql +++ b/sql/14.9/extra/sqlite_fdw_post.sql @@ -8,11 +8,11 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr3 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; @@ -151,7 +151,7 @@ SELECT c3, c4 FROM ft1 ORDER BY c3, c1 LIMIT 1; -- should fail DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -3482,7 +3482,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/sql/14.9/extra/timestamp.sql b/sql/14.9/extra/timestamp.sql index 288bdd29..4e7bba12 100644 --- a/sql/14.9/extra/timestamp.sql +++ b/sql/14.9/extra/timestamp.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/sql/14.9/extra/update.sql b/sql/14.9/extra/update.sql index 6b510169..9194d5a5 100644 --- a/sql/14.9/extra/update.sql +++ b/sql/14.9/extra/update.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( diff --git a/sql/14.9/extra/uuid.sql b/sql/14.9/extra/uuid.sql index b83505f2..59084be0 100644 --- a/sql/14.9/extra/uuid.sql +++ b/sql/14.9/extra/uuid.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/14.9/selectfunc.sql b/sql/14.9/selectfunc.sql index 3db3d875..62e740c4 100644 --- a/sql/14.9/selectfunc.sql +++ b/sql/14.9/selectfunc.sql @@ -5,7 +5,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); diff --git a/sql/14.9/sqlite_fdw.sql b/sql/14.9/sqlite_fdw.sql index 8b1fa77e..eac0b891 100644 --- a/sql/14.9/sqlite_fdw.sql +++ b/sql/14.9/sqlite_fdw.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: diff --git a/sql/14.9/type.sql b/sql/14.9/type.sql index 14db974d..e5145c8d 100644 --- a/sql/14.9/type.sql +++ b/sql/14.9/type.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; @@ -260,429 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE IF EXISTS "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); ---Testcase 213: -SELECT * FROM "type_BIT+"; ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); - ---Testcase 232 -SELECT * FROM "type_VARBIT+"; ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.4/aggregate.sql b/sql/15.4/aggregate.sql index fcc162f5..470dd42b 100644 --- a/sql/15.4/aggregate.sql +++ b/sql/15.4/aggregate.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; diff --git a/sql/15.4/extra/aggregates.sql b/sql/15.4/extra/aggregates.sql index 157ed7e5..3cc24975 100644 --- a/sql/15.4/extra/aggregates.sql +++ b/sql/15.4/extra/aggregates.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/15.4/extra/bitstring.sql b/sql/15.4/extra/bitstring.sql new file mode 100644 index 00000000..1e28e9f9 --- /dev/null +++ b/sql/15.4/extra/bitstring.sql @@ -0,0 +1,231 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); + +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +--Testcase 15: +SELECT * FROM "type_BIT+"; +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); + +--Testcase 34: +SELECT * FROM "type_VARBIT+"; +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.4/extra/bool.sql b/sql/15.4/extra/bool.sql index d736bae0..c1c58db1 100644 --- a/sql/15.4/extra/bool.sql +++ b/sql/15.4/extra/bool.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/15.4/extra/encodings.sql b/sql/15.4/extra/encodings.sql index 63c19191..0cab82a3 100644 --- a/sql/15.4/extra/encodings.sql +++ b/sql/15.4/extra/encodings.sql @@ -40,7 +40,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; DROP FOREIGN TABLE "Unicode data"; @@ -52,7 +52,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -189,7 +189,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -326,7 +326,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -463,7 +463,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -600,7 +600,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -737,7 +737,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -874,7 +874,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1011,7 +1011,7 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1148,7 +1148,7 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1285,7 +1285,7 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1422,7 +1422,7 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1559,7 +1559,7 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1696,7 +1696,7 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1833,7 +1833,7 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1970,7 +1970,7 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2107,7 +2107,7 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2244,7 +2244,7 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2381,7 +2381,7 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2518,7 +2518,7 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2655,7 +2655,7 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2792,7 +2792,7 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2929,7 +2929,7 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3066,7 +3066,7 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3203,7 +3203,7 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3341,7 +3341,7 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3478,7 +3478,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/sql/15.4/extra/float4.sql b/sql/15.4/extra/float4.sql index efd16a44..a881987b 100644 --- a/sql/15.4/extra/float4.sql +++ b/sql/15.4/extra/float4.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/sql/15.4/extra/float8.sql b/sql/15.4/extra/float8.sql index ba94009e..b89bb674 100644 --- a/sql/15.4/extra/float8.sql +++ b/sql/15.4/extra/float8.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/sql/15.4/extra/insert.sql b/sql/15.4/extra/insert.sql index eeef6e7c..95b28c70 100644 --- a/sql/15.4/extra/insert.sql +++ b/sql/15.4/extra/insert.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/sql/15.4/extra/int4.sql b/sql/15.4/extra/int4.sql index 638dd321..4a3788cf 100644 --- a/sql/15.4/extra/int4.sql +++ b/sql/15.4/extra/int4.sql @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/sql/15.4/extra/int8.sql b/sql/15.4/extra/int8.sql index 2b2aa83e..f931d7cb 100644 --- a/sql/15.4/extra/int8.sql +++ b/sql/15.4/extra/int8.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/sql/15.4/extra/join.sql b/sql/15.4/extra/join.sql index 9f2c3876..c9cd483f 100644 --- a/sql/15.4/extra/join.sql +++ b/sql/15.4/extra/join.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( diff --git a/sql/15.4/extra/limit.sql b/sql/15.4/extra/limit.sql index 0e7c004d..abdc06e9 100644 --- a/sql/15.4/extra/limit.sql +++ b/sql/15.4/extra/limit.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/15.4/extra/numeric.sql b/sql/15.4/extra/numeric.sql index eabb8bbe..1f0bc8f1 100644 --- a/sql/15.4/extra/numeric.sql +++ b/sql/15.4/extra/numeric.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; diff --git a/sql/15.4/extra/out_of_range.sql b/sql/15.4/extra/out_of_range.sql new file mode 100644 index 00000000..efff8c92 --- /dev/null +++ b/sql/15.4/extra/out_of_range.sql @@ -0,0 +1,118 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); + +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; + +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/15.4/extra/prepare.sql b/sql/15.4/extra/prepare.sql index ffe6f124..18acbad7 100644 --- a/sql/15.4/extra/prepare.sql +++ b/sql/15.4/extra/prepare.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( diff --git a/sql/15.4/extra/select.sql b/sql/15.4/extra/select.sql index 2d63b355..ccc055f8 100644 --- a/sql/15.4/extra/select.sql +++ b/sql/15.4/extra/select.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( diff --git a/sql/15.4/extra/select_having.sql b/sql/15.4/extra/select_having.sql index de2b8a16..cdc5060b 100644 --- a/sql/15.4/extra/select_having.sql +++ b/sql/15.4/extra/select_having.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; diff --git a/sql/15.4/extra/sqlite_fdw_post.sql b/sql/15.4/extra/sqlite_fdw_post.sql index f7cbddfb..77256265 100644 --- a/sql/15.4/extra/sqlite_fdw_post.sql +++ b/sql/15.4/extra/sqlite_fdw_post.sql @@ -8,11 +8,11 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr3 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; @@ -152,7 +152,7 @@ SELECT c3, c4 FROM ft1 ORDER BY c3, c1 LIMIT 1; -- should fail DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -3624,7 +3624,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/sql/15.4/extra/timestamp.sql b/sql/15.4/extra/timestamp.sql index 288bdd29..4e7bba12 100644 --- a/sql/15.4/extra/timestamp.sql +++ b/sql/15.4/extra/timestamp.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/sql/15.4/extra/update.sql b/sql/15.4/extra/update.sql index 6b510169..9194d5a5 100644 --- a/sql/15.4/extra/update.sql +++ b/sql/15.4/extra/update.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( diff --git a/sql/15.4/extra/uuid.sql b/sql/15.4/extra/uuid.sql index b83505f2..59084be0 100644 --- a/sql/15.4/extra/uuid.sql +++ b/sql/15.4/extra/uuid.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/15.4/selectfunc.sql b/sql/15.4/selectfunc.sql index 3db3d875..62e740c4 100644 --- a/sql/15.4/selectfunc.sql +++ b/sql/15.4/selectfunc.sql @@ -5,7 +5,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); diff --git a/sql/15.4/sqlite_fdw.sql b/sql/15.4/sqlite_fdw.sql index 5b84984f..3cfa14d9 100644 --- a/sql/15.4/sqlite_fdw.sql +++ b/sql/15.4/sqlite_fdw.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: diff --git a/sql/15.4/type.sql b/sql/15.4/type.sql index 14db974d..e5145c8d 100644 --- a/sql/15.4/type.sql +++ b/sql/15.4/type.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; @@ -260,429 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 108: -DROP FOREIGN TABLE IF EXISTS "type_UUID"; ---Testcase 109: -CREATE FOREIGN TABLE "type_UUID"( "i" int OPTIONS (key 'true'), "u" uuid) SERVER sqlite_svr OPTIONS (table 'type_UUID'); ---Testcase 110: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE text; ---Testcase 111: -INSERT INTO "type_UUID" ("i", "u") VALUES (1, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 112: -INSERT INTO "type_UUID" ("i", "u") VALUES (2, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 113: -INSERT INTO "type_UUID" ("i", "u") VALUES (3, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 114: -INSERT INTO "type_UUID" ("i", "u") VALUES (4, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 115: -INSERT INTO "type_UUID" ("i", "u") VALUES (5, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 116: -INSERT INTO "type_UUID" ("i", "u") VALUES (6, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 117: -INSERT INTO "type_UUID" ("i", "u") VALUES (7, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 118: -INSERT INTO "type_UUID" ("i", "u") VALUES (8, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 119: -INSERT INTO "type_UUID" ("i", "u") VALUES (9, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 120: -INSERT INTO "type_UUID" ("i", "u") VALUES (10, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 121: -INSERT INTO "type_UUID" ("i", "u") VALUES (11, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 122: -INSERT INTO "type_UUID" ("i", "u") VALUES (12, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 123: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 124: -INSERT INTO "type_UUID" ("i", "u") VALUES (13, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 125: -INSERT INTO "type_UUID" ("i", "u") VALUES (14, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 126: -INSERT INTO "type_UUID" ("i", "u") VALUES (15, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11', 'hex')); ---Testcase 127: -INSERT INTO "type_UUID" ("i", "u") VALUES (16, decode('b0eebc999c0b4ef8bb6d6bb9bd380a12', 'hex')); ---Testcase 128: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 129: -INSERT INTO "type_UUID" ("i", "u") VALUES (17, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 130: -INSERT INTO "type_UUID" ("i", "u") VALUES (18, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 131: -INSERT INTO "type_UUID" ("i", "u") VALUES (19, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 132: -INSERT INTO "type_UUID" ("i", "u") VALUES (20, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 133: -INSERT INTO "type_UUID" ("i", "u") VALUES (21, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 134: -INSERT INTO "type_UUID" ("i", "u") VALUES (22, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 135: -INSERT INTO "type_UUID" ("i", "u") VALUES (23, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 136: -INSERT INTO "type_UUID" ("i", "u") VALUES (24, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 137: -INSERT INTO "type_UUID" ("i", "u") VALUES (25, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 138: -INSERT INTO "type_UUID" ("i", "u") VALUES (26, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 139: -INSERT INTO "type_UUID" ("i", "u") VALUES (27, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 140: -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 141: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (28, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 142: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (ADD column_type 'BLOB'); ---Testcase 143: -INSERT INTO "type_UUID" ("i", "u") VALUES (29, 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'); ---Testcase 144: -INSERT INTO "type_UUID" ("i", "u") VALUES (30, 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'); ---Testcase 145: -INSERT INTO "type_UUID" ("i", "u") VALUES (31, '{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}'); ---Testcase 146: -INSERT INTO "type_UUID" ("i", "u") VALUES (32, 'a0eebc999c0b4ef8bb6d6bb9bd380a11'); ---Testcase 147: -INSERT INTO "type_UUID" ("i", "u") VALUES (33, 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11'); ---Testcase 148: -INSERT INTO "type_UUID" ("i", "u") VALUES (34, '{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11}'); ---Testcase 149: -INSERT INTO "type_UUID" ("i", "u") VALUES (35, 'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12'); ---Testcase 150: -INSERT INTO "type_UUID" ("i", "u") VALUES (36, 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'); ---Testcase 151: -INSERT INTO "type_UUID" ("i", "u") VALUES (37, '{b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12}'); ---Testcase 152: -INSERT INTO "type_UUID" ("i", "u") VALUES (38, 'b0eebc999c0b4ef8bb6d6bb9bd380a12'); ---Testcase 153: -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 154: -INSERT INTO "type_UUID" ("i", "u") VALUES (40, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a12}'); ---Testcase 155: -EXPLAIN VERBOSE -INSERT INTO "type_UUID" ("i", "u") VALUES (39, 'b0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a12'); ---Testcase 156: -CREATE FOREIGN TABLE "type_UUID+"( "i" int OPTIONS (key 'true'), "u" uuid, "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_UUID+'); ---Testcase 157: -SELECT * FROM "type_UUID+"; ---Testcase 158: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 159: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 160: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 161: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 162: -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 163: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" where "u" = 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11'; ---Testcase 164: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 165: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 166: -SELECT * FROM "type_UUID+" where "u" = 'B0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A12'; ---Testcase 167: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 168: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 169: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 170: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "i" = 25; ---Testcase 171: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 172: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 173: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a12'; ---Testcase 174: -SELECT * FROM "type_UUID+"; ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11'; ---Testcase 176: -SELECT * FROM "type_UUID+"; ---Testcase 177: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'TEXT'); ---Testcase 175: -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 176: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "u" = 'b0eebc999c0b4ef8bb6d6bb9bd380a15'; ---Testcase 177: -SELECT * FROM "type_UUID+"; ---Testcase 178: -INSERT INTO "type_UUID" ("i", "u") VALUES (41, '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'); ---Testcase 179: -SELECT * FROM "type_UUID+" WHERE "i" = 41; ---Testcase 180: -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 181: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}'; ---Testcase 182: -SELECT * FROM "type_UUID+"; ---Testcase 183: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" OPTIONS (SET column_type 'BLOB'); ---Testcase 184: -EXPLAIN VERBOSE -UPDATE "type_UUID" SET "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-bd380a15}' WHERE "u" = '{b0eebc99-9c0b4ef8-bb6d6bb9-00000a15}'; ---Testcase 185: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE bytea; ---Testcase 186: -INSERT INTO "type_UUID" ("i", "u") VALUES (42, decode('a0eebc999c0b4ef8bb6d6bb9bd380a11f1', 'hex')); ---Testcase 187: -INSERT INTO "type_UUID" ("i", "u") VALUES (43, decode('b0eebc999c0b4ef8bb6d6bb9bd380a', 'hex')); ---Testcase 188: -ALTER FOREIGN TABLE "type_UUID" ALTER COLUMN "u" TYPE uuid; ---Testcase 189: -SELECT * FROM "type_UUID+" WHERE "i" = 42; ---Testcase 190: -SELECT * FROM "type_UUID+" WHERE "i" = 43; ---Testcase 191: -EXPLAIN VERBOSE -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 192: -DELETE FROM "type_UUID" WHERE "i" IN (42, 43); ---Testcase 193: -INSERT INTO "type_UUID" ("i", "u") VALUES (44, NULL); ---Testcase 194: -SELECT * FROM "type_UUID+"; ---Testcase 195: -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 196: -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; ---Testcase 197: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NULL; ---Testcase 198: -EXPLAIN VERBOSE -SELECT * FROM "type_UUID+" WHERE "u" IS NOT NULL; - ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); ---Testcase 213: -SELECT * FROM "type_BIT+"; ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); - ---Testcase 232 -SELECT * FROM "type_VARBIT+"; ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/aggregate.sql b/sql/16.0/aggregate.sql index fcc162f5..470dd42b 100644 --- a/sql/16.0/aggregate.sql +++ b/sql/16.0/aggregate.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 18: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; -- test for aggregate pushdown @@ -17,7 +17,7 @@ DROP EXTENSION IF EXISTS sqlite_fdw CASCADE; CREATE EXTENSION sqlite_fdw; --Testcase 11: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 12: CREATE FOREIGN TABLE multiprimary(a int, b int OPTIONS (key 'true'), c int OPTIONS(key 'true')) SERVER sqlite_svr; diff --git a/sql/16.0/extra/aggregates.sql b/sql/16.0/extra/aggregates.sql index 4bd86e22..dde352e7 100644 --- a/sql/16.0/extra/aggregates.sql +++ b/sql/16.0/extra/aggregates.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 267: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 268: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/16.0/extra/bitstring.sql b/sql/16.0/extra/bitstring.sql new file mode 100644 index 00000000..1e28e9f9 --- /dev/null +++ b/sql/16.0/extra/bitstring.sql @@ -0,0 +1,231 @@ +--SET log_min_messages TO DEBUG1; +--SET client_min_messages TO DEBUG1; +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); + +--Testcase 003: +CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; + +--Testcase 02: +CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); +--Testcase 03: +DROP FOREIGN TABLE IF EXISTS "type_BIT+"; +--Testcase 04: +CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); +--Testcase 05: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); +--Testcase 06: type mismatch +INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); +--Testcase 07: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); +--Testcase 08: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); +--Testcase 09: improper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); +--Testcase 10: +INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); +--Testcase 11: +INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); +--Testcase 12: +INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); +--Testcase 13: +INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); +--Testcase 14: type mismatch with proper data length +INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); +--Testcase 15: +SELECT * FROM "type_BIT+"; +--Testcase 16: +SELECT * FROM "type_BIT" WHERE b < '110110'; +--Testcase 17: +SELECT * FROM "type_BIT" WHERE b > '110110'; +--Testcase 18: +SELECT * FROM "type_BIT" WHERE b = '110110'; + +--Testcase 20: +CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); +--Testcase 21: +DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; +--Testcase 22: +CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); +--Testcase 23: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); +--Testcase 24: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); +--Testcase 25: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); +--Testcase 26: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); +--Testcase 27: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); +--Testcase 28: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); +--Testcase 29: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); +--Testcase 30: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); +--Testcase 31: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); +--Testcase 32: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); +--Testcase 33: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); + +--Testcase 34: +SELECT * FROM "type_VARBIT+"; +--Testcase 35: +SELECT * FROM "type_VARBIT+" WHERE b < '110110'; +--Testcase 36: +SELECT * FROM "type_VARBIT+" WHERE b > '110110'; +--Testcase 37: +SELECT * FROM "type_VARBIT+" WHERE b = '110110'; + +--Testcase 38: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); +--Testcase 39: +INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); +--Testcase 40: very long bit string, expected ERROR, 65 bits +INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); +--Testcase 41: +SELECT * FROM "type_VARBIT+" WHERE "i" > 10; + +--Testcase 42: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 43: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 44: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 45: +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 46: +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 47: +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; +--Testcase 48: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 49: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 50: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; +--Testcase 51: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; +--Testcase 52: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; +--Testcase 53: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; + +--Testcase 54: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 55: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 56: +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 57: +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 58: +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 59: +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; +--Testcase 60: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 61: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 62: +EXPLAIN VERBOSE +SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; +--Testcase 63: +EXPLAIN VERBOSE +SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; +--Testcase 64: +EXPLAIN VERBOSE +SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; +--Testcase 65: +EXPLAIN VERBOSE +SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; + +--Testcase 66: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 67: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 68: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 69: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 70: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 71: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 72: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 73: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 74: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 75: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 76: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 77: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 78: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 79: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 80: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 81: +SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; +--Testcase 82: +SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; +--Testcase 83: +SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; +--Testcase 84: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 85: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 86: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 87: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 88: +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 89: +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; +--Testcase 90: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; +--Testcase 91: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; +--Testcase 92: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; +--Testcase 93: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; +--Testcase 94: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; +--Testcase 95: +EXPLAIN VERBOSE +SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; + +--Testcase 005: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/bool.sql b/sql/16.0/extra/bool.sql index d736bae0..c1c58db1 100644 --- a/sql/16.0/extra/bool.sql +++ b/sql/16.0/extra/bool.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 001: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 002: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/16.0/extra/encodings.sql b/sql/16.0/extra/encodings.sql index 63c19191..0cab82a3 100644 --- a/sql/16.0/extra/encodings.sql +++ b/sql/16.0/extra/encodings.sql @@ -40,7 +40,7 @@ -- ================ CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; SELECT * FROM "Unicode data"; DROP FOREIGN TABLE "Unicode data"; @@ -52,7 +52,7 @@ CREATE DATABASE "contrib_regression_EUC_JP" ENCODING EUC_JP LC_CTYPE='ja_JP.eucj \connect "contrib_regression_EUC_JP" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -189,7 +189,7 @@ CREATE DATABASE "contrib_regression_EUC_KR" ENCODING EUC_KR LC_CTYPE='ko_KR.euck \connect "contrib_regression_EUC_KR" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -326,7 +326,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_5" ENCODING ISO_8859_5 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -463,7 +463,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_6" ENCODING ISO_8859_6 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -600,7 +600,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_7" ENCODING ISO_8859_7 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -737,7 +737,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_8" ENCODING ISO_8859_8 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -874,7 +874,7 @@ CREATE DATABASE "contrib_regression_ISO_8859_9" ENCODING ISO_8859_9 LC_CTYPE='PO \connect "contrib_regression_ISO_8859_9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1011,7 +1011,7 @@ CREATE DATABASE "contrib_regression_LATIN1" ENCODING LATIN1 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN1" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1148,7 +1148,7 @@ CREATE DATABASE "contrib_regression_LATIN2" ENCODING LATIN2 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN2" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1285,7 +1285,7 @@ CREATE DATABASE "contrib_regression_LATIN3" ENCODING LATIN3 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN3" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1422,7 +1422,7 @@ CREATE DATABASE "contrib_regression_LATIN4" ENCODING LATIN4 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN4" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1559,7 +1559,7 @@ CREATE DATABASE "contrib_regression_LATIN5" ENCODING LATIN5 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN5" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1696,7 +1696,7 @@ CREATE DATABASE "contrib_regression_LATIN6" ENCODING LATIN6 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN6" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1833,7 +1833,7 @@ CREATE DATABASE "contrib_regression_LATIN7" ENCODING LATIN7 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN7" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -1970,7 +1970,7 @@ CREATE DATABASE "contrib_regression_LATIN8" ENCODING LATIN8 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN8" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2107,7 +2107,7 @@ CREATE DATABASE "contrib_regression_LATIN9" ENCODING LATIN9 LC_CTYPE='POSIX' LC_ \connect "contrib_regression_LATIN9" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2244,7 +2244,7 @@ CREATE DATABASE "contrib_regression_LATIN10" ENCODING LATIN10 LC_CTYPE='POSIX' L \connect "contrib_regression_LATIN10" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2381,7 +2381,7 @@ CREATE DATABASE "contrib_regression_WIN1250" ENCODING WIN1250 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1250" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2518,7 +2518,7 @@ CREATE DATABASE "contrib_regression_WIN1251" ENCODING WIN1251 LC_CTYPE='bg_BG' L \connect "contrib_regression_WIN1251" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2655,7 +2655,7 @@ CREATE DATABASE "contrib_regression_WIN1252" ENCODING WIN1252 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1252" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2792,7 +2792,7 @@ CREATE DATABASE "contrib_regression_WIN1253" ENCODING WIN1253 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1253" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -2929,7 +2929,7 @@ CREATE DATABASE "contrib_regression_WIN1254" ENCODING WIN1254 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1254" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3066,7 +3066,7 @@ CREATE DATABASE "contrib_regression_WIN1255" ENCODING WIN1255 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1255" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3203,7 +3203,7 @@ CREATE DATABASE "contrib_regression_WIN1256" ENCODING WIN1256 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1256" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3341,7 +3341,7 @@ CREATE DATABASE "contrib_regression_WIN1257" ENCODING WIN1257 LC_CTYPE='POSIX' L \connect "contrib_regression_WIN1257" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; @@ -3478,7 +3478,7 @@ CREATE DATABASE "contrib_regression_SQL_ASCII" ENCODING SQL_ASCII LC_CTYPE='POSI \connect "contrib_regression_SQL_ASCII" CREATE EXTENSION sqlite_fdw; CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); CREATE FOREIGN TABLE "Unicode data"(i text OPTIONS (key 'true'), t text) SERVER sqlite_svr; -- EUC_JP SELECT * FROM "Unicode data" WHERE i = 'jap'; diff --git a/sql/16.0/extra/float4.sql b/sql/16.0/extra/float4.sql index 1dbac0fb..ed0be361 100644 --- a/sql/16.0/extra/float4.sql +++ b/sql/16.0/extra/float4.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 47: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 48: CREATE FOREIGN TABLE FLOAT4_TBL(f1 float4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 49: diff --git a/sql/16.0/extra/float8.sql b/sql/16.0/extra/float8.sql index e706abeb..2e1a9d24 100644 --- a/sql/16.0/extra/float8.sql +++ b/sql/16.0/extra/float8.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 114: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 115: CREATE FOREIGN TABLE FLOAT8_TBL(f1 float8 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 116: diff --git a/sql/16.0/extra/insert.sql b/sql/16.0/extra/insert.sql index eeef6e7c..95b28c70 100644 --- a/sql/16.0/extra/insert.sql +++ b/sql/16.0/extra/insert.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 17: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 18: CREATE FOREIGN TABLE inserttest01 (col1 int4, col2 int4 NOT NULL, col3 text default 'testing') SERVER sqlite_svr; --Testcase 1: diff --git a/sql/16.0/extra/int4.sql b/sql/16.0/extra/int4.sql index f79912a2..763cebea 100644 --- a/sql/16.0/extra/int4.sql +++ b/sql/16.0/extra/int4.sql @@ -1,11 +1,11 @@ -- --- INT4 +-- INT4 Based on PostgreSQL tests, please don't add additional tests here, use other test files -- --Testcase 61: CREATE EXTENSION sqlite_fdw; --Testcase 62: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 63: CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; --Testcase 64: diff --git a/sql/16.0/extra/int8.sql b/sql/16.0/extra/int8.sql index e458be60..3989b9e6 100644 --- a/sql/16.0/extra/int8.sql +++ b/sql/16.0/extra/int8.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 141: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 142: CREATE FOREIGN TABLE INT8_TBL( q1 int8 OPTIONS (key 'true'), diff --git a/sql/16.0/extra/join.sql b/sql/16.0/extra/join.sql index 5636b975..77d5bf23 100644 --- a/sql/16.0/extra/join.sql +++ b/sql/16.0/extra/join.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 361: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 362: CREATE FOREIGN TABLE J1_TBL ( diff --git a/sql/16.0/extra/limit.sql b/sql/16.0/extra/limit.sql index 0e7c004d..abdc06e9 100644 --- a/sql/16.0/extra/limit.sql +++ b/sql/16.0/extra/limit.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 28: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 29: CREATE FOREIGN TABLE onek( unique1 int4 OPTIONS (key 'true'), diff --git a/sql/16.0/extra/numeric.sql b/sql/16.0/extra/numeric.sql index 18576e77..25dd6afd 100644 --- a/sql/16.0/extra/numeric.sql +++ b/sql/16.0/extra/numeric.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; diff --git a/sql/16.0/extra/out_of_range.sql b/sql/16.0/extra/out_of_range.sql new file mode 100644 index 00000000..efff8c92 --- /dev/null +++ b/sql/16.0/extra/out_of_range.sql @@ -0,0 +1,118 @@ +-- +-- INT4 + INT2 +-- +--Testcase 001: +CREATE EXTENSION sqlite_fdw; +--Testcase 002: +CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); + +--Testcase 01: +CREATE FOREIGN TABLE INT4_TBL(f1 int4 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 02: +CREATE FOREIGN TABLE INT4_TMP(f1 int4, f2 int4, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 03: +DELETE FROM INT4_TMP; +--Testcase 04: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 05: +INSERT INTO INT4_TMP VALUES (x'7FFFFFFF'::int8 + 1, 0); +--Testcase 06: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 07: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 08: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 09: +DELETE FROM INT4_TMP; +--Testcase 10: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int8; +--Testcase 11: +INSERT INTO INT4_TMP VALUES (-(x'7FFFFFFF'::int8) - 2, 0); +--Testcase 12: +ALTER FOREIGN TABLE INT4_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 13: +SELECT * FROM INT4_TMP; -- overflow +--Testcase 14: +SELECT f1 FROM INT4_TMP; -- overflow + +--Testcase 15: +CREATE FOREIGN TABLE INT2_TBL(f1 int2 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 16: +CREATE FOREIGN TABLE INT2_TMP(f1 int2, f2 int2, id int OPTIONS (key 'true')) SERVER sqlite_svr; + +--Testcase 17: +DELETE FROM INT2_TMP; +--Testcase 18: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 19: +INSERT INTO INT2_TMP VALUES (x'7FFF'::int8 + 1, 0); +--Testcase 20: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 21: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 22: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 23: +DELETE FROM INT2_TMP; +--Testcase 24: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int4; +--Testcase 25: +INSERT INTO INT2_TMP VALUES (-(x'7FFF'::int8) - 2, 0); +--Testcase 26: +ALTER FOREIGN TABLE INT2_TMP ALTER COLUMN f1 TYPE int2; +--Testcase 27: +SELECT * FROM INT2_TMP; -- overflow +--Testcase 28: +SELECT f1 FROM INT2_TMP; -- overflow + +--Testcase 29: +CREATE FOREIGN TABLE INT8_TBL(q1 int8 OPTIONS (key 'true'), q2 int8 OPTIONS (key 'true')) SERVER sqlite_svr; +--Testcase 31: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 32: +INSERT INTO INT8_TBL VALUES (-9223372036854775810, 0); +--Testcase 33: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 34: +SELECT * FROM INT8_TBL; -- NO overflow +--Testcase 35: +SELECT q1 FROM INT8_TBL; -- NO overflow +--Testcase 36: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 37: +DELETE FROM INT8_TBL WHERE q1 = -9223372036854775810; +--Testcase 38: +INSERT INTO INT8_TBL VALUES (9223372036854775809, 0); +--Testcase 39: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 40: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 41: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 42: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 43: +DELETE FROM INT8_TBL WHERE q1 = 9223372036854775809; +--Testcase 44: +INSERT INTO INT8_TBL VALUES (10 * -9223372036854775810, 0); +--Testcase 45: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; +--Testcase 46: +SELECT * FROM INT8_TBL; -- overflow +--Testcase 47: +SELECT q1 FROM INT8_TBL; -- overflow +--Testcase 48: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE double precision; +--Testcase 49: +DELETE FROM INT8_TBL WHERE q1 = 10 * -9223372036854775810; +--Testcase 50: +ALTER FOREIGN TABLE INT8_TBL ALTER COLUMN q1 TYPE int8; + +--Testcase 003: +DROP SERVER sqlite_svr CASCADE; +--Testcase 004: +DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/16.0/extra/prepare.sql b/sql/16.0/extra/prepare.sql index 6cc44fd9..8dd54a30 100644 --- a/sql/16.0/extra/prepare.sql +++ b/sql/16.0/extra/prepare.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 27: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 28: CREATE FOREIGN TABLE tenk1 ( diff --git a/sql/16.0/extra/select.sql b/sql/16.0/extra/select.sql index 2d63b355..ccc055f8 100644 --- a/sql/16.0/extra/select.sql +++ b/sql/16.0/extra/select.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 44: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 45: CREATE FOREIGN TABLE onek ( diff --git a/sql/16.0/extra/select_having.sql b/sql/16.0/extra/select_having.sql index de2b8a16..cdc5060b 100644 --- a/sql/16.0/extra/select_having.sql +++ b/sql/16.0/extra/select_having.sql @@ -6,7 +6,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 23: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 24: CREATE FOREIGN TABLE test_having(a int OPTIONS (key 'true'), b int, c char(8), d char) SERVER sqlite_svr; diff --git a/sql/16.0/extra/sqlite_fdw_post.sql b/sql/16.0/extra/sqlite_fdw_post.sql index f60bdf67..974a7ab2 100644 --- a/sql/16.0/extra/sqlite_fdw_post.sql +++ b/sql/16.0/extra/sqlite_fdw_post.sql @@ -8,11 +8,11 @@ CREATE EXTENSION sqlite_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr2 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; EXECUTE $$CREATE SERVER sqlite_svr3 FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; @@ -152,7 +152,7 @@ SELECT c3, c4 FROM ft1 ORDER BY c3, c1 LIMIT 1; -- should fail DO $d$ BEGIN EXECUTE $$ALTER SERVER sqlite_svr - OPTIONS (SET database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (SET database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; --Testcase 8: @@ -3816,7 +3816,7 @@ SHOW is_superuser; DO $d$ BEGIN EXECUTE $$CREATE SERVER sqlite_nopw FOREIGN DATA WRAPPER sqlite_fdw - OPTIONS (database '/tmp/sqlitefdw_test_post.db')$$; + OPTIONS (database '/tmp/sqlite_fdw_test/post.db')$$; END; $d$; diff --git a/sql/16.0/extra/timestamp.sql b/sql/16.0/extra/timestamp.sql index 288bdd29..4e7bba12 100644 --- a/sql/16.0/extra/timestamp.sql +++ b/sql/16.0/extra/timestamp.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 3: CREATE FOREIGN TABLE dates1 ( name varchar(20), diff --git a/sql/16.0/extra/update.sql b/sql/16.0/extra/update.sql index 6b510169..9194d5a5 100644 --- a/sql/16.0/extra/update.sql +++ b/sql/16.0/extra/update.sql @@ -5,7 +5,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 33: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_core.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/core.db'); --Testcase 34: CREATE FOREIGN TABLE update_test ( diff --git a/sql/16.0/extra/uuid.sql b/sql/16.0/extra/uuid.sql index b83505f2..59084be0 100644 --- a/sql/16.0/extra/uuid.sql +++ b/sql/16.0/extra/uuid.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; diff --git a/sql/16.0/selectfunc.sql b/sql/16.0/selectfunc.sql index 3db3d875..62e740c4 100644 --- a/sql/16.0/selectfunc.sql +++ b/sql/16.0/selectfunc.sql @@ -5,7 +5,7 @@ SET timezone='Japan'; CREATE EXTENSION sqlite_fdw; --Testcase 2: CREATE SERVER server1 FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test_selectfunc.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/selectfunc.db'); --CREATE USER MAPPING FOR CURRENT_USER SERVER server1 OPTIONS(user 'user', password 'pass'); --IMPORT FOREIGN SCHEMA public FROM SERVER server1 INTO public OPTIONS(import_time_text 'false'); diff --git a/sql/16.0/sqlite_fdw.sql b/sql/16.0/sqlite_fdw.sql index 8b1fa77e..eac0b891 100644 --- a/sql/16.0/sqlite_fdw.sql +++ b/sql/16.0/sqlite_fdw.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 130: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 131: CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true'), department_name text) SERVER sqlite_svr; --Testcase 132: diff --git a/sql/16.0/type.sql b/sql/16.0/type.sql index 8133bd79..e5145c8d 100644 --- a/sql/16.0/type.sql +++ b/sql/16.0/type.sql @@ -4,7 +4,7 @@ CREATE EXTENSION sqlite_fdw; --Testcase 45: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw -OPTIONS (database '/tmp/sqlitefdw_test.db'); +OPTIONS (database '/tmp/sqlite_fdw_test/common.db'); --Testcase 46: CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw; @@ -260,227 +260,5 @@ SELECT * FROM "type_DOUBLE"; -- OK --Testcase 107: ALTER FOREIGN TABLE "type_DOUBLE" ALTER COLUMN col TYPE float8; ---Testcase 199: -DROP FOREIGN TABLE IF EXISTS "type_BIT"; ---Testcase 200: -CREATE FOREIGN TABLE "type_BIT"( "i" int OPTIONS (key 'true'), "b" bit(6)) SERVER sqlite_svr OPTIONS (table 'type_BIT'); ---Testcase 201: -DROP FOREIGN TABLE IF EXISTS "type_BIT+"; ---Testcase 202: -CREATE FOREIGN TABLE "type_BIT+"( "i" int OPTIONS (key 'true'), "b" bit(6), "t" text, "l" smallint, "bi" bigint OPTIONS (column_name 'b')) SERVER sqlite_svr OPTIONS (table 'type_BIT+'); ---Testcase 203: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (1, 1); ---Testcase 204: type mismatch -INSERT INTO "type_BIT" ("i", "b") VALUES (2, 2); ---Testcase 205: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (3, '1'); ---Testcase 206: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (4, '10'); ---Testcase 207: improper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (5, '101'); ---Testcase 208: -INSERT INTO "type_BIT" ("i", "b") VALUES (6, '110110'); ---Testcase 209: -INSERT INTO "type_BIT" ("i", "b") VALUES (7, '111001'); ---Testcase 210: -INSERT INTO "type_BIT" ("i", "b") VALUES (8, '110000'); ---Testcase 211: -INSERT INTO "type_BIT" ("i", "b") VALUES (9, '100001'); ---Testcase 212: type mismatch with proper data length -INSERT INTO "type_BIT" ("i", "b") VALUES (10, 53); ---Testcase 213: -SELECT * FROM "type_BIT+"; ---Testcase 214: -SELECT * FROM "type_BIT" WHERE b < '110110'; ---Testcase 215: -SELECT * FROM "type_BIT" WHERE b > '110110'; ---Testcase 216: -SELECT * FROM "type_BIT" WHERE b = '110110'; - ---Testcase 217: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT"; ---Testcase 218: -CREATE FOREIGN TABLE "type_VARBIT"( "i" int OPTIONS (key 'true'), "b" varbit(70)) SERVER sqlite_svr OPTIONS (table 'type_VARBIT'); ---Testcase 219: -DROP FOREIGN TABLE IF EXISTS "type_VARBIT+"; ---Testcase 220: -CREATE FOREIGN TABLE "type_VARBIT+"( "i" int OPTIONS (key 'true'), "b" varbit(70), "t" text, "l" smallint) SERVER sqlite_svr OPTIONS (table 'type_VARBIT+'); ---Testcase 221: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (1, '1'); ---Testcase 222: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (2, '10'); ---Testcase 223: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (3, '11'); ---Testcase 224: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (4, '100'); ---Testcase 225: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (5, '101'); ---Testcase 226: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (6, '110110'); ---Testcase 227: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (7, '111001'); ---Testcase 228: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (8, '110000'); ---Testcase 229: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (9, '100001'); ---Testcase 230: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (10, '0100100101011001010010101000111110110101101101111011000101010'); ---Testcase 231: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (11, '01001001010110010100101010001111101101011011011110110001010101'); - ---Testcase 232 -SELECT * FROM "type_VARBIT+"; ---Testcase 233: -SELECT * FROM "type_VARBIT+" WHERE b < '110110'; ---Testcase 234: -SELECT * FROM "type_VARBIT+" WHERE b > '110110'; ---Testcase 235: -SELECT * FROM "type_VARBIT+" WHERE b = '110110'; - ---Testcase 236: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (12, '010010010101100101001010100011111011010110110111101100010101010'); ---Testcase 237: -INSERT INTO "type_VARBIT" ("i", "b") VALUES (13, '0100100101011001010010101000111110110101101101111011000101010101'); ---Testcase 238: very long bit string, expected ERROR, 65 bits -INSERT INTO "type_VARBIT" ("i", "b") VALUES (14, '01001001010110010100101010001111101101011011011110110001010101010'); ---Testcase 239: -SELECT * FROM "type_VARBIT+" WHERE "i" > 10; - ---Testcase 240: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 241: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 242: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 243: -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 244: -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 245: -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; ---Testcase 246: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 247: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 248: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_BIT" b1 INNER JOIN "type_BIT" b2 ON true; ---Testcase 249: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_BIT"; ---Testcase 250: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_BIT"; ---Testcase 251: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_BIT"; - ---Testcase 252: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 253: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 254: -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 255: -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 256: -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 257: -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; ---Testcase 258: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" | b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 259: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" & b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 260: -EXPLAIN VERBOSE -SELECT b1."i" "i₁", b1."b" "b₁", b2."i" "i₂", b2."b" "b₂", b1."b" # b2."b" "res" FROM "type_VARBIT" b1 INNER JOIN "type_VARBIT" b2 ON true; ---Testcase 261: -EXPLAIN VERBOSE -SELECT "i", "b", "b" >> 2 "res" FROM "type_VARBIT"; ---Testcase 262: -EXPLAIN VERBOSE -SELECT "i", "b", "b" << 3 "res" FROM "type_VARBIT"; ---Testcase 263: -EXPLAIN VERBOSE -SELECT "i", "b", ~ "b" "res" FROM "type_VARBIT"; - ---Testcase 264: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 265: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 266: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 267: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 268: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 269: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 270: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 271: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 272: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 273: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 274: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 275: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 276: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 277: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 278: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - ---Testcase 279: -SELECT "i", "b", "b" & B'101011' "res" FROM "type_BIT"; ---Testcase 280: -SELECT "i", "b", "b" | B'101011' "res" FROM "type_BIT"; ---Testcase 281: -SELECT "i", "b", "b" # B'101011' "res" FROM "type_BIT"; ---Testcase 282: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 283: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 284: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 285: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 286: -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 287: -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; ---Testcase 288: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" & B'101011') IS NOT NULL; ---Testcase 289: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" | B'101011') IS NOT NULL; ---Testcase 290: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" # B'101011') IS NOT NULL; ---Testcase 291: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" >> 1) IS NOT NULL; ---Testcase 292: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE ("b" << 2) IS NOT NULL; ---Testcase 293: -EXPLAIN VERBOSE -SELECT "i", "b" FROM "type_BIT" WHERE (~ "b") IS NOT NULL; - --Testcase 47: DROP EXTENSION sqlite_fdw CASCADE; diff --git a/sql/init_data/init_core.sql b/sql/init_data/init_core.sql index aaeceb36..5e20da74 100644 --- a/sql/init_data/init_core.sql +++ b/sql/init_data/init_core.sql @@ -6,6 +6,8 @@ DROP TABLE IF EXISTS FLOAT8_TBL; DROP TABLE IF EXISTS FLOAT8_TMP; DROP TABLE IF EXISTS "type_FLOAT_INF"; DROP VIEW IF EXISTS "type_FLOAT_INF+"; +DROP TABLE IF EXISTS INT2_TBL; +DROP TABLE IF EXISTS INT2_TMP; DROP TABLE IF EXISTS INT4_TBL; DROP TABLE IF EXISTS INT4_TMP; DROP TABLE IF EXISTS INT8_TBL; @@ -21,8 +23,10 @@ CREATE TABLE FLOAT4_TBL (f1 REAL); CREATE TABLE FLOAT4_TMP (f1 REAL, id integer primary key autoincrement); CREATE TABLE FLOAT8_TBL(f1 DOUBLE PRECISION); CREATE TABLE FLOAT8_TMP (f1 DOUBLE PRECISION, f2 DOUBLE PRECISION, id integer primary key autoincrement); +CREATE TABLE INT2_TBL(f1 int2); +CREATE TABLE INT2_TMP (f1 int2, f2 smallint, id integer primary key autoincrement); CREATE TABLE INT4_TBL(f1 int4); -CREATE TABLE INT4_TMP (f1 int4, f2 int, id integer primary key autoincrement); +CREATE TABLE INT4_TMP (f1 int4, f2 int, id integer primary key autoincrement); CREATE TABLE INT8_TBL( q1 int8, q2 int8, @@ -37,7 +41,6 @@ CREATE TABLE INT8_TMP( id integer primary key autoincrement ); -CREATE TABLE INT2_TBL(f1 int2); --Testcase 1: INSERT INTO INT2_TBL(f1) VALUES ('0 '); --Testcase 2: @@ -163,14 +166,14 @@ CREATE TABLE dates ( CREATE TABLE btg(id int primary key, p int, v text, c float, d float, e int); .separator "\t" -.import /tmp/onek.data onek -.import /tmp/onek.data onek2 -.import /tmp/tenk.data tenk1 -.import /tmp/agg.data aggtest -.import /tmp/student.data student -.import /tmp/person.data person -.import /tmp/streets.data road -.import /tmp/datetimes.data dates +.import /tmp/sqlite_fdw_test/onek.data onek +.import /tmp/sqlite_fdw_test/onek.data onek2 +.import /tmp/sqlite_fdw_test/tenk.data tenk1 +.import /tmp/sqlite_fdw_test/agg.data aggtest +.import /tmp/sqlite_fdw_test/student.data student +.import /tmp/sqlite_fdw_test/person.data person +.import /tmp/sqlite_fdw_test/streets.data road +.import /tmp/sqlite_fdw_test/datetimes.data dates --Testcase 7: INSERT INTO tenk2 SELECT * FROM tenk1; diff --git a/sqlite_fdw.c b/sqlite_fdw.c index 39abb0ad..d602a68c 100644 --- a/sqlite_fdw.c +++ b/sqlite_fdw.c @@ -14,16 +14,23 @@ #include "sqlite_fdw.h" #include -#include -#include "access/reloptions.h" -#include "access/htup_details.h" -#include "access/sysattr.h" +#include "catalog/pg_collation.h" +#include "catalog/pg_type.h" +#include "commands/defrem.h" +#include "commands/explain.h" #include "foreign/fdwapi.h" -#include "foreign/foreign.h" +#include "funcapi.h" +#include "mb/pg_wchar.h" +#include "miscadmin.h" +#include "nodes/makefuncs.h" +#include "nodes/nodeFuncs.h" +#if (PG_VERSION_NUM < 140000) + #include "optimizer/clauses.h" +#endif #include "optimizer/pathnode.h" #if PG_VERSION_NUM >= 120000 -#include "optimizer/appendinfo.h" + #include "optimizer/appendinfo.h" #endif #include "optimizer/planmain.h" #include "optimizer/planner.h" @@ -31,45 +38,24 @@ #if (PG_VERSION_NUM >= 130010 && PG_VERSION_NUM < 140000) || \ (PG_VERSION_NUM >= 140007 && PG_VERSION_NUM < 150000) || \ (PG_VERSION_NUM >= 150002) -#include "optimizer/inherit.h" + #include "optimizer/inherit.h" #endif -#include "optimizer/clauses.h" -#include "optimizer/restrictinfo.h" #include "optimizer/paths.h" #include "optimizer/prep.h" #include "optimizer/restrictinfo.h" #include "optimizer/tlist.h" -#include "funcapi.h" +#include "parser/parsetree.h" +#include "parser/parse_type.h" +#include "storage/ipc.h" #include "utils/builtins.h" #include "utils/formatting.h" -#include "utils/rel.h" -#include "utils/lsyscache.h" -#include "utils/array.h" -#include "utils/date.h" -#include "utils/hsearch.h" -#include "utils/timestamp.h" #include "utils/guc.h" -#include "utils/memutils.h" -#include "catalog/pg_collation.h" -#include "catalog/pg_foreign_server.h" -#include "catalog/pg_foreign_table.h" -#include "catalog/pg_user_mapping.h" -#include "catalog/pg_aggregate.h" -#include "catalog/pg_type.h" -#include "commands/defrem.h" -#include "commands/explain.h" -#include "commands/vacuum.h" -#include "storage/ipc.h" -#include "miscadmin.h" -#include "nodes/makefuncs.h" -#include "nodes/nodeFuncs.h" -#include "parser/parsetree.h" -#include "utils/typcache.h" +#include "utils/lsyscache.h" #include "utils/selfuncs.h" + extern PGDLLEXPORT void _PG_init(void); -bool sqlite_load_library(void); static void sqlite_fdw_exit(int code, Datum arg); PG_MODULE_MAGIC; @@ -400,6 +386,9 @@ static List *sqlite_get_useful_pathkeys_for_relation(PlannerInfo *root, #if PG_VERSION_NUM >= 140000 static int sqlite_get_batch_size_option(Relation rel); #endif +static void conversion_error_callback(void *arg); +static int32 sqlite_affinity_eqv_to_pgtype(Oid type); +const char* sqlite_datatype(int t); /* Callback argument for sqlite_ec_member_matches_foreign */ typedef struct @@ -408,6 +397,18 @@ typedef struct List *already_used; /* expressions already dealt with */ } ec_member_foreign_arg; +/* + * Identify the attribute where data conversion fails. + */ +typedef struct ConversionLocation +{ + AttrNumber cur_attno; /* attribute number being processed, or 0 */ + Relation rel; /* foreign table being processed, or NULL */ + ForeignScanState *fsstate; /* plan node being processed, or NULL */ + Form_pg_attribute att; /* PostgreSQL relation attribute */ + sqlite3_value *val; /* abstract SQLite value to get affinity, length and text value */ +} ConversionLocation; + /* * Library load-time initialization, sets on_proc_exit() callback for * backend shutdown. @@ -1469,8 +1470,6 @@ sqliteBeginForeignScan(ForeignScanState *node, int eflags) EState *estate = node->ss.ps.state; ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; int numParams; - ForeignTable *table; - ForeignServer *server; RangeTblEntry *rte; int rtindex; @@ -1516,14 +1515,14 @@ sqliteBeginForeignScan(ForeignScanState *node, int eflags) /* Get info about foreign table. */ festate->rel = node->ss.ss_currentRelation; - table = GetForeignTable(rte->relid); - server = GetForeignServer(table->serverid); + festate->table = GetForeignTable(rte->relid); + festate->server = GetForeignServer(festate->table->serverid); /* * Get the already connected connection, otherwise connect and get the * connection handle. */ - conn = sqlite_get_connection(server, false); + conn = sqlite_get_connection(festate->server, false); /* Stash away the state info we have already */ festate->query = strVal(list_nth(fsplan->fdw_private, FdwScanPrivateSelectSql)); @@ -1557,7 +1556,7 @@ sqliteBeginForeignScan(ForeignScanState *node, int eflags) festate->stmt = NULL; /* Prepare Sqlite statement */ - sqlite_prepare_wrapper(server, festate->conn, festate->query, &festate->stmt, NULL, true); + sqlite_prepare_wrapper(festate->server, festate->conn, festate->query, &festate->stmt, NULL, true); /* Prepare for output conversion of parameters used in remote query. */ numParams = list_length(fsplan->fdw_exprs); @@ -1578,8 +1577,11 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, List *retrieved_attrs, Datum *row, bool *is_null, - SqliteFdwExecState * festate) + SqliteFdwExecState * festate, + ForeignScanState *node) { + ConversionLocation errpos; + ErrorContextCallback errcallback; ListCell *lc = NULL; int stmt_colid = 0; NullableDatum sqlite_coverted; @@ -1587,12 +1589,29 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, memset(row, 0, sizeof(Datum) * tupleDescriptor->natts); memset(is_null, true, sizeof(bool) * tupleDescriptor->natts); + /* + * Set up and install callback to report where conversion error occurs. + */ + errpos.cur_attno = 0; + errpos.att = NULL; + errpos.rel = festate->rel; + errpos.fsstate = node; + errpos.val = NULL; + errcallback.callback = conversion_error_callback; + errcallback.arg = (void *) &errpos; + errcallback.previous = error_context_stack; + error_context_stack = &errcallback; + foreach(lc, retrieved_attrs) { - int attnum = lfirst_int(lc) - 1; - Form_pg_attribute att = TupleDescAttr(tupleDescriptor, attnum); - int sqlite_value_affinity = sqlite3_column_type(stmt, stmt_colid); - + int attnum = lfirst_int(lc) - 1; + Form_pg_attribute att = TupleDescAttr(tupleDescriptor, attnum); + sqlite3_value *val = sqlite3_column_value(stmt, stmt_colid); + int sqlite_value_affinity = sqlite3_value_type(val); + + errpos.cur_attno = attnum; + errpos.att = att; + errpos.val = val; if ( sqlite_value_affinity != SQLITE_NULL) { /* TODO: Processing of column options about special convert behaviour @@ -1604,7 +1623,7 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, * Flags about special convert behaviour from options on database, table or column level */ - sqlite_coverted = sqlite_convert_to_pg(att, stmt, stmt_colid, + sqlite_coverted = sqlite_convert_to_pg(att, val, festate->attinmeta, attnum, sqlite_value_affinity, AffinityBehaviourFlags); @@ -1617,6 +1636,8 @@ make_tuple_from_result_row(sqlite3_stmt * stmt, } stmt_colid++; } + /* Uninstall error context callback. */ + error_context_stack = errcallback.previous; } /* @@ -1684,7 +1705,8 @@ sqliteIterateForeignScan(ForeignScanState *node) tupleDescriptor, festate->retrieved_attrs, festate->rows[festate->row_nums], festate->rows_isnull[festate->row_nums], - festate); + festate, + node); festate->row_nums++; @@ -1718,8 +1740,12 @@ sqliteIterateForeignScan(ForeignScanState *node) if (SQLITE_ROW == rc) { make_tuple_from_result_row(festate->stmt, - tupleDescriptor, festate->retrieved_attrs, - tupleSlot->tts_values, tupleSlot->tts_isnull, festate); + tupleDescriptor, + festate->retrieved_attrs, + tupleSlot->tts_values, + tupleSlot->tts_isnull, + festate, + node); ExecStoreVirtualTuple(tupleSlot); } else if (SQLITE_DONE == rc) @@ -2010,8 +2036,6 @@ sqliteBeginForeignModify(ModifyTableState *mtstate, bool isvarlena = false; ListCell *lc = NULL; Oid foreignTableId = InvalidOid; - ForeignTable *table; - ForeignServer *server; Plan *subplan; int i; @@ -2024,9 +2048,6 @@ sqliteBeginForeignModify(ModifyTableState *mtstate, subplan = mtstate->mt_plans[subplan_index]->plan; #endif - table = GetForeignTable(foreignTableId); - server = GetForeignServer(table->serverid); - /* * Do nothing in EXPLAIN (no ANALYZE) case. resultRelInfon->ri_FdwState * stays NULL. @@ -2036,8 +2057,10 @@ sqliteBeginForeignModify(ModifyTableState *mtstate, fmstate = (SqliteFdwExecState *) palloc0(sizeof(SqliteFdwExecState)); fmstate->rel = rel; + fmstate->table = GetForeignTable(foreignTableId); + fmstate->server = GetForeignServer(fmstate->table->serverid); - fmstate->conn = sqlite_get_connection(server, false); + fmstate->conn = sqlite_get_connection(fmstate->server, false); fmstate->query = strVal(list_nth(fdw_private, FdwModifyPrivateUpdateSql)); fmstate->target_attrs = (List *) list_nth(fdw_private, FdwModifyPrivateTargetAttnums); fmstate->retrieved_attrs = (List *) list_nth(fdw_private, FdwModifyPrivateTargetAttnums); @@ -2086,7 +2109,7 @@ sqliteBeginForeignModify(ModifyTableState *mtstate, fmstate->num_slots = 1; /* Prepare sqlite statment */ - sqlite_prepare_wrapper(server, fmstate->conn, fmstate->query, &fmstate->stmt, NULL, true); + sqlite_prepare_wrapper(fmstate->server, fmstate->conn, fmstate->query, &fmstate->stmt, NULL, true); resultRelInfo->ri_FdwState = fmstate; @@ -2572,8 +2595,6 @@ sqliteBeginDirectModify(ForeignScanState *node, int eflags) EState *estate = node->ss.ps.state; SqliteFdwDirectModifyState *dmstate; Index rtindex; - ForeignTable *table; - ForeignServer *server; int numParams; elog(DEBUG1, "sqlite_fdw : %s", __func__); @@ -2608,14 +2629,14 @@ sqliteBeginDirectModify(ForeignScanState *node, int eflags) dmstate->rel = ExecOpenScanRelation(estate, rtindex, eflags); else dmstate->rel = node->ss.ss_currentRelation; - table = GetForeignTable(RelationGetRelid(dmstate->rel)); - server = GetForeignServer(table->serverid); + dmstate->table = GetForeignTable(RelationGetRelid(dmstate->rel)); + dmstate->server = GetForeignServer(dmstate->table->serverid); /* * Get connection to the foreign server. Connection manager will * establish new connection if necessary. */ - dmstate->conn = sqlite_get_connection(server, false); + dmstate->conn = sqlite_get_connection(dmstate->server, false); /* Update the foreign-join-related fields. */ if (fsplan->scan.scanrelid == 0) @@ -2657,11 +2678,11 @@ sqliteBeginDirectModify(ForeignScanState *node, int eflags) "sqlite_fdw temporary data", ALLOCSET_SMALL_SIZES); - /* Initialize the Sqlite statement */ + /* Initialize the SQLite statement */ dmstate->stmt = NULL; - /* Prepare Sqlite statement */ - sqlite_prepare_wrapper(server, dmstate->conn, dmstate->query, &dmstate->stmt, NULL, true); + /* Prepare SQLite statement */ + sqlite_prepare_wrapper(dmstate->server, dmstate->conn, dmstate->query, &dmstate->stmt, NULL, true); /* * Prepare for processing of parameters used in remote query, if any. @@ -5258,11 +5279,9 @@ sqlite_execute_insert(EState *estate, if (fmstate->num_slots != *numSlots) { StringInfoData sql; - ForeignTable *table; - ForeignServer *server; - table = GetForeignTable(RelationGetRelid(fmstate->rel)); - server = GetForeignServer(table->serverid); + fmstate->table = GetForeignTable(RelationGetRelid(fmstate->rel)); + fmstate->server = GetForeignServer(fmstate->table->serverid); fmstate->stmt = NULL; initStringInfo(&sql); @@ -5272,7 +5291,7 @@ sqlite_execute_insert(EState *estate, fmstate->query = sql.data; fmstate->num_slots = *numSlots; - sqlite_prepare_wrapper(server, fmstate->conn, fmstate->query, &fmstate->stmt, NULL, true); + sqlite_prepare_wrapper(fmstate->server, fmstate->conn, fmstate->query, &fmstate->stmt, NULL, true); } #endif @@ -5400,11 +5419,11 @@ sqlite_process_query_params(ExprContext *econtext, expr_value = ExecEvalExpr(expr_state, econtext, &isNull, NULL); #endif /* Bind parameters */ - att = malloc(sizeof(FormData_pg_attribute)); + att = palloc(sizeof(FormData_pg_attribute)); att->atttypid = param_types[i]; att->atttypmod = -1; sqlite_bind_sql_var(att, i, expr_value, *stmt, &isNull, foreignTableId); - free(att); + pfree(att); /* * Get string sentation of each parameter value by invoking * type-specific output function, unless the value is null. @@ -5690,3 +5709,274 @@ sqliteIsForeignRelUpdatable(Relation rel) return updatable ? (1 << CMD_INSERT) | (1 << CMD_UPDATE) | (1 << CMD_DELETE) : 0; } + +/* + * sqlite_affinity_eqv_to_pgtype: + * Give nearest SQLite data affinity for PostgreSQL data type + */ +static int32 +sqlite_affinity_eqv_to_pgtype(Oid type) +{ + switch (type) + { + case INT2OID: + case INT4OID: + case INT8OID: + case BOOLOID: + case BITOID: + case VARBITOID: + return SQLITE_INTEGER; + case FLOAT4OID: + case FLOAT8OID: + case NUMERICOID: + return SQLITE_FLOAT; + case BYTEAOID: + case UUIDOID: + return SQLITE_BLOB; + default: + return SQLITE3_TEXT; + } +} + +/* + * sqlite_datatype + * Give equivalent string for SQLite data affinity by int from enum + * SQLITE_INTEGER etc. + */ +const char* +sqlite_datatype(int t) +{ + static const char *azType[] = { "?", "integer", "real", "text", "blob", "null" }; + switch (t) + { + case SQLITE_INTEGER: + return azType[1]; + case SQLITE_FLOAT: + return azType[2]; + case SQLITE3_TEXT: + return azType[3]; + case SQLITE_BLOB: + return azType[4]; + case SQLITE_NULL: + return azType[5]; + default: + return azType[0]; + } +} + +/* + * Callback function which is called when error occurs during column value + * conversion. Print names of column and relation, SQLite value details. + * + * Note that this function mustn't do any catalog lookups, since we are in + * an already-failed transaction. Fortunately, we can get the needed info + * from the relation or the query's rangetable instead. + */ +static void +conversion_error_callback(void *arg) +{ + ConversionLocation *errpos = (ConversionLocation *) arg; + Relation rel = errpos->rel; + ForeignScanState *fsstate = errpos->fsstate; + const char *attname = NULL; + const char *relname = NULL; + bool is_wholerow = false; + Form_pg_attribute att = errpos->att; + Oid pgtyp = att->atttypid; + int32 pgtypmod = att->atttypmod; + NameData pgColND = att->attname; + const char *pg_dataTypeName = NULL; + const char *sqlite_affinity = NULL; + const char *pg_good_affinity = NULL; + const int max_logged_byte_length = NAMEDATALEN * 2; + int value_byte_size_blob_or_utf8 = sqlite3_value_bytes (errpos->val); + int value_aff = sqlite3_value_type(errpos->val); + int affinity_for_pg_column = sqlite_affinity_eqv_to_pgtype(pgtyp); + + pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(pgtyp, pgtypmod)); + sqlite_affinity = sqlite_datatype(value_aff); + pg_good_affinity = sqlite_datatype(affinity_for_pg_column); + + /* + * If we're in a scan node, always use aliases from the rangetable, for + * consistency between the simple-relation and remote-join cases. Look at + * the relation's tupdesc only if we're not in a scan node. + */ + if (fsstate) + { + /* ForeignScan case */ + ForeignScan *fsplan = castNode(ForeignScan, fsstate->ss.ps.plan); + int varno = 0; + AttrNumber colno = 0; + + if (fsplan->scan.scanrelid > 0) + { + /* error occurred in a scan against a foreign table */ + varno = fsplan->scan.scanrelid; + colno = errpos->cur_attno; + } + else + { + /* error occurred in a scan against a foreign join */ + TargetEntry *tle; + + tle = list_nth_node(TargetEntry, fsplan->fdw_scan_tlist, + errpos->cur_attno - 1); + + /* + * Target list can have Vars and expressions. For Vars, we can + * get some information, however for expressions we can't. Thus + * for expressions, just show generic context message. + */ + if (IsA(tle->expr, Var)) + { + Var *var = (Var *) tle->expr; + + varno = var->varno; + colno = var->varattno; + } + } + + if (varno > 0) + { + EState *estate = fsstate->ss.ps.state; + RangeTblEntry *rte = exec_rt_fetch(varno, estate); + + relname = rte->eref->aliasname; + + if (colno == 0) + is_wholerow = true; + else if (colno > 0 && colno <= list_length(rte->eref->colnames)) + attname = strVal(list_nth(rte->eref->colnames, colno - 1)); + else if (colno == SelfItemPointerAttributeNumber) + attname = "ctid"; + } + } + else if (rel) + { + /* Non-ForeignScan case (we should always have a rel here) */ + TupleDesc tupdesc = RelationGetDescr(rel); + + relname = RelationGetRelationName(rel); + if (errpos->cur_attno > 0 && errpos->cur_attno <= tupdesc->natts) + { + Form_pg_attribute attr = TupleDescAttr(tupdesc, + errpos->cur_attno - 1); + + attname = NameStr(attr->attname); + } + else if (errpos->cur_attno == SelfItemPointerAttributeNumber) + attname = "ctid"; + } + + { + /* + * Error HINT block + */ + char *err_hint_mess0 = palloc(max_logged_byte_length * 2 + 1024); /* The longest hint message */ + char *err_hint_mess; + char *value_text = NULL; + bool sqlite_value_as_hex_code = value_byte_size_blob_or_utf8 < max_logged_byte_length && ((GetDatabaseEncoding() != PG_UTF8 && value_aff == SQLITE3_TEXT) || (value_aff == SQLITE_BLOB)); + + /* Print problem SQLite value only for + * - integer, + * - float, + * - short BLOBs, + * - short text if database encoding is UTF-8 + * incorrect output otherwise possible: UTF-8 in SQLite, but not supported charcters in PostgreSQL + */ + if ((value_byte_size_blob_or_utf8 < max_logged_byte_length && GetDatabaseEncoding() == PG_UTF8 && value_aff == SQLITE3_TEXT) + || value_aff == SQLITE_INTEGER + || value_aff == SQLITE_FLOAT) + value_text = (char *)sqlite3_value_text(errpos->val); + + if (sqlite_value_as_hex_code) + { + const unsigned char *vt = sqlite3_value_text(errpos->val); + value_text = palloc (max_logged_byte_length * 2 + 1); + for (size_t i = 0; i < value_byte_size_blob_or_utf8; ++i) + sprintf(value_text + i * 2, "%02x", vt[i]); + } + + err_hint_mess = err_hint_mess0; + err_hint_mess += sprintf( + err_hint_mess, + "SQLite value with \"%s\" affinity ", + sqlite_affinity + ); + if (value_aff == SQLITE3_TEXT || value_aff == SQLITE_BLOB ) + err_hint_mess += sprintf( + err_hint_mess, + "(%d bytes) ", + value_byte_size_blob_or_utf8 ); + if (value_text != NULL) + { + if (sqlite_value_as_hex_code) + err_hint_mess += sprintf( + err_hint_mess, + "in hex : %s", + value_text ); + else if (value_aff != SQLITE_INTEGER && value_aff != SQLITE_FLOAT) + err_hint_mess += sprintf( + err_hint_mess, + ": '%s'", + value_text ); + else + err_hint_mess += sprintf( + err_hint_mess, + ": %s", + value_text ); + } + + err_hint_mess[1] = '\0'; + errhint("%s", err_hint_mess0); + pfree(err_hint_mess0); + if (sqlite_value_as_hex_code) + pfree((char *)value_text); + } + + { + /* + * Error CONTEXT block + */ + char *err_cont_mess0 = palloc(4 * NAMEDATALEN + 64); /* The longest context message */ + char *err_cont_mess; + + err_cont_mess = err_cont_mess0; + err_cont_mess = err_cont_mess + sprintf( + err_cont_mess, + "foreign table \"%s\" foreign column \"%.*s\" have data type \"%s\" (usual affinity \"%s\"), ", + relname, + (int)sizeof(pgColND.data), + pgColND.data, + pg_dataTypeName, + pg_good_affinity + ); + if (relname && is_wholerow) + { + err_cont_mess = err_cont_mess + sprintf( + err_cont_mess, + "in query there is whole-row reference to foreign table" + ); + } + else if (relname && attname) + { + err_cont_mess = err_cont_mess + sprintf( + err_cont_mess, + "in query there is reference to foreign column" + ); + } + else + { + err_cont_mess = err_cont_mess + sprintf( + err_cont_mess, + "processing expression at position %d in select list", + errpos->cur_attno + ); + } + + err_cont_mess[1] = '\0'; + errcontext("%s", err_cont_mess0); + pfree(err_cont_mess0); + } +} diff --git a/sqlite_fdw.h b/sqlite_fdw.h index 901fb2ba..dd27dd24 100644 --- a/sqlite_fdw.h +++ b/sqlite_fdw.h @@ -128,6 +128,8 @@ typedef struct SqliteFdwPathExtraData */ typedef struct SQLiteFdwExecState { + ForeignServer *server; /* Foreign server handle */ + ForeignTable *table; /* Foreign scan deal with this foreign table */ sqlite3 *conn; /* SQLite connection handle */ sqlite3_stmt *stmt; /* SQLite prepared stament handle */ char *query; /* Query string */ @@ -168,8 +170,8 @@ typedef struct SQLiteFdwExecState /* working memory context */ MemoryContext temp_cxt; /* context for per-tuple temporary data */ AttrNumber *junk_idx; -} SqliteFdwExecState; +} SqliteFdwExecState; typedef struct SqliteFdwRelationInfo { @@ -265,6 +267,9 @@ typedef struct SqliteFdwRelationInfo */ typedef struct SqliteFdwDirectModifyState { + ForeignServer *server; /* Foreign server handle */ + ForeignTable *table; /* Foreign scan deal with this foreign table */ + Relation rel; /* relcache entry for the foreign table */ AttInMetadata *attinmeta; /* attribute datatype conversion metadata */ @@ -375,7 +380,7 @@ void sqlite_rel_connection(sqlite3 * conn); void sqlitefdw_report_error(int elevel, sqlite3_stmt * stmt, sqlite3 * conn, const char *sql, int rc); void sqlite_cache_stmt(ForeignServer *server, sqlite3_stmt * *stmt); -NullableDatum sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags); +NullableDatum sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_value * val, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags); void sqlite_bind_sql_var(Form_pg_attribute att, int attnum, Datum value, sqlite3_stmt * stmt, bool *isnull, Oid relid); extern void sqlite_do_sql_command(sqlite3 * conn, const char *sql, int level, List **busy_connection); @@ -383,6 +388,7 @@ extern void sqlite_do_sql_command(sqlite3 * conn, const char *sql, int level, Li void sqlite_fdw_data_norm_functs_init(sqlite3* db); /* sqlite_query.c haders */ -sqlite3_int64 binstr2int64(const char *s); +sqlite3_int64 + binstr2int64(const char *s); #endif /* SQLITE_FDW_H */ diff --git a/sqlite_query.c b/sqlite_query.c index aa6c9a81..2b02b6bd 100644 --- a/sqlite_query.c +++ b/sqlite_query.c @@ -13,49 +13,60 @@ #include "postgres.h" #include "sqlite_fdw.h" -#include #include #include "catalog/pg_type_d.h" +#include "commands/defrem.h" +#include "mb/pg_wchar.h" +#include "nodes/makefuncs.h" +#include "parser/parse_type.h" #include "utils/builtins.h" #include "utils/lsyscache.h" -#include "utils/uuid.h" #include "utils/timestamp.h" -#include "nodes/makefuncs.h" -#include "catalog/pg_type.h" -#include "parser/parse_type.h" -#include "mb/pg_wchar.h" -#include "commands/defrem.h" +#include "utils/uuid.h" + -static int32 - sqlite_affinity_eqv_to_pgtype(Oid pgtyp); -static const char* - sqlite_datatype(int t); -static void - sqlite_value_to_pg_error (Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, int sqlite_value_affinity, int affinity_for_pg_column, int value_byte_size_blob_or_utf8); static char * get_column_option_string(Oid relid, int varattno, char *optionname); int sqlite_bind_blob_algo (int attnum, Datum value, sqlite3_stmt * stmt); static char * - sqlite_text_value_to_pg_db_encoding(sqlite3_stmt * stmt, int stmt_colid); -static void - pg_column_void_text_error (Form_pg_attribute att); + sqlite_text_value_to_pg_db_encoding(sqlite3_value *val); static char * int642binstr(sqlite3_int64 num, char *s, size_t len); +/* + * Human readable message about disallowed combination of PostgreSQL columnn + * data type and SQLite data value affinity + */ +static void +sqlite_value_to_pg_error() +{ + ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), + errmsg("SQLite value is not compatible with PostgreSQL column data type"))); +} + +/* + * Human readable message about disallowed void text for the PostgreSQL columnn + */ +static void +pg_column_void_text_error() +{ + ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), + errmsg("Void text disallowed this column"))); +} + /* * convert_sqlite_to_pg: Convert Sqlite data into PostgreSQL's compatible data types */ NullableDatum -sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags) +sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_value * val, AttInMetadata *attinmeta, AttrNumber attnum, int sqlite_value_affinity, int AffinityBehaviourFlags) { Oid pgtyp = att->atttypid; Datum value_datum = 0; char *valstr = NULL; - int affinity_for_pg_column = sqlite_affinity_eqv_to_pgtype(pgtyp); /* Compute always, void text and void BLOB will be special cases */ - int value_byte_size_blob_or_utf8 = sqlite3_column_bytes(stmt, stmt_colid); + int value_byte_size_blob_or_utf8 = sqlite3_value_bytes(val); switch (pgtyp) { @@ -65,26 +76,26 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - int value = sqlite3_column_int(stmt, stmt_colid); + int value = sqlite3_value_int(val); return (struct NullableDatum){BoolGetDatum(value), false}; } case SQLITE_FLOAT: case SQLITE_BLOB: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } } @@ -98,14 +109,14 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, case SQLITE_FLOAT: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE_BLOB: /* <-- proper and recommended SQLite affinity of value for pgtyp */ case SQLITE3_TEXT: /* threated as UTF-8 text BLOB */ { value_datum = (Datum) palloc0(value_byte_size_blob_or_utf8 + VARHDRSZ); - memcpy(VARDATA(value_datum), sqlite3_column_blob(stmt, stmt_colid), value_byte_size_blob_or_utf8); + memcpy(VARDATA(value_datum), sqlite3_value_blob(val), value_byte_size_blob_or_utf8); SET_VARSIZE(value_datum, value_byte_size_blob_or_utf8 + VARHDRSZ); return (struct NullableDatum) {PointerGetDatum((const void *)value_datum), false}; } @@ -118,22 +129,23 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - int value = sqlite3_column_int(stmt, stmt_colid); - return (struct NullableDatum) {Int16GetDatum(value), false}; + sqlite_int64 i64v = sqlite3_value_int64(val); + Datum d = DirectFunctionCall1(int82, Int64GetDatum((int64) i64v)); + return (struct NullableDatum) {d, false}; } case SQLITE_FLOAT: case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } @@ -145,12 +157,13 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - int value = sqlite3_column_int(stmt, stmt_colid); - return (struct NullableDatum) {Int32GetDatum(value), false}; + sqlite_int64 i64v = sqlite3_value_int64(val); + Datum d = DirectFunctionCall1(int84, Int64GetDatum((int64) i64v)); + return (struct NullableDatum) {d, false}; } case SQLITE_FLOAT: /* TODO: This code is untill mod() pushdowning fix here*/ { - int value = sqlite3_column_int(stmt, stmt_colid); + int value = sqlite3_value_int(val); elog(DEBUG2, "sqlite_fdw : real aff. was readed for pg int32"); return (struct NullableDatum) {Int32GetDatum(value), false}; @@ -158,15 +171,15 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, stmt_colid, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } @@ -178,28 +191,28 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - sqlite3_int64 value = sqlite3_column_int64(stmt, stmt_colid); + sqlite3_int64 value = sqlite3_value_int64(val); return (struct NullableDatum) {Int64GetDatum(value), false}; } case SQLITE_FLOAT: /* TODO: This code is untill mod() pushdowning fix here*/ { - int value = sqlite3_column_int(stmt, stmt_colid); - + double value = sqlite3_value_double(val); + Datum d = DirectFunctionCall1(dtoi8, Float8GetDatum((float8) value)); elog(DEBUG2, "sqlite_fdw : real aff. was readed for pg int64"); - return (struct NullableDatum) {Int32GetDatum(value), false}; + return (struct NullableDatum) {d, false}; } case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } @@ -211,22 +224,23 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_FLOAT: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - double value = sqlite3_column_double(stmt, stmt_colid); - return (struct NullableDatum) {Float4GetDatum((float4) value), false}; + double value = sqlite3_value_double(val); + Datum d = DirectFunctionCall1(dtof, Float8GetDatum((float8)value)); + return (struct NullableDatum) {d, false}; } case SQLITE_INTEGER: case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } @@ -238,22 +252,22 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_FLOAT: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - double value = sqlite3_column_double(stmt, stmt_colid); + double value = sqlite3_value_double(val); return (struct NullableDatum) {Float8GetDatum((float8) value), false}; } case SQLITE_INTEGER: case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } @@ -276,27 +290,28 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, { case SQLITE_INTEGER: { - Timestamp value = (Timestamp)sqlite3_column_int64(stmt, stmt_colid); + Timestamp value = (Timestamp)sqlite3_value_int64(val); return (struct NullableDatum) {TimestampGetDatum(value), false}; } case SQLITE_FLOAT: { - double value = sqlite3_column_double(stmt, stmt_colid); + double value = sqlite3_value_double(val); Datum d = DirectFunctionCall1(float8_timestamptz, Float8GetDatum((float8) value)); return (struct NullableDatum) {d, false}; } case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - valstr = sqlite_text_value_to_pg_db_encoding(stmt, stmt_colid); + valstr = sqlite_text_value_to_pg_db_encoding(val); + /* !!! use valstr later! */ else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } @@ -309,7 +324,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, case SQLITE_INTEGER: case SQLITE_FLOAT: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { - double value = sqlite3_column_double(stmt, stmt_colid); + double value = sqlite3_value_double(val); valstr = DatumGetCString(DirectFunctionCall1(float8out, Float8GetDatum((float8) value))); break; /* !!! use valstr later! */ @@ -317,37 +332,36 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, case SQLITE_BLOB: default: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } case SQLITE3_TEXT: { if (value_byte_size_blob_or_utf8) - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); else - pg_column_void_text_error(att); + pg_column_void_text_error(); break; } } break; } - case UUIDOID: - { + case UUIDOID: + { switch (sqlite_value_affinity) { case SQLITE_INTEGER: case SQLITE_FLOAT: { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); + sqlite_value_to_pg_error(); break; } - case SQLITE_BLOB: /* <-- first proper and recommended SQLite affinity of value for pgtyp */ + case SQLITE_BLOB: /* <-- proper and recommended SQLite affinity of value for pgtyp */ { if (value_byte_size_blob_or_utf8 != UUID_LEN) { ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("PostgreSQL uuid data type allows only %d bytes SQLite blob value", UUID_LEN), - errhint("incorrect value is %d bytes length", value_byte_size_blob_or_utf8))); + errmsg("PostgreSQL uuid data type allows only %d bytes SQLite blob value", UUID_LEN))); break; } else @@ -355,42 +369,68 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, const unsigned char * sqlite_blob = 0; pg_uuid_t *retval = (pg_uuid_t *) palloc0(sizeof(pg_uuid_t)); - sqlite_blob = sqlite3_column_blob(stmt, stmt_colid); + sqlite_blob = sqlite3_value_blob(val); memcpy(retval->data, sqlite_blob, UUID_LEN); return (struct NullableDatum){UUIDPGetDatum(retval), false}; break; } } - case SQLITE3_TEXT: /* <-- second proper and recommended SQLite affinity of value for pgtyp */ - { - if (value_byte_size_blob_or_utf8) - /* SQLite UUID normalization added C function always get blob - * form, of UUID, hence this case should cause error - */ - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); - else - pg_column_void_text_error(att); - break; - } + /* SQLite UUID output always normalized to blob. + * In sqlite_data_norm.c there is special additional C function. + */ + case SQLITE3_TEXT: + { + if (value_byte_size_blob_or_utf8) + sqlite_value_to_pg_error(); + else + pg_column_void_text_error(); + break; + } default: - { - sqlite_value_to_pg_error (att, stmt, attnum, sqlite_value_affinity, affinity_for_pg_column, value_byte_size_blob_or_utf8); - break; - } + { + sqlite_value_to_pg_error(); + break; + } } break; } case VARBITOID: case BITOID: { - char * buffer = (char *) palloc0(SQLITE_FDW_BIT_DATATYPE_BUF_SIZE); - sqlite3_int64 sqlti = sqlite3_column_int64(stmt, stmt_colid); + switch (sqlite_value_affinity) + { + case SQLITE_INTEGER: /* <-- proper and recommended SQLite affinity of value for pgtyp */ + { + char * buffer = (char *) palloc0(SQLITE_FDW_BIT_DATATYPE_BUF_SIZE); + sqlite3_int64 sqlti = sqlite3_value_int64(val); - buffer = int642binstr(sqlti, buffer, SQLITE_FDW_BIT_DATATYPE_BUF_SIZE); - valstr = buffer; - elog(DEBUG4, "sqlite_fdw : BIT buf l=%ld v = %s", SQLITE_FDW_BIT_DATATYPE_BUF_SIZE, buffer); - break; - } + buffer = int642binstr(sqlti, buffer, SQLITE_FDW_BIT_DATATYPE_BUF_SIZE); + elog(DEBUG4, "sqlite_fdw : BIT buf l=%ld v = %s", SQLITE_FDW_BIT_DATATYPE_BUF_SIZE, buffer); + valstr = buffer; + break; /* !!! use valstr later! */ + } + case SQLITE_FLOAT: + case SQLITE_BLOB: + { + sqlite_value_to_pg_error(); + break; + } + case SQLITE3_TEXT: + { + if (value_byte_size_blob_or_utf8) + sqlite_value_to_pg_error(); + else + pg_column_void_text_error(); + break; + } + default: + { + sqlite_value_to_pg_error(); + break; + } + } + break; + } /* some popular datatypes for default algorythm branch * case BPCHAROID: * case VARCHAROID: @@ -401,7 +441,7 @@ sqlite_convert_to_pg(Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, */ default: { - valstr = sqlite_text_value_to_pg_db_encoding(stmt, stmt_colid); + valstr = sqlite_text_value_to_pg_db_encoding(val); } } /* convert string value to appropriate type value */ @@ -448,7 +488,6 @@ get_column_option_string(Oid relid, int varattno, char *optionname) foreach(lc, options) { DefElem *def = (DefElem *) lfirst(lc); - if (strcmp(def->defname, optionname) == 0) { coloptionvalue = defGetString(def); @@ -569,7 +608,6 @@ sqlite_bind_sql_var(Form_pg_attribute att, int attnum, Datum value, sqlite3_stmt case UUIDOID: { bool uuid_as_blob = false; - if (relid) { char * optv = get_column_option_string (relid, attnum, "column_type"); @@ -639,120 +677,19 @@ sqlite_bind_sql_var(Form_pg_attribute att, int attnum, Datum value, sqlite3_stmt } } -/* - * Give nearest SQLite data affinity for PostgreSQL data type - */ -static int32 -sqlite_affinity_eqv_to_pgtype(Oid type) -{ - switch (type) - { - case INT2OID: - case INT4OID: - case INT8OID: - case BOOLOID: - return SQLITE_INTEGER; - case FLOAT4OID: - case FLOAT8OID: - case NUMERICOID: - return SQLITE_FLOAT; - case BYTEAOID: - case UUIDOID: - return SQLITE_BLOB; - default: - return SQLITE3_TEXT; - } -} - -/* - * Give equivalent string for SQLite data affinity by int from enum - * SQLITE_INTEGER etc. - */ -static const char* -sqlite_datatype(int t) -{ - static const char *azType[] = { "?", "integer", "real", "text", "blob", "null" }; - switch (t) - { - case SQLITE_INTEGER: - return azType[1]; - case SQLITE_FLOAT: - return azType[2]; - case SQLITE3_TEXT: - return azType[3]; - case SQLITE_BLOB: - return azType[4]; - case SQLITE_NULL: - return azType[5]; - default: - return azType[0]; - } -} - -/* - * Human readable message about disallowed combination of PostgreSQL columnn - * data type and SQLite data value affinity - */ -static void -sqlite_value_to_pg_error (Form_pg_attribute att, sqlite3_stmt * stmt, int stmt_colid, int sqlite_value_affinity, int affinity_for_pg_column, int value_byte_size_blob_or_utf8) -{ - Oid pgtyp = att->atttypid; - int32 pgtypmod = att->atttypmod; - NameData pgColND = att->attname; - const char *sqlite_affinity = 0; - const char *pg_eqv_affinity = 0; - const char *pg_dataTypeName = 0; - const int max_logged_byte_length = NAMEDATALEN; - - pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(pgtyp, pgtypmod)); - sqlite_affinity = sqlite_datatype(sqlite_value_affinity); - pg_eqv_affinity = sqlite_datatype(affinity_for_pg_column); - - if (value_byte_size_blob_or_utf8 < max_logged_byte_length) - { - const unsigned char *text_value = sqlite3_column_text(stmt, stmt_colid); - ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("SQLite data affinity \"%s\" disallowed for PostgreSQL data type \"%s\"", sqlite_affinity, pg_dataTypeName), - errhint("In column \"%.*s\" expected SQLite affinity \"%s\", incorrect value = '%s'", (int)sizeof(pgColND.data), pgColND.data, pg_eqv_affinity, text_value))); - } - else - { - ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("SQLite data affinity \"%s\" disallowed for PostgreSQL data type \"%s\"", sqlite_affinity, pg_dataTypeName), - errhint("In column \"%.*s\" expected SQLite affinity \"%s\", a long incorrect value (%d bytes)", (int)sizeof(pgColND.data), pgColND.data, pg_eqv_affinity, value_byte_size_blob_or_utf8))); - } -} - -/* - * Human readable message about disallowed void text for the PostgreSQL columnn - */ -static void -pg_column_void_text_error (Form_pg_attribute att) -{ - Oid pgtyp = att->atttypid; - int32 pgtypmod = att->atttypmod; - NameData pgColND = att->attname; - const char *pg_dataTypeName = 0; - - pg_dataTypeName = TypeNameToString(makeTypeNameFromOid(pgtyp, pgtypmod)); - ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("Void text disallowed for PostgreSQL \"%s\" column", pg_dataTypeName), - errhint("Column name \"%.*s\"", (int)sizeof(pgColND.data), pgColND.data))); -} - static char * -sqlite_text_value_to_pg_db_encoding(sqlite3_stmt * stmt, int stmt_colid) +sqlite_text_value_to_pg_db_encoding(sqlite3_value *val) { int pg_database_encoding = GetDatabaseEncoding(); /* very fast call, see PostgreSQL mbutils.c */ char *utf8_text_value; /* Text from this SQLite function is always UTF-8, * see https://www.sqlite.org/c3ref/column_blob.html */ - utf8_text_value = (char *) sqlite3_column_text(stmt, stmt_colid); + utf8_text_value = (char *) sqlite3_value_text(val); if (pg_database_encoding == PG_UTF8) return utf8_text_value; else - /* There is no UTF16 in PostgreSQL for fast sqlite3_column_text16, hence always convert */ + /* There is no UTF16 in PostgreSQL for fast sqlite3_value_text16, hence always convert */ return (char *) pg_do_encoding_conversion((unsigned char *) utf8_text_value, strlen(utf8_text_value), PG_UTF8, pg_database_encoding); } @@ -764,10 +701,10 @@ static char * int642binstr(sqlite3_int64 num, char *s, size_t len) { s[--len] = '\0'; - do + do s[--len] = ((num & 1) ? '1' : '0'); while ((num >>= 1) != 0); - return s + len; + return s + len; } /* @@ -776,25 +713,24 @@ int642binstr(sqlite3_int64 num, char *s, size_t len) sqlite3_int64 binstr2int64(const char *s) { - sqlite3_int64 rc = 0; + sqlite3_int64 rc = 0; char *bs = (char *)s; - for (; '\0' != *bs; bs++) - { + for (; '\0' != *bs; bs++) + { if ('1' == *bs) { - rc = (rc * 2) + 1; - } - else if ('0' == *bs) - { - rc *= 2; - } - else - { + rc = (rc * 2) + 1; + } + else if ('0' == *bs) + { + rc *= 2; + } + else + { ereport(ERROR, (errcode(ERRCODE_FDW_INVALID_DATA_TYPE), - errmsg("Not 0 or 1 in bit string"), - errhint("value: %s", s))); - } - } - return rc; + errmsg("Not 0 or 1 in bit string"))); + } + } + return rc; } diff --git a/test.sh b/test.sh index c921421b..fbf8b350 100755 --- a/test.sh +++ b/test.sh @@ -1,14 +1,14 @@ -rm -rf /tmp/sqlitefdw_test*.db; -rm -rf /tmp/*.data; -rm -rf /tmp/sqlitefdw_test*.db; -cp -a sql/init_data/*.data /tmp/; +testdir='/tmp/sqlite_fdw_test'; +rm -rf "$testdir"; +mkdir "$testdir"; +cp -a sql/init_data/*.data "$testdir"; -sqlite3 /tmp/sqlitefdw_test_post.db < sql/init_data/init_post.sql; -sqlite3 /tmp/sqlitefdw_test_core.db < sql/init_data/init_core.sql; -sqlite3 /tmp/sqlitefdw_test.db < sql/init_data/init.sql; -sqlite3 /tmp/sqlitefdw_test_selectfunc.db < sql/init_data/init_selectfunc.sql; +sqlite3 "$testdir/post.db" < sql/init_data/init_post.sql; +sqlite3 "$testdir/core.db" < sql/init_data/init_core.sql; +sqlite3 "$testdir/common.db" < sql/init_data/init.sql; +sqlite3 "$testdir/selectfunc.db" < sql/init_data/init_selectfunc.sql; -sed -i 's/REGRESS =.*/REGRESS = extra\/sqlite_fdw_post extra\/float4 extra\/float8 extra\/int4 extra\/int8 extra\/numeric extra\/join extra\/limit extra\/aggregates extra\/prepare extra\/select_having extra\/select extra\/insert extra\/update extra\/timestamp extra\/encodings extra\/bool extra\/uuid sqlite_fdw type aggregate selectfunc /' Makefile +sed -i 's/REGRESS =.*/REGRESS = extra\/sqlite_fdw_post extra\/float4 extra\/float8 extra\/int4 extra\/int8 extra\/numeric extra\/out_of_range extra\/bitstring extra\/join extra\/limit extra\/aggregates extra\/prepare extra\/select_having extra\/select extra\/insert extra\/update extra\/timestamp extra\/encodings extra\/bool extra\/uuid sqlite_fdw type aggregate selectfunc /' Makefile make clean; make $1;