Bug #45061 preparedstatement test fails with "not ok 9 - preparedstatement::getWarnings..."

Submitted: 25 May 2009 7:53 Modified: 17 Aug 2010 15:16
Reporter: Sveta Smirnova Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S2 (Serious)
Version:1.0.5 OS:Any (Mac OS X, Linux)
Assigned to: Lawrenty Novitsky CPU Architecture:Any

[25 May 2009 7:53] Sveta Smirnova
Description:
Unit test preparedstatement test fails with "not ok 9 - preparedstatement::getWarnings..."

How to repeat:
$./test/unit/classes/preparedstatement tcp://127.0.0.1:3350 root "" bug45048
# preparedstatement
1..9
ok 1 - preparedstatement::crash
ok 2 - preparedstatement::anonymousSelect
ok 3 - preparedstatement::InsertSelectAllTypes
ok 4 - preparedstatement::assortedSetType
ok 5 - preparedstatement::setNull
ok 6 - preparedstatement::checkClosed
ok 7 - preparedstatement::getMetaData
ok 8 - preparedstatement::callSP
not ok 9 - preparedstatement::getWarnings # assertEquals(std::string) failed in/Users/apple/Documents/src/mysql-connector-c++-1.0.5/test/unit/classes/preparedstatement.cpp, line #942 expecting '22003' got ''

FAILED tests 9
Failed 1/9, 88.89% okay
[25 May 2009 7:55] Sveta Smirnova
Found when tried to verify bug #45048. Probably this is duplicate.
[26 May 2009 13:16] Ulf Wendel
Feature request - 
mysql_warning.cpp

/*
* TODO: implement it. Probably it's not the right place for this function
*/
const sql::SQLString &
errCode2SqlState(int /* errCode */)
{
	static const sql::SQLString state("");

	return state;
}
[17 Aug 2010 15:16] Lawrenty Novitsky
I believe that is fixed in trunk already

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.