From 86f3d738a0efbf5c50bdf112841aba2c8b859e85 Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 11 Aug 2006 21:52:46 +0000 Subject: so.... what does this thing do? well, the super fast, ultra efficient, massively huge BBCode handling system was implemented differently on each DBMS. Although this provided the best performance, the solution was a bit hacky. So what does this new thing do? We use base64 encoding to make everything nice and shiny, it turns into nice, safe characters that we can just jam into varchars on essentially any database. This has two implications: we must decode every bitfield we get AND we have slightly fewer IDs to work with. It goes down from 2040 BBCodes to 1512. We lose like a quarter of them :P P.S. I hope nothing broke :P git-svn-id: file:///svn/phpbb/trunk@6263 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/mssql_odbc.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'phpBB/includes/db/mssql_odbc.php') diff --git a/phpBB/includes/db/mssql_odbc.php b/phpBB/includes/db/mssql_odbc.php index 38ed91cd55..e1b2675a23 100644 --- a/phpBB/includes/db/mssql_odbc.php +++ b/phpBB/includes/db/mssql_odbc.php @@ -379,14 +379,6 @@ class dbal_mssql_odbc extends dbal return str_replace("'", "''", $msg); } - /** - * Escape string used in sql query - */ - function sql_escape_binary($msg) - { - return "CAST('" . $msg . "' AS varbinary)"; - } - /** * Build db-specific query data * @access: private -- cgit v1.2.1