aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mssql.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-08-06 05:52:41 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-08-06 05:52:41 +0000
commit2f901a520326b4d6941ef18fcfce0a9d5ef9cea5 (patch)
tree7ef08c7f0bedfed5f6a65278c8dc53194ac16d20 /phpBB/includes/db/mssql.php
parentb4b901b82552e639cae00c4dc38542cf6fe2d873 (diff)
downloadforums-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.php8
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
*/