diff --git a/Data/MySQL/src/SessionHandle.cpp b/Data/MySQL/src/SessionHandle.cpp index a9edcebeb..10073b1db 100644 --- a/Data/MySQL/src/SessionHandle.cpp +++ b/Data/MySQL/src/SessionHandle.cpp @@ -16,14 +16,14 @@ // 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 // do so, all subject to the following: -// +// // The copyright notices in the Software and this entire statement, including // 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 // all derivative works of the Software, unless such copies or derivative // works are solely in the form of machine-executable object code generated by // a source language processor. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // 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) { - if (mysql_options(_pHandle, opt, &i) != 0) + if (mysql_options(_pHandle, opt, (const char *)&i) != 0) throw ConnectionException("mysql_options error", _pHandle); } @@ -122,7 +122,7 @@ void SessionHandle::rollback() { if (mysql_rollback(_pHandle) != 0) throw TransactionException("Rollback failed.", _pHandle); -} +} }}} // Poco::Data::MySQL