[rql] fix min/max args definition of [TEXT_]LIMIT_SIZE registered procedures (long outstanding bug discovered after recent fix in lgdb)
--- 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)