From 1c448e00c4596b86f4edd557d96d442c03d3c800 Mon Sep 17 00:00:00 2001 From: Constantin Date: Mon, 5 Apr 2010 15:30:31 +0200 Subject: Error token substitution bug fixed. --- rnprotocol/rnpclientcomm2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rnprotocol/rnpclientcomm2.cc b/rnprotocol/rnpclientcomm2.cc index 3974bd5..191266e 100644 --- a/rnprotocol/rnpclientcomm2.cc +++ b/rnprotocol/rnpclientcomm2.cc @@ -786,14 +786,14 @@ void RnpClientComm::executeExecuteUpdateQuery(const char *query) throw(r_Error) decoder.getNextParameter(); int colNo = decoder.getDataAsInteger(); decoder.getNextParameter(); - const char* token = decoder.getDataAsString(); + std::string token = decoder.getDataAsString(); clearAnswer(); if( status == 2 || status == 3 ) { LEAVE( "RnpClientComm::executeExecuteUpdateQuery(): exception, status = " << status ); - throw r_Equery_execution_failed( errNo, lineNo, colNo, token ); + throw r_Equery_execution_failed( errNo, lineNo, colNo, token.c_str() ); } if( status == 1 ) -- cgit