Actions
Bug #9411
closedSQL syntax errors for MariaDB
Start date:
12/11/2018
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
We highly need support for MariaDB and previously it was supported.
In Klever 2.0 we have the following exceptions
(1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 255, in execute self.errorhandler(self, exc, value) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler raise errorvalue File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 252, in execute res = self._query(query) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 378, in _query db.query(q) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) _mysql_exceptions.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/debian/klever/bridge/jobs/ViewJobData.py", line 360, in __safes_attrs_statistic return self.__attr_statistic('safe') File "/home/debian/klever/bridge/jobs/ViewJobData.py", line 401, in __attr_statistic for ra in queryset: File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1339, in __iter__ self._fetch_all() File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1326, in _fetch_all self._result_cache = list(self.iterator()) File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1349, in iterator query = iter(self.query) File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/query.py", line 96, in __iter__ self._execute_query() File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/query.py", line 130, in _execute_query self.cursor.execute(self.sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 100, in execute return super().execute(sql, params) File "/home/debian/klever/bridge/bridge/__init__.py", line 32, in execute_wrapper return original(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 255, in execute self.errorhandler(self, exc, value) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler raise errorvalue File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 252, in execute res = self._query(query) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 378, in _query db.query(q) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) django.db.utils.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 255, in execute self.errorhandler(self, exc, value) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler raise errorvalue File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 252, in execute res = self._query(query) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 378, in _query db.query(q) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) _mysql_exceptions.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/debian/klever/bridge/jobs/ViewJobData.py", line 367, in __unsafes_attrs_statistic return self.__attr_statistic('unsafe') File "/home/debian/klever/bridge/jobs/ViewJobData.py", line 401, in __attr_statistic for ra in queryset: File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1339, in __iter__ self._fetch_all() File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1326, in _fetch_all self._result_cache = list(self.iterator()) File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1349, in iterator query = iter(self.query) File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/query.py", line 96, in __iter__ self._execute_query() File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/query.py", line 130, in _execute_query self.cursor.execute(self.sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 100, in execute return super().execute(sql, params) File "/home/debian/klever/bridge/bridge/__init__.py", line 32, in execute_wrapper return original(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 255, in execute self.errorhandler(self, exc, value) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler raise errorvalue File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 252, in execute res = self._query(query) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 378, in _query db.query(q) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) django.db.utils.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') Bad Request: /jobs/5/ Bad Request: /jobs/5/ (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 255, in execute self.errorhandler(self, exc, value) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler raise errorvalue File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 252, in execute res = self._query(query) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 378, in _query db.query(q) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) _mysql_exceptions.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/debian/klever/bridge/jobs/ViewJobData.py", line 360, in __safes_attrs_statistic return self.__attr_statistic('safe') File "/home/debian/klever/bridge/jobs/ViewJobData.py", line 401, in __attr_statistic for ra in queryset: File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1339, in __iter__ self._fetch_all() File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1326, in _fetch_all self._result_cache = list(self.iterator()) File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 1349, in iterator query = iter(self.query) File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/query.py", line 96, in __iter__ self._execute_query() File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/query.py", line 130, in _execute_query self.cursor.execute(self.sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 100, in execute return super().execute(sql, params) File "/home/debian/klever/bridge/bridge/__init__.py", line 32, in execute_wrapper return original(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 71, in execute return self.cursor.execute(query, args) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 255, in execute self.errorhandler(self, exc, value) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler raise errorvalue File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 252, in execute res = self._query(query) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 378, in _query db.query(q) File "/usr/local/lib/python3.5/dist-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) django.db.utils.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'."id", "report_attrs"."attr_id" as "a_id",\n "attr"."value" as "a_val", "at\' at line 1') Bad Request: /jobs/5/ Bad Request: /jobs/5/
Files
Actions