File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
lib/active_record/connection_adapters/sqlserver/type Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ def serialize(value)
20
20
21
21
# Currently only called from our custom Time type for formatting
22
22
def _formatted ( value )
23
+ return "#{ value . to_s ( :_sqlserver_time ) } " unless precision
23
24
"#{ value . to_s ( :_sqlserver_time ) } .#{ quote_fractional ( value ) } "
24
25
end
25
26
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ class ShowplanTestSQLServer < ActiveRecord::TestCase
5
5
6
6
fixtures :cars
7
7
8
+ # For some reason the default max width truncates values that we are looking for in jruby
9
+ ActiveRecord ::ConnectionAdapters ::SQLServer ::Showplan ::PrinterTable . max_column_width = 500 if defined? JRUBY_VERSION
10
+
8
11
describe 'Unprepare previously prepared SQL' do
9
12
10
13
it 'from simple statement' do
You can’t perform that action at this time.
0 commit comments