Raul Ochoa
3cf62ecd2e
Do not grant select permission to public user
...
- Fake the behaviour in tests by switching between users
10 years ago
Kartones
cd9e44b266
#1138 Fixed DDL triggers to properly use new cartodbfy signature, fixed cartodbfy to properly send params to check raster table
10 years ago
Sandro Santilli
f9f73d2d62
Fix potential infinite loop in CDB_QueryStatements
...
This fix was already present at one point in cartodb/lib/sql
(where the code was copied from) but in a different branch than
the one the code was initially copied from.
The fix depends on plpython language which becomes a new dependency.
10 years ago
Sandro Santilli
2601364011
Fix recursive DDL trigger on create table
...
Closes #32
10 years ago
Sandro Santilli
8a8d198ea2
Do not enable DDL triggers on extension create
...
Use cartodb.cdb_enable_ddl_hooks() to enable them.
Closes #19
10 years ago
Sandro Santilli
2f0031e6a2
Do not call CDB_Invalidate_Varnish() if not owned by a superuser
...
Search for that function in schemas cartodb and public (in that order).
Closes #24
11 years ago
Sandro Santilli
f98071cdac
Do not allow cartodbfying tables while no user quota is set
...
Closes #17
Updates tests
11 years ago
Sandro Santilli
cfd8dbc5a4
Test calls to CDB_Invalidate_Varnish
...
Also drops the DELETE trigger on CDB_TableMetadata as the call to
CDB_Invalidate_Varnish would then get an OID, which is pretty useless.
Closes #8
11 years ago
Sandro Santilli
1643ae2db1
Sleep less in the DDL hooks test
...
Closes #9
Hopefully travis is not too slow to fail this...
11 years ago
Sandro Santilli
15740f2ef6
Enable running all tests via "installcheck"
...
NOTE: also makes CDB_TableMetadata triggers still functional
when user quota and varnish invalidation functions are missing
from the database (currently installed by cartodb ruby)
11 years ago
Sandro Santilli
0960276046
Import cartodb/lib/sql/test, add search_path tweaker
11 years ago
Sandro Santilli
1a7fd8fd67
Fix automated test
11 years ago
Sandro Santilli
8cd7e31450
Include some of the cartodb scripts in the extension
...
NOTE: this is unfinished as cartodb scripts are only referenced and not
really included
11 years ago
Sandro Santilli
be25906953
Move toward cartodb extension
11 years ago