[pLog-svn] r3128 - plog/trunk/class/database/pdb/datadict
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sat Mar 25 23:11:10 GMT 2006
Author: oscar
Date: 2006-03-25 23:11:09 +0000 (Sat, 25 Mar 2006)
New Revision: 3128
Modified:
plog/trunk/class/database/pdb/datadict/pdbmysqldatadict.class.php
Log:
modified two of the data types that are returned by the mysql driver when using data dictionaries.
Modified: plog/trunk/class/database/pdb/datadict/pdbmysqldatadict.class.php
===================================================================
--- plog/trunk/class/database/pdb/datadict/pdbmysqldatadict.class.php 2006-03-25 17:34:56 UTC (rev 3127)
+++ plog/trunk/class/database/pdb/datadict/pdbmysqldatadict.class.php 2006-03-25 23:11:09 UTC (rev 3128)
@@ -5,11 +5,12 @@
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
- */
-
- include_once( PLOG_CLASS_PATH."class/database/pdb/datadict/pdbbasedatadict.class.php" );
+ */
- class PDbMysqlDataDict extends PDbBaseDataDict {
+ include_once( PLOG_CLASS_PATH."class/database/pdb/datadict/pdbbasedatadict.class.php" );
+
+ class PDbMysqlDataDict extends PDbBaseDataDict
+ {
var $databaseType = 'mysql';
var $alterCol = ' MODIFY COLUMN';
var $alterTableAddIndex = true;
@@ -85,7 +86,7 @@
case 'B': return 'LONGBLOB';
case 'D': return 'DATE';
- case 'T': return 'DATETIME';
+ case 'T': return 'TIMESTAMP';
case 'L': return 'TINYINT';
case 'R':
@@ -95,7 +96,7 @@
case 'I2': return 'SMALLINT';
case 'I8': return 'BIGINT';
- case 'F': return 'DOUBLE';
+ case 'F': return 'FLOAT';
case 'N': return 'NUMERIC';
default:
return $meta;
More information about the pLog-svn
mailing list