diff options
author | David M <davidmj@users.sourceforge.net> | 2006-08-06 05:52:41 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-08-06 05:52:41 +0000 |
commit | 2f901a520326b4d6941ef18fcfce0a9d5ef9cea5 (patch) | |
tree | 7ef08c7f0bedfed5f6a65278c8dc53194ac16d20 /phpBB/includes/db/mssql.php | |
parent | b4b901b82552e639cae00c4dc38542cf6fe2d873 (diff) | |
download | forums-2f901a520326b4d6941ef18fcfce0a9d5ef9cea5.tar forums-2f901a520326b4d6941ef18fcfce0a9d5ef9cea5.tar.gz forums-2f901a520326b4d6941ef18fcfce0a9d5ef9cea5.tar.bz2 forums-2f901a520326b4d6941ef18fcfce0a9d5ef9cea5.tar.xz forums-2f901a520326b4d6941ef18fcfce0a9d5ef9cea5.zip |
This should end some issues we have been having regarding the proper binary encoding of stuff. :D
Acyd Burn: quit breaking the schema :P
git-svn-id: file:///svn/phpbb/trunk@6238 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mssql.php')
-rw-r--r-- | phpBB/includes/db/mssql.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php index 13a6fb8aab..0e8cc318f1 100644 --- a/phpBB/includes/db/mssql.php +++ b/phpBB/includes/db/mssql.php @@ -370,6 +370,14 @@ class dbal_mssql extends dbal } /** + * Escape string used in sql query + */ + function sql_escape_binary($msg) + { + return "CAST('" . $msg . "' AS varbinary)"; + } + + /** * return sql error array * @access: private */ |