Tryton - Issues

 

Message15822

Author pokoli
Recipients ced, dominik, oscar, tkhyn, vezjakv
Date 2014-03-02.21:21:31
Content
I executed more code and it fails in the test query, concrectly in [1]. I get
the following traceback:

Traceback (most recent call last):
  File "C:\Program Files\neso-3.0.0\neso.py", line 150, in <module>
    cursor2.execute(sql, params)
  File "trytond\trytond\backend\sqlite\database.pyc", line 342, in execute
OperationalError: near "%": syntax error

Which is quite strange for me. 

I also printed the generated query and params, which lead to: 

('SELECT "a"."name" FROM "sqlite_master" AS "a" WHERE (("a"."type" = %s) AND
("a"."name" IN (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)))', ('table',
'ir_model', 'ir_model_field', 'ir_ui_view', 'ir_ui_menu', 'res_user',
'res_group', 'ir_module_module', 'ir_module_module_dependency',
'ir_translation', 'ir_lang'))

Let me know if more inputs are needed. 

[1]
http://hg.tryton.org/trytond/file/cb04e75618bf/trytond/backend/sqlite/database.py#l382
History
Date User Action Args
2014-03-02 21:21:32pokolisetmessageid: <1393791692.49.0.553093911794.issue3589@tryton.org>
2014-03-02 21:21:32pokolisetrecipients: + ced, oscar, vezjakv, dominik, tkhyn
2014-03-02 21:21:32pokolilinkissue3589 messages
2014-03-02 21:21:31pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)