Skip to content

Commit b6c7456

Browse files
committedJan 9, 2012
Fix #11806: code cleanup in db_prepare_string()
Removed unnecessary cases for 'mssql' and 'odbc_mssql' from the switch statement.
1 parent 0da3f7a commit b6c7456

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

‎core/database_api.php

-4
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,6 @@ function db_prepare_string( $p_string ) {
668668
$t_escaped = $g_db->qstr( $p_string, false );
669669
return utf8_substr( $t_escaped, 1, utf8_strlen( $t_escaped ) - 2 );
670670
break;
671-
case 'mssql':
672-
break;
673-
case 'odbc_mssql':
674-
break;
675671
case 'mysql':
676672
return mysql_real_escape_string( $p_string );
677673
case 'mysqli':

0 commit comments

Comments
 (0)
Please sign in to comment.