We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 377adc8 + aa13fac commit d846eadCopy full SHA for d846ead
src/SQLite.cs
@@ -370,7 +370,7 @@ void SetKey (string key)
370
if (key == null)
371
throw new ArgumentNullException (nameof (key));
372
var q = Quote (key);
373
- Execute ("pragma key = " + q);
+ ExecuteScalar<string> ("pragma key = " + q);
374
}
375
376
/// <summary>
@@ -387,7 +387,7 @@ void SetKey (byte[] key)
387
if (key.Length != 32)
388
throw new ArgumentException ("Key must be 32 bytes (256-bit)", nameof (key));
389
var s = String.Join ("", key.Select (x => x.ToString ("X2")));
390
- Execute ("pragma key = \"x'" + s + "'\"");
+ ExecuteScalar<string> ("pragma key = \"x'" + s + "'\"");
391
392
393
0 commit comments