MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CompareField

Function CompareField

extensions/pgsql/pgsql/PgDriver.cpp:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool CompareField(const char *str1, const char *str2)
162{
163 if ((str1 == NULL && str2 != NULL)
164 || (str1 != NULL && str2 == NULL))
165 {
166 return false;
167 }
168
169 if (str1 == NULL && str2 == NULL)
170 {
171 return true;
172 }
173
174 return (strcmp(str1, str2) == 0);
175}
176
177IDatabase *PgDriver::Connect(const DatabaseInfo *info, bool persistent, char *error, size_t maxlength)
178{

Callers 1

ConnectMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected