Skip to content

Commit

Permalink
Fixed issue #6424: Lastpage field not being added in MSSQL when upgra…
Browse files Browse the repository at this point in the history
…ding from 1.85 or older
  • Loading branch information
c-schmitz committed Aug 7, 2012
1 parent 8bf81a4 commit 9f13193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common_functions.php
Expand Up @@ -484,7 +484,7 @@ function db_select_tables_like($table)
case 'mssql_n' :
case 'mssqlnative':
case 'odbc_mssql' :
return "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where TABLE_TYPE='BASE TABLE' and TABLE_NAME LIKE '$table'";
return "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where TABLE_TYPE='BASE TABLE' and TABLE_NAME LIKE '$table' ESCAPE '\'";
case 'postgres' :
$table=str_replace('\\','\\\\',$table);
return "SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' and table_name like '$table'";
Expand Down

0 comments on commit 9f13193

Please sign in to comment.