pypika icon indicating copy to clipboard operation
pypika copied to clipboard

PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially us...

Results 190 pypika issues
Sort by recently updated
recently updated
newest added

Working with Oracle databases can be tricky sometime, especially with double quotes and aliases. In the current state, there is a bug around the WITH clause that does not encapsulate...

input: obj=MySQLQuery.into("table").columns("a").replace('\n除了平庸\nI\'m willing to do anything b\n') sql = obj.get_sql() print(sql) output: the sql is: REPLACE INTO `table` (`a`,) VALUES (' 除了平庸 I''m willing to do anything b ') this...

hi all ```python MySQLQuery.create_table(country_table)\ .columns( Column('hashkey', "VARCHAR(50)" , nullable=False, default=ValueWrapper("")) ) ``` currently I am having such an object in order to achieve ```mysql CREATE TABLE `countries` ( `hashkey` VARCHAR(50)...

issue link: https://github.com/kayak/pypika/issues/675

I know it's really not the intended usage, but one could write an expression like `0

pypika can't create the following Query INSERT INTO `test` (`INT_NN`,`PKEY`,`STR_NN`) VALUES (100,'KEY_1','V30'),(500,'KEY_2','V1110') AS `TEMP` ON DUPLICATE KEY UPDATE `test`.`INT_NN`=`TEMP`.`INT_NN`,`test`.`STR_NN`=`TEMP`.`STR_NN`; VALUES(key) usage is depreciated on MYSQL _as() function not work properly

It would be great if pypika could be based on pydantic. Some features which comes with pydantic could be very useful such as json serialization and type checking.

It seems there's a formatting issue due to improper backquote usage.

from pypika import Query, Table customers = Table('batch') q_str =str(Query.from_(customers).select(customers.id)) print(q_str) SELECT "id" FROM "batch" Because the Double quotation marks " exists, ProgrammingError: (pymysql.err.ProgrammingError) (1064, 'You have an error in...