1233 register_function(GROUP_CONCAT) |
1233 register_function(GROUP_CONCAT) |
1234 |
1234 |
1235 |
1235 |
1236 class LIMIT_SIZE(FunctionDescr): |
1236 class LIMIT_SIZE(FunctionDescr): |
1237 supported_backends = ('postgres', 'sqlite',) |
1237 supported_backends = ('postgres', 'sqlite',) |
|
1238 minargs = maxargs = 3 |
1238 rtype = 'String' |
1239 rtype = 'String' |
1239 |
1240 |
1240 def st_description(self, funcnode, mainindex, tr): |
1241 def st_description(self, funcnode, mainindex, tr): |
1241 return funcnode.children[0].get_description(mainindex, tr) |
1242 return funcnode.children[0].get_description(mainindex, tr) |
1242 |
1243 |
1243 register_function(LIMIT_SIZE) |
1244 register_function(LIMIT_SIZE) |
1244 |
1245 |
1245 |
1246 |
1246 class TEXT_LIMIT_SIZE(LIMIT_SIZE): |
1247 class TEXT_LIMIT_SIZE(LIMIT_SIZE): |
1247 supported_backends = ('mysql', 'postgres', 'sqlite',) |
1248 supported_backends = ('mysql', 'postgres', 'sqlite',) |
|
1249 minargs = maxargs = 2 |
1248 |
1250 |
1249 register_function(TEXT_LIMIT_SIZE) |
1251 register_function(TEXT_LIMIT_SIZE) |
1250 |
1252 |
1251 |
1253 |
1252 class FTIRANK(FunctionDescr): |
1254 class FTIRANK(FunctionDescr): |