/** * Get a sqlite xPDODriver instance. * * @param object $xpdo A reference to a specific xPDO instance. */ function __construct(& $xpdo) { parent :: __construct($xpdo); $this->dbtypes['integer']= array('/INT/i'); $this->dbtypes['string']= array('/CHAR/i','/CLOB/i','/TEXT/i', '/ENUM/i'); $this->dbtypes['float']= array('/REAL/i','/FLOA/i','/DOUB/i'); $this->dbtypes['datetime']= array('/TIMESTAMP/i','/DATE/i'); $this->dbtypes['binary']= array('/BLOB/i'); }
/** * Get a sqlsrv xPDODriver instance. * * @param object $xpdo A reference to a specific xPDO instance. */ function __construct(& $xpdo) { parent :: __construct($xpdo); $this->dbtypes['integer']= array('/INT$/i'); $this->dbtypes['float']= array('/^DEC/i','/^NUMERIC$/i','/^FLOAT$/i','/^REAL$/i','/MONEY$/i'); $this->dbtypes['string']= array('/CHAR$/i','/TEXT$/i'); $this->dbtypes['date']= array('/^DATE$/i'); $this->dbtypes['datetime']= array('/DATETIME/i'); $this->dbtypes['time']= array('/^TIME$/i'); $this->dbtypes['binary']= array('/BINARY$/i','/^IMAGE$/i'); $this->dbtypes['bit']= array('/^BIT$/i'); }
/** * Get a mysql xPDODriver instance. * * @param object $xpdo A reference to a specific xPDO instance. */ function __construct(& $xpdo) { parent :: __construct($xpdo); $this->dbtypes['integer']= array('/INT/i'); $this->dbtypes['boolean']= array('/^BOOL/i'); $this->dbtypes['float']= array('/^DEC/i','/^NUMERIC$/i','/^FLOAT$/i','/^DOUBLE/i','/^REAL/i'); $this->dbtypes['string']= array('/CHAR/i','/TEXT/i','/^ENUM$/i','/^SET$/i','/^TIME$/i','/^YEAR$/i'); $this->dbtypes['timestamp']= array('/^TIMESTAMP$/i'); $this->dbtypes['datetime']= array('/^DATETIME$/i'); $this->dbtypes['date']= array('/^DATE$/i'); $this->dbtypes['binary']= array('/BINARY/i','/BLOB/i'); $this->dbtypes['bit']= array('/^BIT$/i'); }