compile fix: thirdth parameter of mysql_option()

This commit is contained in:
Marian Krivos
2009-03-07 14:59:56 +00:00
parent 4ca6562afb
commit a33fb4a4b5

View File

@@ -16,14 +16,14 @@
// execute, and transmit the Software, and to prepare derivative works of the // execute, and transmit the Software, and to prepare derivative works of the
// Software, and to permit third-parties to whom the Software is furnished to // Software, and to permit third-parties to whom the Software is furnished to
// do so, all subject to the following: // do so, all subject to the following:
// //
// The copyright notices in the Software and this entire statement, including // The copyright notices in the Software and this entire statement, including
// the above license grant, this restriction and the following disclaimer, // the above license grant, this restriction and the following disclaimer,
// must be included in all copies of the Software, in whole or in part, and // must be included in all copies of the Software, in whole or in part, and
// all derivative works of the Software, unless such copies or derivative // all derivative works of the Software, unless such copies or derivative
// works are solely in the form of machine-executable object code generated by // works are solely in the form of machine-executable object code generated by
// a source language processor. // a source language processor.
// //
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
@@ -82,7 +82,7 @@ void SessionHandle::options(mysql_option opt, bool b)
void SessionHandle::options(mysql_option opt, unsigned int i) void SessionHandle::options(mysql_option opt, unsigned int i)
{ {
if (mysql_options(_pHandle, opt, &i) != 0) if (mysql_options(_pHandle, opt, (const char *)&i) != 0)
throw ConnectionException("mysql_options error", _pHandle); throw ConnectionException("mysql_options error", _pHandle);
} }
@@ -122,7 +122,7 @@ void SessionHandle::rollback()
{ {
if (mysql_rollback(_pHandle) != 0) if (mysql_rollback(_pHandle) != 0)
throw TransactionException("Rollback failed.", _pHandle); throw TransactionException("Rollback failed.", _pHandle);
} }
}}} // Poco::Data::MySQL }}} // Poco::Data::MySQL