diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2014-01-22 13:37:30 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2014-01-22 13:37:30 +0000 |
commit | bad388d840feae5730edb384be050961fd996034 (patch) | |
tree | f11bfdc8800db1cd99c167a2373c707d10ddbddb /dev-db/freetds/files | |
parent | dev-python/sphinx: Version Bump (diff) | |
download | gentoo-2-bad388d840feae5730edb384be050961fd996034.tar.gz gentoo-2-bad388d840feae5730edb384be050961fd996034.tar.bz2 gentoo-2-bad388d840feae5730edb384be050961fd996034.zip |
Fix for bug 498374
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key C4A92BF5)
Diffstat (limited to 'dev-db/freetds/files')
-rw-r--r-- | dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch b/dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch new file mode 100644 index 000000000000..c5699af5d1d9 --- /dev/null +++ b/dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch @@ -0,0 +1,21 @@ +Gentoo bug: 498374 + +diff -Nru freetds-0.91/src/odbc/odbc.c freetds-0.91/src/odbc/odbc.c +--- freetds-0.91/src/odbc/odbc.c.orig 2010-03-22 09:42:16.000000000 -0500 ++++ freetds-0.91/src/odbc/odbc.c 2010-05-06 16:00:00.000000000 -0500 +@@ -3012,12 +3012,9 @@ + + odbc_set_sql_type_info(col, drec, stmt->dbc->env->attr.odbc_version); + +- if (!col->table_column_name) { +- if (!tds_dstr_copyn(&drec->sql_desc_name, col->column_name, col->column_namelen)) +- return SQL_ERROR; +- } else { +- if (!tds_dstr_copy(&drec->sql_desc_name, col->table_column_name)) +- return SQL_ERROR; ++ if (!tds_dstr_copyn(&drec->sql_desc_name, col->column_name, col->column_namelen)) ++ return SQL_ERROR; ++ if (col->table_column_name) { + if (!tds_dstr_copy(&drec->sql_desc_base_column_name, col->table_column_name)) + return SQL_ERROR; + } |