1
1
/*
2
- Copyright (c) 2009, 2014 , Oracle and/or its affiliates. All rights reserved.
2
+ Copyright (c) 2009, 2015 , Oracle and/or its affiliates. All rights reserved.
3
3
4
4
The MySQL Connector/C++ is licensed under the terms of the GPLv2
5
5
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -262,6 +262,7 @@ void bugs::supportIssue_52319()
262
262
/* Bug#15936764/67325 */
263
263
void bugs::expired_pwd ()
264
264
{
265
+ logMsg (" bugs::expired_pwd" );
265
266
if (getMySQLVersion (con) < 56006 )
266
267
{
267
268
SKIP (" The server does not support tested functionality(expired password)" );
@@ -386,6 +387,7 @@ void bugs::expired_pwd()
386
387
*/
387
388
void bugs::legacy_auth ()
388
389
{
390
+ logMsg (" bugs::legacy_auth" );
389
391
try
390
392
{
391
393
stmt->executeUpdate (" DROP USER ccpp_legacy_auth" );
@@ -475,6 +477,7 @@ void bugs::legacy_auth()
475
477
/* Bug #18193771/71605 - The driver does not recognize utf8mb4 charset */
476
478
void bugs::bug71606 ()
477
479
{
480
+ logMsg (" bugs::bug71606" );
478
481
if (getMySQLVersion (con) < 56000 )
479
482
{
480
483
SKIP (" The server does not support tested functionality(utf8mb4 charset)" );
@@ -517,6 +520,7 @@ void bugs::bug71606()
517
520
518
521
void bugs::bug72700 ()
519
522
{
523
+ logMsg (" bugs::bug72700" );
520
524
ASSERT (stmt->execute (" select astext(geomfromtext('point(10 10)'))" ));
521
525
522
526
try
@@ -558,6 +562,7 @@ void bugs::bug66871()
558
562
sql::Statement *stmt;
559
563
sql::ResultSet *res;
560
564
565
+ logMsg (" bugs::bug66871" );
561
566
try
562
567
{
563
568
con = getConnection (NULL );
@@ -589,6 +594,7 @@ void bugs::bug66871()
589
594
*/
590
595
void bugs::bug20085944 ()
591
596
{
597
+ logMsg (" bugs::bug20085944" );
592
598
try
593
599
{
594
600
sql::ConnectOptionsMap connection_properties;
@@ -626,6 +632,7 @@ void bugs::bug20085944()
626
632
627
633
void bugs::bug19938873_pstmt ()
628
634
{
635
+ logMsg (" bugs::bug19938873_pstmt" );
629
636
try
630
637
{
631
638
pstmt.reset (con->prepareStatement (" SELECT NULL" ));
@@ -644,6 +651,7 @@ void bugs::bug19938873_pstmt()
644
651
645
652
void bugs::bug19938873_stmt ()
646
653
{
654
+ logMsg (" bugs::bug19938873_stmt" );
647
655
try
648
656
{
649
657
stmt.reset (con->createStatement ());
@@ -687,5 +695,43 @@ void bugs::bug68523()
687
695
}
688
696
689
697
698
+ void bugs::bug66235 ()
699
+ {
700
+ logMsg (" bug::bug66235" );
701
+ try
702
+ {
703
+ stmt.reset (con->createStatement ());
704
+ stmt->execute (" DROP TABLE IF EXISTS test" );
705
+ stmt->execute (" CREATE TABLE test(id BIT(3))" );
706
+ stmt->execute (" INSERT INTO test(id) VALUES(1), (10), (1), (1), (10), (111);" );
707
+
708
+ res.reset (stmt->executeQuery (" SELECT MAX(id), MIN(id) FROM test" ));
709
+ while (res->next ())
710
+ {
711
+ ASSERT_EQUALS (res->getString (1 ), " 7" );
712
+ ASSERT_EQUALS (res->getInt (1 ), 7 );
713
+
714
+ ASSERT_EQUALS (res->getString (2 ), " 1" );
715
+ ASSERT_EQUALS (res->getInt (2 ), 1 );
716
+ }
717
+
718
+ res.reset (stmt->executeQuery (" SELECT id FROM test limit 1" ));
719
+ while (res->next ())
720
+ {
721
+ ASSERT_EQUALS (res->getString (1 ), " 1" );
722
+ ASSERT_EQUALS (res->getInt (1 ), 1 );
723
+ }
724
+
725
+ stmt->execute (" DROP TABLE IF EXISTS test" );
726
+ }
727
+ catch (sql::SQLException &e)
728
+ {
729
+ logErr (e.what ());
730
+ logErr (" SQLState: " + std::string (e.getSQLState ()));
731
+ fail (e.what (), __FILE__, __LINE__);
732
+ }
733
+ }
734
+
735
+
690
736
} /* namespace regression */
691
737
} /* namespace testsuite */
0 commit comments