[rql] fix min/max args definition of [TEXT_]LIMIT_SIZE registered procedures (long outstanding bug discovered after recent fix in lgdb) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jul 2011 11:25:10 +0200
branchstable
changeset 7691 c47dcd37d4e3
parent 7690 015396b6e417
child 7692 b37f4fdc44d4
[rql] fix min/max args definition of [TEXT_]LIMIT_SIZE registered procedures (long outstanding bug discovered after recent fix in lgdb)
cwconfig.py
--- a/cwconfig.py	Tue Jul 26 11:21:26 2011 +0200
+++ b/cwconfig.py	Tue Jul 26 11:25:10 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)