File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
lib/active_record/connection_adapters/sqlserver Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33#### Fixed
44
5- - ...
5+ - [ # 872 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/872 ) Use native String#start_with
66
77#### Changed
88
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def exec_explain(queries)
2121 # which uses sp_executesql to just the first argument, then unquote it. Likewise our
2222 # `sp_executesql` method should substitude the @n args with the quoted values.
2323 def unprepare_sqlserver_statement ( sql , binds )
24- return sql unless sql . starts_with ?( SQLSERVER_STATEMENT_PREFIX )
24+ return sql unless sql . start_with ?( SQLSERVER_STATEMENT_PREFIX )
2525
2626 executesql = sql . from ( SQLSERVER_STATEMENT_PREFIX . length )
2727 executesql = executesql . match ( SQLSERVER_STATEMENT_REGEXP ) . to_a [ 1 ]
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def parse_raw_name
9292 @schema = @parts . first
9393 end
9494 rest = scanner . rest
95- rest = rest . starts_with ?( "." ) ? rest [ 1 ..-1 ] : rest [ 0 ..-1 ]
95+ rest = rest . start_with ?( "." ) ? rest [ 1 ..-1 ] : rest [ 0 ..-1 ]
9696 @object = unquote ( rest )
9797 @parts << @object
9898 end
You can’t perform that action at this time.
0 commit comments