empty.pt 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Test EmptyQueryResponse.
  2. send
  3. Query {"query": ";"}
  4. ----
  5. until
  6. ReadyForQuery
  7. ----
  8. EmptyQueryResponse
  9. ReadyForQuery {"status":"I"}
  10. send
  11. Query {"query": ";;"}
  12. ----
  13. until
  14. ReadyForQuery
  15. ----
  16. EmptyQueryResponse
  17. ReadyForQuery {"status":"I"}
  18. send
  19. Query {"query": ""}
  20. ----
  21. until
  22. ReadyForQuery
  23. ----
  24. EmptyQueryResponse
  25. ReadyForQuery {"status":"I"}
  26. send
  27. Query {"query": "; ; select 1; ;"}
  28. ----
  29. until
  30. ReadyForQuery
  31. ----
  32. RowDescription {"fields":[{"name":"?column?"}]}
  33. DataRow {"fields":["1"]}
  34. CommandComplete {"tag":"SELECT 1"}
  35. ReadyForQuery {"status":"I"}
  36. # Empty queries in extended protocol
  37. send
  38. Parse {"query": ""}
  39. Bind
  40. Execute
  41. Parse {"query": "SELECT 1"}
  42. Bind
  43. Execute
  44. Parse {"query": ""}
  45. Bind
  46. Execute
  47. Sync
  48. ----
  49. until
  50. ReadyForQuery
  51. ----
  52. ParseComplete
  53. BindComplete
  54. EmptyQueryResponse
  55. ParseComplete
  56. BindComplete
  57. DataRow {"fields":["1"]}
  58. CommandComplete {"tag":"SELECT 1"}
  59. ParseComplete
  60. BindComplete
  61. EmptyQueryResponse
  62. ReadyForQuery {"status":"I"}