You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's being removed. But this issue is here to track figuring out what it was for in the first place. Here is some updated code from the Ren-C version, which was never used:
int ODBC_UnCamelCase(SQLWCHAR *source, SQLWCHAR *target) {
int length = lstrlenW(source);
int t = 0;
WCHAR *hyphen = L"-";
WCHAR *underscore = L"_";
WCHAR *space = L" ";
int s;
for (s = 0; s < length; s++) {
target[t++] =
(source[s] == *underscore or source[s] == *space)
? *hyphen
: towlower(source[s]);
if (
(
s < length - 2
and iswupper(source[s])
and iswupper(source[s + 1])
and iswlower(source[s + 2])
) or (
s < length - 1
and iswlower(source[s])
and iswupper(source[s + 1])
)
){
target[t++] = *hyphen;
}
}
target[t++] = 0;
return t;
}
The text was updated successfully, but these errors were encountered:
There is code commented out relating to de-Camel-Casing column names. This apparently originated in Christian Ensel's version:
https://github.com/gurzgri/r3-odbc/blob/c15c70d61a2f5c39cb01f7c685c4310d4ee987de/src/os/win32/host-odbc.c#L270
It's being removed. But this issue is here to track figuring out what it was for in the first place. Here is some updated code from the Ren-C version, which was never used:
The text was updated successfully, but these errors were encountered: