uqa-sql 0.5.4

PostgreSQL-compatible SQL compiler built on libpg_query
Documentation
[
  {
    "sql": "SELECT 1 IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 1 IS NOT TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT TRUE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 1 IS FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS FALSE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 1 IS NOT FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT FALSE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 1 IS UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS UNKNOWN must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 1 IS NOT UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT UNKNOWN must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 't'::text IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type text",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 't'::text IS NOT TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT TRUE must be type boolean, not type text",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 't'::text IS FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS FALSE must be type boolean, not type text",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 't'::text IS NOT FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT FALSE must be type boolean, not type text",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 't'::text IS UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS UNKNOWN must be type boolean, not type text",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 't'::text IS NOT UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT UNKNOWN must be type boolean, not type text",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 'invalid' IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "22P02",
      "message": "invalid input syntax for type boolean: \"invalid\"",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 'invalid' IS NOT TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "22P02",
      "message": "invalid input syntax for type boolean: \"invalid\"",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 'invalid' IS FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "22P02",
      "message": "invalid input syntax for type boolean: \"invalid\"",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 'invalid' IS NOT FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "22P02",
      "message": "invalid input syntax for type boolean: \"invalid\"",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 'invalid' IS UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "22P02",
      "message": "invalid input syntax for type boolean: \"invalid\"",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT 'invalid' IS NOT UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "22P02",
      "message": "invalid input syntax for type boolean: \"invalid\"",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[true,false]) IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must not return a set",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[true,false]) IS NOT TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT TRUE must not return a set",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[true,false]) IS FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS FALSE must not return a set",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[true,false]) IS NOT FALSE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT FALSE must not return a set",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[true,false]) IS UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS UNKNOWN must not return a set",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[true,false]) IS NOT UNKNOWN",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS NOT UNKNOWN must not return a set",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT CASE WHEN false THEN 1 IS TRUE ELSE false END",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT false AND (1 IS TRUE)",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT true OR (1 IS TRUE)",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT unnest(ARRAY[1,2]) IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type integer",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT ARRAY[true] IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type boolean[]",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  },
  {
    "sql": "SELECT ROW(true) IS TRUE",
    "command_tags": [],
    "error": {
      "sqlstate": "42804",
      "message": "argument of IS TRUE must be type boolean, not type record",
      "detail": null,
      "hint": null
    },
    "results": [],
    "notices": []
  }
]