@@ -120,9 +120,10 @@ func connect(db *sqlite3.Conn, _, schema, table string, arg ...string) (_ *bloom
120120 return nil , err
121121 }
122122
123- load , _ , err := db .Prepare (fmt .Sprintf (
123+ load , _ , err := db .PrepareFlags (fmt .Sprintf (
124124 `SELECT m/8, p, k FROM %s.%s WHERE rowid = 1` ,
125- sqlite3 .QuoteIdentifier (b .schema ), sqlite3 .QuoteIdentifier (b .storage )))
125+ sqlite3 .QuoteIdentifier (b .schema ), sqlite3 .QuoteIdentifier (b .storage )),
126+ sqlite3 .PREPARE_DONT_LOG )
126127 if err != nil {
127128 return nil , err
128129 }
@@ -165,9 +166,10 @@ func (t *bloom) ShadowTables() {
165166}
166167
167168func (t * bloom ) Integrity (schema , table string , flags int ) error {
168- load , _ , err := t .db .Prepare (fmt .Sprintf (
169+ load , _ , err := t .db .PrepareFlags (fmt .Sprintf (
169170 `SELECT typeof(data), length(data), p, n, m, k FROM %s.%s WHERE rowid = 1` ,
170- sqlite3 .QuoteIdentifier (t .schema ), sqlite3 .QuoteIdentifier (t .storage )))
171+ sqlite3 .QuoteIdentifier (t .schema ), sqlite3 .QuoteIdentifier (t .storage )),
172+ sqlite3 .PREPARE_DONT_LOG )
171173 if err != nil {
172174 return fmt .Errorf ("bloom: %v" , err ) // can't wrap!
173175 }
0 commit comments