From a0bdf95f95af1628097f4288758143f17220c01a Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Sat, 23 Aug 2014 18:49:14 +0200 Subject: [PATCH] Switcjhed cases in SQLite backend for handling interleaved and non-interleaved. --- sqlite.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlite.go b/sqlite.go index aab5d35..fcd9b6a 100644 --- a/sqlite.go +++ b/sqlite.go @@ -95,11 +95,11 @@ func NewSqliteBackend(path string, interleaved bool) (sqlb *SqliteBackend, err e } if interleaved { - res.encoder = common.EncodeStringToBytes - res.decoder = common.DecodeStringFromBytes - } else { res.encoder = common.EncodeStringToBytesFromInterleaved res.decoder = common.DecodeStringFromBytesToInterleaved + } else { + res.encoder = common.EncodeStringToBytes + res.decoder = common.DecodeStringFromBytes } sqlb = &res