summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConstantin <jucovschi@gmail.com>2010-04-05 15:30:31 +0200
committerConstantin <jucovschi@gmail.com>2010-04-05 15:31:41 +0200
commit1c448e00c4596b86f4edd557d96d442c03d3c800 (patch)
tree2f5f4c5d2f40779792fc3a8d9773d1f1fcdfb7ef
parent1c27972c2c05c0bee40c6562cf277caeb0908d1d (diff)
downloadrasdaman-upstream-1c448e00c4596b86f4edd557d96d442c03d3c800.zip
rasdaman-upstream-1c448e00c4596b86f4edd557d96d442c03d3c800.tar.gz
rasdaman-upstream-1c448e00c4596b86f4edd557d96d442c03d3c800.tar.xz
Error token substitution bug fixed.
-rw-r--r--rnprotocol/rnpclientcomm2.cc4
1 files 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 )