2014-05-06 00:48:48 +08:00
|
|
|
SET
|
|
|
|
CREATE FUNCTION
|
|
|
|
SELECT 1
|
2014-05-12 19:07:47 +08:00
|
|
|
ERROR: Please set user quota before cartodbfying tables.
|
|
|
|
0
|
2014-05-06 00:48:48 +08:00
|
|
|
single non-geometrical column cartodbfied fine
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
2016-03-08 19:10:46 +08:00
|
|
|
check function idempotence cartodbfied fine
|
2016-03-08 21:06:58 +08:00
|
|
|
1|0101000020E6100000000000000000F0BF000000000000F0BF|0101000020110F0000DB0B4ADA772DFBC077432E49D22DFBC0|this is a sentence
|
2016-03-08 19:10:46 +08:00
|
|
|
check function idempotence cartodbfied fine
|
2016-03-08 21:06:58 +08:00
|
|
|
1|0101000020E6100000000000000000F0BF000000000000F0BF|0101000020110F0000DB0B4ADA772DFBC077432E49D22DFBC0|this is a sentence
|
2016-03-08 19:10:46 +08:00
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
2014-05-06 00:48:48 +08:00
|
|
|
srid-unconstrained the_geom cartodbfied fine
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 2
|
|
|
|
mixed-srid the_geom cartodbfied fine
|
|
|
|
extent|BOX(-1 -1,0 0)
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
|
|
|
wrong srid-constrained the_geom cartodbfied fine
|
|
|
|
extent|BOX(1 1,2 2)|BOX(111319 111325,222639 222684)
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
|
|
|
wrong srid-constrained the_geom_webmercator cartodbfied fine
|
|
|
|
extent|BOX(1 1,2 2)
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
|
|
|
CREATE TRIGGER
|
|
|
|
trigger-protected the_geom cartodbfied fine
|
|
|
|
extent|BOX(1 1,2 2)
|
|
|
|
DROP TABLE
|
2014-05-22 19:10:42 +08:00
|
|
|
SELECT 1
|
2016-03-02 00:45:15 +08:00
|
|
|
text cartodb_id cartodbfied fine
|
2016-03-02 22:52:57 +08:00
|
|
|
5
|
2016-03-02 00:45:15 +08:00
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
2016-03-08 21:06:58 +08:00
|
|
|
ERROR: CDB(_CDB_Has_Usable_Primary_ID: Error: invalid cartodb_id, cartodb_id): ALTER TABLE t ADD CONSTRAINT cartodb_id_pk PRIMARY KEY (cartodb_id), ADD CONSTRAINT cartodb_id_integer CHECK (cartodb_id::integer >=0);
|
2016-03-02 00:45:15 +08:00
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
2016-03-08 21:06:58 +08:00
|
|
|
ERROR: CDB(_CDB_Has_Usable_Primary_ID: Error: invalid cartodb_id, cartodb_id): ALTER TABLE t ADD CONSTRAINT cartodb_id_pk PRIMARY KEY (cartodb_id), ADD CONSTRAINT cartodb_id_integer CHECK (cartodb_id::integer >=0);
|
2016-03-08 18:58:30 +08:00
|
|
|
|
2016-03-02 00:45:15 +08:00
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
2014-05-28 16:44:23 +08:00
|
|
|
unsequenced cartodb_id cartodbfied fine
|
|
|
|
1
|
|
|
|
DROP TABLE
|
2015-08-22 04:10:05 +08:00
|
|
|
SELECT 1
|
|
|
|
text the_geom column cartodbfied fine
|
|
|
|
1
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
|
|
|
text the_geom column, no srs cartodbfied fine
|
|
|
|
1
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
|
|
|
text the_geom column, srs = 26819 cartodbfied fine
|
|
|
|
1
|
|
|
|
DROP TABLE
|
|
|
|
SELECT 1
|
|
|
|
text the_geom column, unparseable content cartodbfied fine
|
|
|
|
1
|
|
|
|
DROP TABLE
|
2014-05-31 01:09:24 +08:00
|
|
|
CREATE TABLE
|
2014-06-12 01:21:19 +08:00
|
|
|
cartodb_id serial primary key cartodbfied fine
|
|
|
|
t_pkey|cartodb_id
|
|
|
|
DROP TABLE
|
2015-08-27 22:33:46 +08:00
|
|
|
CREATE TABLE
|
|
|
|
original
|
|
|
|
ALTER TABLE
|
|
|
|
CREATE TABLE
|
|
|
|
original
|
|
|
|
DROP TABLE
|
|
|
|
DROP TABLE
|
2015-09-07 22:28:35 +08:00
|
|
|
CREATE TABLE
|
2015-09-10 00:27:29 +08:00
|
|
|
Table always have a default seq value after cartodbfy #138 cartodbfied fine
|
2015-09-07 22:28:35 +08:00
|
|
|
INSERT 0 1
|
|
|
|
DROP TABLE
|
2015-09-10 00:27:29 +08:00
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 3
|
|
|
|
Existing cartodb_id values are respected #138 cartodbfied fine
|
2015-09-11 00:18:13 +08:00
|
|
|
10|||a|
|
|
|
|
20|||b|
|
|
|
|
30|||c|
|
2015-09-10 00:27:29 +08:00
|
|
|
DROP TABLE
|
2015-09-16 01:14:06 +08:00
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 2
|
|
|
|
Table with both the_geom and wkb_geometry #141 cartodbfied fine
|
|
|
|
1|0104000020E61000000100000001010000007108B023698052C03CEEA53A2E5D4440|0104000020110F00000100000001010000004A9F662B456D5FC11392690DC3F75241|
|
|
|
|
2|0104000020E6100000010000000101000000864C9E57618052C0994F0C7F3C5B4440|0104000020110F00000100000001010000002858E0EC376D5FC1CAE8DB4B95F55241|
|
|
|
|
DROP TABLE
|
2015-09-16 18:09:32 +08:00
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 1
|
2016-03-08 21:06:58 +08:00
|
|
|
ERROR: CDB(_CDB_Has_Usable_Primary_ID: multiple primary keys for table "many_colliding_columns" are not allowed): ALTER TABLE many_colliding_columns ADD CONSTRAINT cartodb_id_pk PRIMARY KEY (cartodb_id), ADD CONSTRAINT cartodb_id_integer CHECK (cartodb_id::integer >=0);
|
2015-09-16 18:09:32 +08:00
|
|
|
DROP TABLE
|
2015-09-30 00:03:20 +08:00
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 4
|
2016-03-08 21:06:58 +08:00
|
|
|
ERROR: CDB(_CDB_Has_Usable_Primary_ID: Error: invalid cartodb_id, cartodb_id): ALTER TABLE test ADD CONSTRAINT cartodb_id_pk PRIMARY KEY (cartodb_id), ADD CONSTRAINT cartodb_id_integer CHECK (cartodb_id::integer >=0);
|
2016-03-08 18:58:30 +08:00
|
|
|
1
|
|
|
|
2
|
|
|
|
|
|
|
|
3
|
2015-09-30 00:03:20 +08:00
|
|
|
DROP TABLE
|
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 3
|
2016-03-08 21:06:58 +08:00
|
|
|
ERROR: CDB(_CDB_Has_Usable_Primary_ID: Error: invalid cartodb_id, cartodb_id): ALTER TABLE test ADD CONSTRAINT cartodb_id_pk PRIMARY KEY (cartodb_id), ADD CONSTRAINT cartodb_id_integer CHECK (cartodb_id::integer >=0);
|
2016-03-08 18:58:30 +08:00
|
|
|
1
|
|
|
|
2
|
|
|
|
2
|
2015-09-30 00:03:20 +08:00
|
|
|
DROP TABLE
|
|
|
|
CREATE TABLE
|
|
|
|
INSERT 0 4
|
2016-03-08 21:06:58 +08:00
|
|
|
ERROR: CDB(_CDB_Has_Usable_Primary_ID: Error: invalid cartodb_id, cartodb_id): ALTER TABLE test ADD CONSTRAINT cartodb_id_pk PRIMARY KEY (cartodb_id), ADD CONSTRAINT cartodb_id_integer CHECK (cartodb_id::integer >=0);
|
2016-03-08 18:58:30 +08:00
|
|
|
1
|
|
|
|
2
|
|
|
|
|
|
|
|
2
|
2015-09-30 00:03:20 +08:00
|
|
|
DROP TABLE
|
2015-11-20 19:24:46 +08:00
|
|
|
CREATE TABLE
|
2015-11-20 19:56:52 +08:00
|
|
|
CREATE INDEX
|
|
|
|
CREATE INDEX
|
|
|
|
ALTER TABLE
|
|
|
|
INSERT 0 3
|
|
|
|
Table with primary key and unique index on it #174 cartodbfied fine
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
DROP TABLE
|
|
|
|
CREATE TABLE
|
2015-11-20 19:24:46 +08:00
|
|
|
INSERT 0 2
|
|
|
|
Table with dots in name columns (cartodb #6114) cartodbfied fine
|
|
|
|
one|1
|
|
|
|
two|3
|
|
|
|
DROP TABLE
|
2015-11-06 22:11:08 +08:00
|
|
|
SET
|
2015-10-31 00:49:27 +08:00
|
|
|
CREATE TABLE
|
2015-11-06 22:11:08 +08:00
|
|
|
NOTICE: Column cartodb_id already exists
|
|
|
|
NOTICE: Existing cartodb_id field does not have an associated sequence, renaming
|
|
|
|
NOTICE: Trying to recover data from _cartodb_id0 column
|
2015-10-31 00:49:27 +08:00
|
|
|
|
2015-11-02 18:47:14 +08:00
|
|
|
DROP TABLE
|
|
|
|
CREATE TABLE
|
2015-11-06 22:11:08 +08:00
|
|
|
NOTICE: Column cartodb_id already exists
|
|
|
|
NOTICE: Existing cartodb_id field is of invalid type text (need int2, int4 or int8), renaming
|
|
|
|
NOTICE: Trying to recover data from _cartodb_id0 column
|
2015-11-02 18:47:14 +08:00
|
|
|
|
2015-10-31 00:49:27 +08:00
|
|
|
DROP TABLE
|
2015-11-06 22:11:08 +08:00
|
|
|
SET
|
2017-06-29 21:58:17 +08:00
|
|
|
BEGIN
|
|
|
|
DO
|
|
|
|
ROLLBACK
|
2014-05-06 00:48:48 +08:00
|
|
|
DROP FUNCTION
|
2014-05-12 19:07:47 +08:00
|
|
|
DROP FUNCTION
|