Commit 8378a7e5 authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog: add support fo bool values.

In MySQL, boolean columns are tiny ints with values 0 or 1, so just cast
the python bool into an int.
parent ced90df1
...@@ -55,6 +55,7 @@ value_renderer = { ...@@ -55,6 +55,7 @@ value_renderer = {
'float': valueFloatRenderer, 'float': valueFloatRenderer,
'DateTime': valueDateTimeRenderer, 'DateTime': valueDateTimeRenderer,
'NoneType': valueNoneRenderer, 'NoneType': valueNoneRenderer,
'bool': int,
} }
value_search_text_renderer = { value_search_text_renderer = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment