mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Enable REGEXP by connecting Crystal's stdlib Regex (#62)
This commit is contained in:
parent
4abea0d326
commit
55b8399d7e
4 changed files with 23 additions and 0 deletions
|
@ -128,4 +128,9 @@ DB::DriverSpecs(DB::Any).run do
|
|||
it "handles multi-step pragma statements" do |db|
|
||||
db.exec %(PRAGMA journal_mode = memory)
|
||||
end
|
||||
|
||||
it "handles REGEXP operator" do |db|
|
||||
(db.scalar "select 'unmatching text' REGEXP '^m'").should eq 0
|
||||
(db.scalar "select 'matching text' REGEXP '^m'").should eq 1
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue