Exemplo n.º 1
0
 public function __construct($conn)
 {
     parent::__construct($conn);
     /**
      * Recommended practice.
      */
     $this->columnTypes['text'] = 'nvarchar(max)';
     /**
      * DbLib bugs if no explicit NOT NULL is specified.
      */
     $this->columnTypes['pk'] = 'int IDENTITY PRIMARY KEY NOT NULL';
     /**
      * Varchar cannot store unicode, nvarchar can.
      */
     $this->columnTypes['string'] = 'nvarchar(255)';
     /**
      * Auto increment.
      */
     $this->columnTypes['autoincrement'] = 'integer NOT NULL IDENTITY (1,1)';
     $this->columnTypes['longbinary'] = 'varbinary(max)';
 }