Javier Goizueta
5963c67376
Order the columns of a cartodbfied table consistently
...
The final order of the columns of a cartodbfied table wasn't uniquely specified, so could vary across PG versions.
This was a problem in particular for having deterministic test results.
2019-07-03 16:16:37 +02:00
Raul Marin
c45ef6c540
Fully qualify function calls
2019-05-31 15:37:15 +02:00
Mario de Frutos
c9f4685e5d
Fix error with hyphens, moving logic to the Format part
2018-03-21 16:33:05 +01:00
Mario de Frutos
f96c334f48
Fixed a trucate problem with the seq rename. See #325
2018-03-21 12:05:56 +01:00
Paul Ramsey
4050555801
Quiet errors where there's no existing sequence
2018-01-18 10:26:01 -08:00
Paul Ramsey
e4b0e7ea7a
Make user final seq has the right desired name
2018-01-18 10:06:38 -08:00
Paul Ramsey
a79c2cb7a8
draft tweek on seq handling
2018-01-18 09:27:46 -08:00
Raul Marin
0abc2ba250
Add PARALLEL parameter to functions
2017-11-13 09:35:20 +01:00
Carla
90fa45b59d
Remove casting to bigint
2016-03-16 11:03:46 +01:00
Carla
0b8bada553
Remove unused variable
2016-03-09 11:54:59 +01:00
Carla Iriberri
7b48c2765e
Fix error detection and fix tests
2016-03-08 14:06:58 +01:00
Carla Iriberri
d495bd45ba
Merge branch 'cartodbfication_cartodb_id_text' of https://github.com/CartoDB/cartodb-postgresql into cartodbfication_cartodb_id_text
2016-03-08 11:59:00 +01:00
Carla Iriberri
f4b51807a1
Make cartodb_id inconsistencies fail and update tests
2016-03-08 11:58:30 +01:00
Carla
5bc725c8ab
Add drop function if exists
2016-03-03 16:58:31 +01:00
Carla Iriberri
76a2cb9132
Improve exception error message
2016-03-02 17:36:45 +01:00
Carla Iriberri
a18cbeb2cd
Third iteration, expect a viable cartodb_id
2016-03-02 14:58:53 +01:00
Carla Iriberri
0d5f83b3c4
Rewriting function
2016-03-01 19:17:45 +01:00
Carla Iriberri
1198454046
Better exception handling
2016-03-01 17:43:21 +01:00
Carla Iriberri
32307ceef0
Add support to detect string cartodb_id columns
2016-03-01 15:24:40 +01:00
Javier Goizueta
68099e780c
Merge remote-tracking branch 'origin' into 174_cartodbfy
2015-11-24 16:29:32 +01:00
Javier Goizueta
83ac8f4502
Fix: Allow dots in column names to be cartodbfied
...
This fixes #6144 of cartodb
Note that prior commit ea9503bd32
only added the tests for this, but not the actual fix (oops)
2015-11-20 13:05:15 +01:00
Javier Goizueta
a0ca2288f4
Fix: Cartodbfication failed with existing PK
...
This fixes #174
When a unique index and a primary key contraint existed for a column
named cartodb_id cartodbfy tried to add another PK constraint
2015-11-20 12:56:52 +01:00
Guido Fioravantti
cce63f0eae
Adds ::integer cast for USING 155
2015-11-06 16:26:03 +01:00
Guido Fioravantti
081ed36aae
Fixes NULL max in rec 155
2015-11-02 11:47:14 +01:00
Guido Fioravantti
453b3af872
Removes extra d in delimiter 155
2015-10-30 17:49:27 +01:00
Guido Fioravantti
8734608792
Removes unnecessary salt 173
2015-10-26 18:25:48 +01:00
Guido Fioravantti
270d5b3146
Remove code from deprecated methods 173
2015-10-26 15:50:19 +01:00
Guido Fioravantti
b4acfeca22
Fixes Typo in throwing exception 173
2015-10-23 10:38:24 +02:00
Guido Fioravantti
aed8671e77
Uses underscore prefix for private tables 173
2015-10-22 19:00:18 +02:00
Guido Fioravantti
58deeb088d
Raises error on deprecated methods.
2015-10-22 18:56:50 +02:00
Guido Fioravantti
8479c3375b
Adds CDB_Unique_Column_Identifier for columns 173
2015-10-22 17:01:47 +02:00
Guido Fioravantti
5dfe56a664
Moves new CDB_Unique_Identifier and _CDB_Octet_Trim to CDB_Helper.sql file
2015-10-22 12:38:00 +02:00
Guido Fioravantti
5f46ff10e9
Doc change 172
2015-10-21 17:35:13 +02:00
Guido Fioravantti
7c14dd8212
Adds new functions to generate length aware identifiers 172
2015-10-21 17:33:01 +02:00
Guido Fioravantti
3429e93979
Makes cartodbfy check for null cartodb_id
2015-09-29 18:04:00 +02:00
Rafa de la Torre
5ea1b7d4d7
Fix creation of type _cdb_has_usable_geom_record
...
Fix the ERROR: type "_cdb_has_usable_geom_record" already exists by
checking for existence before. Duly noted for upgrades.
2015-09-21 14:16:32 +02:00
Rafa de la Torre
0c14df5f89
Fix upgrade from 0.10.0 to 0.10.1
2015-09-16 14:40:18 +02:00
Rafa de la Torre
6ba809e798
Remove usage of _CDB_Geometry_SRID #154
...
This is only used from _CDB_Has_Usable_Geom. It doesn't do what's
promised in the comment. The effect is that a column is taken as valid
when it actually needs setting its SRID restriction so better not use
it as it will need rewrite anyway.
2015-09-16 12:17:40 +02:00
Rafa de la Torre
0ebd12a0eb
Avoid double-escaping of reloid::text #141
2015-09-15 18:49:59 +02:00
Rafa de la Torre
e7c974e957
Fix silly typo #141
2015-09-15 18:49:59 +02:00
Rafa de la Torre
789e89a5d2
Create a return type for _cdb_has_usable_geom_record #141
2015-09-15 18:49:59 +02:00
Rafa de la Torre
3fdce65368
Move column renaming out of _CDB_Has_Usable_Geom #141
2015-09-15 18:49:59 +02:00
Rafa de la Torre
5caddc6cc7
Fix for MultiPoint geometry issue #141
2015-09-15 18:49:59 +02:00
Rafa de la Torre
1596bd56d8
Improve another EXECUTE+FOUND #141
2015-09-14 17:54:35 +02:00
Rafa de la Torre
dfd0454be3
Improve comment #141
2015-09-14 17:53:34 +02:00
Rafa de la Torre
731ee0a9ba
Fix the_geom_webmercator
already exists #141
2015-09-14 17:06:24 +02:00
Rafa de la Torre
e3bba2ee4b
Fix the_geom
already exists error #141
2015-09-14 17:05:14 +02:00
Rafa de la Torre
581835d4ff
Extract query into _cdb_geom_candidate_columns #141
2015-09-14 11:50:10 +02:00
Rafa de la Torre
9ec24c1aff
Fix FOUND in _CDB_Geometry_SRID #141
2015-09-14 11:18:12 +02:00
Rafa de la Torre
7a247c1ab2
Recover usage of cartodb id if has_usable_primary_key #138
2015-09-10 18:20:52 +02:00