-
Ciao,
I'm having a problem formatting a query with identifier_case = upper.
It seems that the formatter cannot correctly recognize the name of an entity if its value is present in the list of rese…
-
Django demo "Requirements.txt" file says:
django==2.2.28
channels==2.2.0
panel==0.9.3
bokeh==2.0.2
jinja2==3.0.1
When I go to install Django, it comes up with:
The following NEW pack…
-
- Create `TEST` skvh table with audit and history
``` erlang
> imem_dal_skvh:create_check_channel(, [audit, history]).
> mnesia:system_info(tables).
['TESTHist',…
c-bik updated
8 years ago
-
Hi, thank you fort your open source package PyPika!
I want to use pypika objects as a custom filed type in pydantic, when I want to serialize and deserialize my pydantic model, for pypika field I g…
-
2 dashes introduce a standard SQL comment up to the end of the line. See
https://www.postgresql.org/docs/9.6/static/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS
This worked in sqlparse 0.1.16 but …
-
>>> import sqlparse
>>> sql = '''SELECT a, row_number() OVER (partition by foo ORDER BY bar), b, c, d, e, f FROM c'''
>>> print(sqlparse.format(sql, reindent=True))
This outputs the f…
-
hi,
this is my code:
import sqlparse
def get_TableName(sql):
res = sqlparse.parse(sql)
stmt = res[0]
print stmt.get_real_name()`
print "---------------------…
-
Hi,
When table names comes after a comment, the parser is ignoring the first table name from the output.
Example :
>> D = """ Select c1 from
--Comment--
d1,d2,d3;"""
>> Parser(D)…
-
on windows platform, why ”Format SQL Statement“ button is disabled?
kntao updated
8 years ago
-
When facing the following situation, sqlparse.parse() doesn't work well:
```sql
SELECT xxx
FROM(
xxxxx
)t1
INNER JOIN
(
xxxx
) t2
ON t1.xxx = t2.xxx
```
```sql
FROM(
xxxxx
)t1
…