Permalink
Browse files

Restore SQL_CheckConfig Behavior (#873)

* Change lookup strategy for SQL_CheckConfig

* Ensure db conf lookup failures default to ..default

* Revert "Ensure db conf lookup failures default to ..default"

This reverts commit 03dc703.
  • Loading branch information...
Headline authored and KyleSanderson committed Oct 7, 2018
1 parent a9ca1a2 commit 34e91fbd81029d36071e86d2f1efb872fb9b9127
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/logic/smn_database.cpp
@@ -1425,7 +1425,7 @@ static cell_t SQL_CheckConfig(IPluginContext *pContext, const cell_t *params)
char *name;
pContext->LocalToString(params[1], &name);

return (g_DBMan.FindDatabaseConf(name) != NULL) ? 1 : 0;
return (g_DBMan.GetDatabaseConf(name) != nullptr) ? 1 : 0;
}

static cell_t SQL_ConnectCustom(IPluginContext *pContext, const cell_t *params)

0 comments on commit 34e91fb

Please sign in to comment.