MCPcopy Create free account
hub / github.com/MapServer/MapServer / setConnError

Function setConnError

mapmssql2008.c:220–227  ·  view source on GitHub ↗

Set the error string for the connection */

Source from the content-addressed store, hash-verified

218
219/* Set the error string for the connection */
220static void setConnError(msODBCconn *conn)
221{
222 SQLSMALLINT len;
223
224 SQLGetDiagField(SQL_HANDLE_DBC, conn->hdbc, 1, SQL_DIAG_MESSAGE_TEXT, (SQLPOINTER) conn->errorMessage, sizeof(conn->errorMessage), &len);
225
226 conn->errorMessage[len] = 0;
227}
228
229/* Connect to db */
230static msODBCconn * mssql2008Connect(const char * connString)

Callers 1

mssql2008ConnectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected