V6 Provider: \ADOdb\database\drivers\[driver]\ADODataDictionary
====== actualType ======
~~NOTOC~~
== See Also ==
[[v6:dictionary:metatype|metaType()]]
== Syntax ==
string actualType(
string $metaType
)
===== Description =====
The method ''actualType()'' returns the database specific data type for a given [[v6:dictionary:metatype]]. The returned values varies from one database to another.
A connection to a data dictionary object is required.
-----------------------------------
===== Usage ====
==== Compatibility Mode ====
/*
* Example connection to MySQL database
*/
$obj = new ADOdb\connector;
$db = $obj->connect('127.0.0.1',"adodb","adodb",'employees');
$dict = $obj->loadDataDictionary();
$t = $dict->actualType('PO');
print $t;
/*
* Prints POINT
*/
==== Standard Mode ====
/*
* Example connection to MySQL database
*/
$obj = new ADOdb\connector;
$db = $obj->connect('127.0.0.1',"adodb","adodb",'employees');
$dict = new \ADOdb\database\drivers\mysqli\ADODatadictionary($db);
$t = $dict->actualType('PO');
print $t;
/*
* Prints POINT
*/