mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 06:05:53 +00:00
ENHANCEMENT MSSQLDatabase::text() and MSSQLDatabase::varchar() now use nvarchar which plays along better with UTF-8 characters
This commit is contained in:
parent
fc54ae0b15
commit
572d025029
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user