mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Check for a valid session pointer.
This commit is contained in:
parent
f238588abe
commit
fa9c3a5821
@ -639,6 +639,10 @@ SqDataAsyncBuilder::SqDataAsyncBuilder(Poco::Data::SessionImpl * session, StackS
|
|||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void SqDataAsyncBuilder::Submit()
|
void SqDataAsyncBuilder::Submit()
|
||||||
{
|
{
|
||||||
|
if (mSession.isNull())
|
||||||
|
{
|
||||||
|
STHROWF("Asynchronous query builder instance is invalid.");
|
||||||
|
}
|
||||||
auto & connector = mSession->connectorName();
|
auto & connector = mSession->connectorName();
|
||||||
// Is this a SQLite session?
|
// Is this a SQLite session?
|
||||||
if (connector == "sqlite")
|
if (connector == "sqlite")
|
||||||
|
Loading…
Reference in New Issue
Block a user