Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Setting Unicode Types As Default Issues
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
José González Quintana  
View profile  
 More options Aug 17 2012, 5:59 pm
From: José González Quintana <jgonzalezq.m...@gmail.com>
Date: Fri, 17 Aug 2012 14:59:35 -0700 (PDT)
Local: Fri, Aug 17 2012 5:59 pm
Subject: Setting Unicode Types As Default Issues

I followed the instruccions from here https://github.com/rails-sqlserver/activerecord-sqlserver-adapter#set...

I wanted to disable the Unicode Types, so i added this to my initializers
# Disabled
ActiveRecord::ConnectionAdapters::SQLServerAdapter.enable_default_unicode_t ypes = false
ActiveRecord::ConnectionAdapters::SQLServerAdapter.native_text_database_typ e = 'varchar(max)'
ActiveRecord::ConnectionAdapters::SQLServerAdapter.native_string_database_t ype = 'varchar'

The strings gets varchar(255) but the text fields gets nvarchar(max) and i'm having encoding issues with the nvarchar type.

I don't know why the native_text_database property isn't working

Thanks in advance
Greetings
Jose


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Collins  
View profile   Translate to Translated (View Original)
 More options Aug 17 2012, 6:15 pm
From: Ken Collins <k...@metaskills.net>
Date: Fri, 17 Aug 2012 18:15:37 -0400
Local: Fri, Aug 17 2012 6:15 pm
Subject: Re: [RailsSQLServer] Setting Unicode Types As Default Issues

You only need to set the #enable_default_unicode_types to false and the others will be done for you.

Also, where are you setting these? It should work fine if you set them in an initializer.

 - Ken

On Aug 17, 2012, at 5:59 PM, José González Quintana wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »