3 ms·
"The DB driver should parse the parameter and bind it as a string in that position. If you need to use it as a different data type (ex: integer) then you can do
by jeffdavis 13y ago
"The DB driver should parse the parameter and bind it as a string in that position. If you need to use it as a different data type (ex: integer) then you can do an explicit type conversion."
Not sure exactly what you mean here. The protocol and libpq support sending literal values entirely outside of the query itself. There is no reason for the DB driver to do any parsing.
- sehrope 13y agoMiscom on my part. By driver I meant the nginx module that's calling out to libpq (which would more accurately be referred to as the DB driver). I meant that libpq supports bind variables and the nginx module should be using them rather than performing a string substitution.