# HG changeset patch # User Sylvain Thénault # Date 1311672310 -7200 # Node ID c47dcd37d4e328bc2c0e49f764127a379a294f10 # Parent 015396b6e417f7eb1b9f242e4f5aaa7138ea6eec [rql] fix min/max args definition of [TEXT_]LIMIT_SIZE registered procedures (long outstanding bug discovered after recent fix in lgdb) diff -r 015396b6e417 -r c47dcd37d4e3 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)