Fully qualify call to CDB_UserDataSize from quota trigger
This commit is contained in:
parent
bfd56f0ea6
commit
f5ad0d0434
1
NEWS
1
NEWS
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user