File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- janus-ar (0.14.0 )
4
+ janus-ar (0.15.1 )
5
5
6
6
GEM
7
7
remote: http://rubygems.org/
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class QueryDirector
13
13
SQL_REPLICA_MATCHERS = [ /\A \s *(select|with.+\) \s *select)\s /i ] . freeze
14
14
SQL_ALL_MATCHERS = [ /\A \s *set\s /i ] . freeze
15
15
SQL_SKIP_ALL_MATCHERS = [ /\A \s *set\s +local\s /i ] . freeze
16
- WRITE_PREFIXES = %w( INSERT UPDATE DELETE LOCK CREATE GRANT DROP ALTER TRUNCATE FLUSH ) . freeze
16
+ WRITE_PREFIXES = %w( INSERT UPDATE DELETE LOCK CREATE GRANT DROP ALTER TRUNCATE BEGIN SAVEPOINT FLUSH ) . freeze
17
17
18
18
def initialize ( sql , open_transactions )
19
19
@_sql = sql
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module Janus
5
5
module VERSION
6
6
MAJOR = 0
7
7
MINOR = 15
8
- PATCH = 0
8
+ PATCH = 1
9
9
PRE = nil
10
10
11
11
def self . to_s
Original file line number Diff line number Diff line change 15
15
it { expect ( described_class ::SQL_REPLICA_MATCHERS ) . to eq ( [ /\A \s *(select|with.+\) \s *select)\s /i ] ) }
16
16
it { expect ( described_class ::SQL_ALL_MATCHERS ) . to eq ( [ /\A \s *set\s /i ] ) }
17
17
it {
18
- expect ( described_class ::WRITE_PREFIXES ) . to eq %w( INSERT UPDATE DELETE LOCK CREATE GRANT DROP ALTER TRUNCATE FLUSH )
18
+ expect ( described_class ::WRITE_PREFIXES ) . to eq %w( INSERT UPDATE DELETE LOCK CREATE GRANT DROP ALTER TRUNCATE BEGIN
19
+ SAVEPOINT FLUSH )
19
20
}
20
21
21
22
it { expect ( described_class ::ALL ) . to eq :all }
You can’t perform that action at this time.
0 commit comments