Add test to verify readonly mode

This commit is contained in:
Dan Sosedoff
2016-11-05 17:51:34 -05:00
parent 661fed0dbb
commit 2d2bd1d0b1
2 changed files with 14 additions and 1 deletions

View File

@@ -232,7 +232,7 @@ func (client *Client) SetReadOnlyMode() error {
}
if value == "off" {
_, err = client.db.Exec("SET default_transaction_read_only=on;")
_, err := client.db.Exec("SET default_transaction_read_only=on;")
return err
}