Commit 155d36c
committed
Fix garbage in column names on IBM i
A user reported an issue where the column names can have garbage at the
end in some situations; in this case, it seems to be using QP2SHELL
while also have the CCSID set to 65535. It seems SQL/CLI doesn't null
terminate the names when this happens. Arguably a bug in SQL/CLI, and
arguably on the user as QP2SHELL requires you to set up the environment
yourself, but unfortunately CCSID 65535 and QP2SHELL usage are common.
This resolves the issue by truncating with `name_length`, which is still
set correctly.1 parent 8cf053a commit 155d36c
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | | - | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
1975 | 1981 | | |
1976 | 1982 | | |
1977 | 1983 | | |
| |||
0 commit comments