On Jan 18, 2:13 am, dhs227 <[email protected]> wrote:
> DB =
> Sequel.ado(:conn_string=>'Provider=SQLNCLI10;Server=localhost;Database=db1;
> User
> ID=da;Password=123456')
> dataset = DB['select count(*) , \'1234\' from Mytable']
> dataset.each{|row| p row}
> print p
> ###########################
> Run above code to see output,
> Expect "{:"count(*)"=>58, :"1234"=>"1234"}"
> Actually "{:untitled=>"1234"}"
>
> Can someone please explain this? I can reproduce it on other machine
> with similar configuration.
>
> OS: windows 7
> Sequel version: 3.3
> DBMS: MS SQL Server 2008
DB[:Mytable].select{[count(:*){}.as(:"count(*)"), "1234".as(:"1234")]}
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.