Righty then - just tested it and works. Full workaround code:

Sequel::MSSQL::DatabaseMethods.send(:remove_const, :SERVER_VERSION_SQL)
Sequel::MSSQL::DatabaseMethods::SERVER_VERSION_SQL = 'SELECT 
@@VERSION'.freeze
Sequel::MSSQL::DatabaseMethods.send(:remove_const, :SERVER_VERSION_RE)
Sequel::MSSQL::DatabaseMethods::SERVER_VERSION_RE = 
/(\d+)\.(\d+)\.(\d+)/.freeze

Thanks much!

>>>>>>>  Nathan

On Thursday, April 3, 2014 11:32:31 AM UTC-5, Jeremy Evans wrote:
>
> On Thursday, April 3, 2014 7:47:35 AM UTC-7, Nathan Walker wrote:
>>
>> That was actually what I tried first - the code that parses the version 
>> string didn't handle the @@VERSION string. If you look at the regex they're 
>> completely different strings.
>>
>
> Ah, I see.  The one in Sequel uses ^ as the first character.  You could 
> just replace SERVER_VERSION_RE with /(\d+)\.(\d+)\.(\d+)/ as well, that 
> should work.
>
> Thanks,
> Jeremy
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to