vars.pt 814 B

12345678910111213141516171819202122232425
  1. # Test status codes for errors related to setting session variables.
  2. # Errors shared with Postgres are covered in pgtest/vars.pt.
  3. # FixedValueParameter maps to 22023
  4. send
  5. Query {"query": "SET STANDARD_CONFORMING_STRINGS TO false"}
  6. ----
  7. until
  8. ReadyForQuery
  9. ----
  10. ErrorResponse {"fields":[{"typ":"S","value":"ERROR"},{"typ":"C","value":"22023"},{"typ":"M","value":"parameter \"standard_conforming_strings\" can only be set to \"on\""}]}
  11. ReadyForQuery {"status":"I"}
  12. # InvalidParameterValue maps to 22023
  13. send
  14. Query {"query": "SET STANDARD_CONFORMING_STRINGS TO not_a_boolean"}
  15. ----
  16. until
  17. ReadyForQuery
  18. ----
  19. ErrorResponse {"fields":[{"typ":"S","value":"ERROR"},{"typ":"C","value":"22023"},{"typ":"M","value":"parameter \"standard_conforming_strings\" requires a \"boolean\" value"}]}
  20. ReadyForQuery {"status":"I"}