From 6a4284a30c66f290912b8ad724ae41973e858fed Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 27 Sep 2014 14:40:13 -0500 Subject: [PATCH] Add test for no-op Exec --- conn_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conn_test.go b/conn_test.go index 55da3712..517f6053 100644 --- a/conn_test.go +++ b/conn_test.go @@ -281,6 +281,11 @@ func TestExec(t *testing.T) { if results := mustExec(t, conn, strings.Repeat("select 42; ", 1000)); results != "SELECT 1" { t.Errorf("Unexpected results from Exec: %v", results) } + + // Exec no-op which does not return a command tag + if results := mustExec(t, conn, "--;"); results != "" { + t.Errorf("Unexpected results from Exec: %v", results) + } } func TestExecFailure(t *testing.T) {