Spaces:
Runtime error
Runtime error
Commit ·
7e7f372
1
Parent(s): 0a68038
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,10 +107,10 @@ def preProcessSQL(sql):
|
|
| 107 |
sql=sql.replace(';', '')
|
| 108 |
disclaimerOutputStripping = ""
|
| 109 |
if ('limit' in sql[-15:].lower())==False:
|
| 110 |
-
sql = sql + ' ' + 'limit
|
| 111 |
-
disclaimerOutputStripping = """Results are stripped to show only top
|
| 112 |
-
Please add your custom limit to get
|
| 113 |
-
eg\n select * from schema.table limit
|
| 114 |
sql = sqlparse.format(sql, reindent=True, keyword_case='upper')
|
| 115 |
return sql, disclaimerOutputStripping
|
| 116 |
|
|
|
|
| 107 |
sql=sql.replace(';', '')
|
| 108 |
disclaimerOutputStripping = ""
|
| 109 |
if ('limit' in sql[-15:].lower())==False:
|
| 110 |
+
sql = sql + ' ' + 'limit 100'
|
| 111 |
+
disclaimerOutputStripping = """Results are stripped to show only top 100 rows.
|
| 112 |
+
Please add your custom limit to get extended result.
|
| 113 |
+
eg\n select * from schema.table limit 200n\n"""
|
| 114 |
sql = sqlparse.format(sql, reindent=True, keyword_case='upper')
|
| 115 |
return sql, disclaimerOutputStripping
|
| 116 |
|