ENHANCEMENT MSSQLDatabase::text() and MSSQLDatabase::varchar() now use nvarchar which plays along better with UTF-8 characters

This commit is contained in:
Sean Harvey 2010-05-10 04:45:54 +00:00
parent fc54ae0b15
commit 572d025029

View File

@ -931,7 +931,7 @@ class MSSQLDatabase extends SS_Database {
* @return string
*/
public function text($values) {
return 'varchar(max) null';
return 'nvarchar(max) null';
}
/**
@ -951,7 +951,7 @@ class MSSQLDatabase extends SS_Database {
* @return string
*/
public function varchar($values) {
return 'varchar(' . $values['precision'] . ') null';
return 'nvarchar(' . $values['precision'] . ') null';
}
/**