Commit 549794e
authored
Fix VARCHAR(MAX) fields from SQL Server returning no data (#271)
In MS SQL Server, a field defined as VARCHAR(MAX) will return a column size of 0,
which breaks the SQLBindCol workflow. When we detect that a column size of 0 is
returned for SQL_VARCHAR, SQL_WVARCHAR, and SQL_WVARBINARY, go through the 'long_data'
path, which uses SQLGetData.
Signed-off-by: Mark Irish <[email protected]>1 parent cb229f9 commit 549794e
1 file changed
+21
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3045 | 3045 | | |
3046 | 3046 | | |
3047 | 3047 | | |
3048 | | - | |
3049 | 3048 | | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
3050 | 3056 | | |
3051 | 3057 | | |
3052 | 3058 | | |
| |||
3055 | 3061 | | |
3056 | 3062 | | |
3057 | 3063 | | |
3058 | | - | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
3059 | 3071 | | |
3060 | 3072 | | |
3061 | | - | |
3062 | 3073 | | |
3063 | 3074 | | |
3064 | 3075 | | |
| |||
3068 | 3079 | | |
3069 | 3080 | | |
3070 | 3081 | | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
3071 | 3089 | | |
3072 | 3090 | | |
3073 | | - | |
3074 | 3091 | | |
3075 | 3092 | | |
3076 | 3093 | | |
| |||
0 commit comments