cossacklabs / acra

Database security suite. Database proxy with field-level encryption, search through encrypted data, SQL injections prevention, intrusion detection, honeypots. Supports client-side and proxy-side ("transparent") encryption. SQL, NoSQL.
https://www.cossacklabs.com/acra/
Apache License 2.0
1.33k stars 128 forks source link

Fix handling null values for postgresql in binary mode #593

Closed Lagovas closed 1 year ago

Lagovas commented 1 year ago

Previously we missed the logic of handling NULL values which should be encoded differently than empty strings. We encoded them as empty strings instead of placing -1 value according to wire protocol This should fix #591.

Checklist