@@ -564,7 +564,7 @@ def connect *args
564564 end
565565
566566 it "should raise an exception when one of multiple statements fails" do
567- result = @multi_client . query ( "SELECT 1 as 'set_1'; SELECT * FROM invalid_table_name;SELECT 2 as 'set_2';" )
567+ result = @multi_client . query ( "SELECT 1 AS 'set_1'; SELECT * FROM invalid_table_name; SELECT 2 AS 'set_2';" )
568568 result . first [ 'set_1' ] . should be ( 1 )
569569 lambda {
570570 @multi_client . next_result
@@ -573,7 +573,7 @@ def connect *args
573573 end
574574
575575 it "returns multiple result sets" do
576- @multi_client . query ( "select 1 as 'set_1'; select 2 as 'set_2'") . first . should eql ( { 'set_1' => 1 } )
576+ @multi_client . query ( "SELECT 1 AS 'set_1'; SELECT 2 AS 'set_2'") . first . should eql ( { 'set_1' => 1 } )
577577
578578 @multi_client . next_result . should be_true
579579 @multi_client . store_result . first . should eql ( { 'set_2' => 2 } )
@@ -582,12 +582,12 @@ def connect *args
582582 end
583583
584584 it "does not interfere with other statements" do
585- @multi_client . query ( "select 1 as 'set_1'; select 2 as 'set_2'")
585+ @multi_client . query ( "SELECT 1 AS 'set_1'; SELECT 2 AS 'set_2'")
586586 while ( @multi_client . next_result )
587587 @multi_client . store_result
588588 end
589589
590- @multi_client . query ( "select 3 as 'next'") . first . should == { 'next' => 3 }
590+ @multi_client . query ( "SELECT 3 AS 'next'") . first . should == { 'next' => 3 }
591591 end
592592
593593 it "will raise on query if there are outstanding results to read" do
@@ -606,7 +606,7 @@ def connect *args
606606 end
607607
608608 it "#more_results? should work" do
609- @multi_client . query ( "select 1 as 'set_1'; select 2 as 'set_2'")
609+ @multi_client . query ( "SELECT 1 AS 'set_1'; SELECT 2 AS 'set_2'")
610610 @multi_client . more_results? . should be_true
611611
612612 @multi_client . next_result
0 commit comments