/**
  * Set the default collation of the MSSQL nvarchar fields that we create.
  * We don't apply this to the database as a whole, so that we can use unicode collations.
  */
 public static function set_collation($collation)
 {
     self::$collation = $collation;
 }
 /**
  * Return a varchar type-formatted string
  *
  * @params array $values Contains a tokenised list of info about this data type
  * @return string
  */
 public function varchar($values)
 {
     $collation = MSSQLDatabase::get_collation();
     $collationSQL = $collation ? " COLLATE {$collation}" : "";
     return "nvarchar(" . $values['precision'] . "){$collationSQL} null";
 }