mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-28 02:33:29 +02:00
writeCommand must be called in sendCommand
This commit is contained in:
parent
1a6dbd0b2d
commit
4dc1d2f62d
@ -98,7 +98,7 @@ public:
|
|||||||
/// A BadCastException will be thrown, when the reply is not of the
|
/// A BadCastException will be thrown, when the reply is not of the
|
||||||
/// given type.
|
/// given type.
|
||||||
{
|
{
|
||||||
sendCommand(command);
|
writeCommand(command);
|
||||||
readReply(result);
|
readReply(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ public:
|
|||||||
}
|
}
|
||||||
if ( redisResult->type() == ElementTraits<T>::TypeId )
|
if ( redisResult->type() == ElementTraits<T>::TypeId )
|
||||||
result = ((Type<T>*) redisResult.get())->value();
|
result = ((Type<T>*) redisResult.get())->value();
|
||||||
else throw BadCastException();
|
else throw BadCastException();
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendCommands(const std::vector<Array>& commands,
|
void sendCommands(const std::vector<Array>& commands,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user