mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Drop server support for FE/BE protocol version 1.0.
While this isn't a lot of code, it's been essentially untestable for a very long time, because libpq doesn't support anything older than protocol 2.0, and has not since release 6.3. There's no reason to believe any other client-side code still uses that protocol, either. Discussion: <2661.1475849167@sss.pgh.pa.us>
This commit is contained in:
@@ -229,9 +229,7 @@ SendRowDescriptionMessage(TupleDesc typeinfo, List *targetlist, int16 *formats)
|
||||
atttypid = getBaseTypeAndTypmod(atttypid, &atttypmod);
|
||||
pq_sendint(&buf, (int) atttypid, sizeof(atttypid));
|
||||
pq_sendint(&buf, attrs[i]->attlen, sizeof(attrs[i]->attlen));
|
||||
/* typmod appears in protocol 2.0 and up */
|
||||
if (proto >= 2)
|
||||
pq_sendint(&buf, atttypmod, sizeof(atttypmod));
|
||||
pq_sendint(&buf, atttypmod, sizeof(atttypmod));
|
||||
/* format info appears in protocol 3.0 and up */
|
||||
if (proto >= 3)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user