ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:metatype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:dictionary:metatype [2017/04/21 11:49] – external edit 127.0.0.1v5:dictionary:metatype [2021/03/09 10:16] – [Description] type can be string or ADOFieldObject, dregad
Line 8: Line 8:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The function ''metaType()'' accepts as an argument a database specific datatype, usually the result of a call to [[v5:reference:recordset:fetchfield|fetchField()]] and returns an ADOdb datatype, which provides a mapping to allow cross-database compatibility. The compatible fields are explained [[v5:dictionary:dictionary_index#Summary_Of_Types|Here]]+ 
 +The function ''metaType()'' accepts as an argument a native, database-specific type.  
 +This is usually the result of a call to [[v5:reference:recordset:fetchfield|fetchField()]]and can be given either as a string, or an ADOFieldObject. 
 + 
 +It returns an [[v5:dictionary:dictionary_index#Summary_Of_Types|ADOdb standard datatype]], which provides a mapping to allow cross-database compatibility. 
 + 
 +===== Usage ===== 
 +<code php> 
 +/* 
 +* Connection to mysql database 
 +*/ 
 + 
 +print $db->metaType('VARCHAR'); 
 +/* 
 +* Returns 'C' 
 +*/ 
 +</code>
v5/dictionary/metatype.txt · Last modified: 2021/03/09 10:41 by dregad