88385ed9abbb — Ted Unangst a month ago
fix export to work with data stores
1 files changed, 2 insertions(+), 2 deletions(-)

M import.go
M import.go +2 -2
@@ 647,13 647,13 @@ func export(username, file string) {
 			elog.Printf("error creating %s: %s", donk, err)
 			continue
 		}
-		row := stmtGetBlobData.QueryRow(donk)
-		err = row.Scan(&data)
+		data, closer, err := loaddata(donk)
 		if err != nil {
 			elog.Printf("error scanning file %s: %s", donk, err)
 			continue
 		}
 		w.Write(data)
+		closer()
 	}
 	zd.Close()
 	fd.Close()