pgsql: Fix ecpg's mechanism for detecting unsupported cases in the gram

2024-04-04 Thread Tom Lane
Fix ecpg's mechanism for detecting unsupported cases in the grammar. ecpg wants to emit a warning if it parses a SQL construct that the backend can parse but will immediately throw a FEATURE_NOT_SUPPORTED error for. The way it was testing for this was to see if the string ERRCODE_FEATURE_NOT_SUPP

pgsql: Fix ecpg's mechanism for detecting unsupported cases in the gram

2024-04-04 Thread Tom Lane
Fix ecpg's mechanism for detecting unsupported cases in the grammar. ecpg wants to emit a warning if it parses a SQL construct that the backend can parse but will immediately throw a FEATURE_NOT_SUPPORTED error for. The way it was testing for this was to see if the string ERRCODE_FEATURE_NOT_SUPP

pgsql: Fix ecpg's mechanism for detecting unsupported cases in the gram

2024-04-04 Thread Tom Lane
Fix ecpg's mechanism for detecting unsupported cases in the grammar. ecpg wants to emit a warning if it parses a SQL construct that the backend can parse but will immediately throw a FEATURE_NOT_SUPPORTED error for. The way it was testing for this was to see if the string ERRCODE_FEATURE_NOT_SUPP

pgsql: Fix ecpg's mechanism for detecting unsupported cases in the gram

2024-04-04 Thread Tom Lane
Fix ecpg's mechanism for detecting unsupported cases in the grammar. ecpg wants to emit a warning if it parses a SQL construct that the backend can parse but will immediately throw a FEATURE_NOT_SUPPORTED error for. The way it was testing for this was to see if the string ERRCODE_FEATURE_NOT_SUPP

pgsql: Fix ecpg's mechanism for detecting unsupported cases in the gram

2024-04-04 Thread Tom Lane
Fix ecpg's mechanism for detecting unsupported cases in the grammar. ecpg wants to emit a warning if it parses a SQL construct that the backend can parse but will immediately throw a FEATURE_NOT_SUPPORTED error for. The way it was testing for this was to see if the string ERRCODE_FEATURE_NOT_SUPP

pgsql: Fix ecpg's mechanism for detecting unsupported cases in the gram

2024-04-04 Thread Tom Lane
Fix ecpg's mechanism for detecting unsupported cases in the grammar. ecpg wants to emit a warning if it parses a SQL construct that the backend can parse but will immediately throw a FEATURE_NOT_SUPPORTED error for. The way it was testing for this was to see if the string ERRCODE_FEATURE_NOT_SUPP