cwconfig.py
changeset 7696 1541d9e6b242
parent 7691 c47dcd37d4e3
child 7815 2a164a9cf81c
--- a/cwconfig.py	Wed Jul 20 17:49:37 2011 +0200
+++ b/cwconfig.py	Tue Jul 26 16:33:52 2011 +0200
@@ -1235,6 +1235,7 @@
 
     class LIMIT_SIZE(FunctionDescr):
         supported_backends = ('postgres', 'sqlite',)
+        minargs = maxargs = 3
         rtype = 'String'
 
         def st_description(self, funcnode, mainindex, tr):
@@ -1245,6 +1246,7 @@
 
     class TEXT_LIMIT_SIZE(LIMIT_SIZE):
         supported_backends = ('mysql', 'postgres', 'sqlite',)
+        minargs = maxargs = 2
 
     register_function(TEXT_LIMIT_SIZE)