anumaurya114exp commited on
Commit
7e7f372
·
1 Parent(s): 0a68038

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 5'
111
- disclaimerOutputStripping = """Results are stripped to show only top 5 rows.
112
- Please add your custom limit to get extend result.
113
- eg\n select * from schema.table limit 20\n\n"""
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