[FIX] sql_db: port fix from psycopg/psycopg2#459
[FIX] sql_db: port fix from psycopg/psycopg2#459

NUL characters must not be used in query parameters,
as they will be ignored by libpq, being end-of-string
characters.

Preventing NULs avoids unexpected results from
queries. It is only necessary with psycopg2
versions before 2.7, which includes the upstream
fix.

ygol/odoo,ygol/odoo,Elico-Corp/odoo_OCB,Elico-Corp/odoo_OCB,Elico-Corp/odoo_OCB,ygol/odoo,Elico-Corp/odoo_OCB,Elico-Corp/odoo_OCB,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,Elico-Corp/odoo_OCB