Permalink
Browse files

Fix mssql driver attribute conversion (#5702)

  • Loading branch information...
szekerest committed Dec 9, 2018
1 parent 505539f commit ffb119137bf339630ff9fd9b441a7745a9f84b6b
Showing with 2 additions and 3 deletions.
  1. +2 −3 mapmssql2008.c
@@ -1105,10 +1105,9 @@ static int prepare_database(layerObj *layer, rectObj rect, char **query_string)
/* adding items to the select list */
for (t = 0; t < layer->numitems; t++) {
#ifdef USE_ICONV
/* no conversion applied at the database */
query = msStringConcatenate(query, "[");
query = msStringConcatenate(query, "convert(nvarchar(max), [");
query = msStringConcatenate(query, layer->items[t]);
query = msStringConcatenate(query, "],");
query = msStringConcatenate(query, "]),");
#else
query = msStringConcatenate(query, "convert(varchar(max), [");
query = msStringConcatenate(query, layer->items[t]);

0 comments on commit ffb1191

Please sign in to comment.