Fully qualify call to CDB_UserDataSize from quota trigger

This commit is contained in:
Sandro Santilli 2014-05-28 17:42:11 +02:00
parent bfd56f0ea6
commit f5ad0d0434
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -6,6 +6,7 @@ Bug fixes:
- Fix recursive trigger on create table (#32)
- Ensure cartodb_id uses an associated sequence (#33)
- Fully qualify call to cdb_disable_ddl_hooks from cdb_enable_ddl_hooks
- Fully qualify call to CDB_UserDataSize from quota trigger
0.1.0 - 2014-05-23

View File

@ -50,7 +50,7 @@ BEGIN
RETURN NEW;
END IF;
SELECT CDB_UserDataSize() INTO quota;
SELECT public.CDB_UserDataSize() INTO quota;
IF quota > qmax THEN
RAISE EXCEPTION 'Quota exceeded by %KB', (quota-qmax)/1024;
ELSE RAISE DEBUG 'User quota in bytes: % < % (max allowed)', quota, qmax;