Sha256: 047f751ccc2abf98332108fa1b45f72cfbdfd68d62c7873539ae87a22138fc36

Contents?: true

Size: 431 Bytes

Versions: 31

Compression:

Stored size: 431 Bytes

Contents

#! /usr/bin/env jruby

require 'jdbc_common'
require 'db/mssql'

class MsSQLMultibyteTest < Test::Unit::TestCase
  
  include MultibyteTestMethods

  def test_select_multibyte_string
    Entry.create!(:title => 'テスト', :content => '本文')
    entry = Entry.find(:last)
    assert_equal "テスト", entry.title
    assert_equal "本文", entry.content
    assert_equal entry, Entry.find_by_title("テスト")
  end
    
end

Version data entries

31 entries across 31 versions & 7 rubygems

Version Path
cmoran92-activerecord-jdbc-adapter-1.2.1.2 test/mssql_multibyte_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 test/mssql_multibyte_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 test/mssql_multibyte_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 test/mssql_multibyte_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.2.2.1 test/mssql_multibyte_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 test/mssql_multibyte_test.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.2.2 test/mssql_multibyte_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.2.1 test/mssql_multibyte_test.rb
c3-activerecord-jdbc-adapter-1.1.3.1 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.2.0 test/mssql_multibyte_test.rb
c3-activerecord-jdbc-adapter-1.1.3 test/mssql_multibyte_test.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 test/mssql_multibyte_test.rb
jashmenn-activerecord-jdbc-adapter-1.2.0 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.1.3 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.1.2 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.1.1 test/mssql_multibyte_test.rb
activerecord-jdbc-adapter-1.1.0 test/mssql_multibyte_test.rb