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.
filename
1 parent f1ffca5 commit b8e6cddCopy full SHA for b8e6cdd
test/test_database.rb
@@ -32,6 +32,15 @@ def test_filename
32
tf.unlink
33
end
34
35
+ def test_filename_with_attachment
36
+ assert_equal '', @db.filename
37
+ tf = Tempfile.new
38
+ @db.execute "ATTACH DATABASE '#{tf.path}' AS 'testing'"
39
+ assert_equal tf.path, @db.filename('testing')
40
+ ensure
41
+ tf.unlink
42
+ end
43
+
44
def test_bignum
45
num = 4907021672125087844
46
db.execute 'CREATE TABLE "employees" ("token" integer(8), "name" varchar(20) NOT NULL)'
0 commit comments