Skip to content

Commit

Permalink
Prove that large text'ish fields work as documented.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Nov 29, 2010
1 parent 7c256b3 commit c533e73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ class SchemaTest < TinyTds::TestCase
assert_equal 'test ntext', find_value(181, :ntext)
assert_equal 'test ntext åå', find_value(182, :ntext)
assert_utf8_encoding find_value(182, :ntext)
# If this test fails, try setting the "text size" in your freetds.conf. See: http://www.freetds.org/faq.html#textdata
large_value = "x" * 5000
large_value_id = @client.execute("INSERT INTO [datatypes] ([ntext]) VALUES (N'#{large_value}')").insert
assert_equal large_value, find_value(large_value_id, :ntext)
end

should 'cast numeric' do
Expand Down

0 comments on commit c533e73

Please sign in to comment.