cvs: peardoc /en/package/database/mdb2 datatypes.xml

From: Date: Sun, 03 Dec 2006 09:23:33 +0000
Subject: cvs: peardoc /en/package/database/mdb2 datatypes.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8985@lists.php.net to get a copy of this message
lsmith Sun Dec 3 09:23:33 2006 UTC Modified files: /peardoc/en/package/database/mdb2 datatypes.xml Log: - typo fixes in examples - added fixed length example http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/datatypes.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/database/mdb2/datatypes.xml diff -u peardoc/en/package/database/mdb2/datatypes.xml:1.3 peardoc/en/package/database/mdb2/datatypes.xml:1.4 --- peardoc/en/package/database/mdb2/datatypes.xml:1.3 Sun Dec 3 09:15:39 2006 +++ peardoc/en/package/database/mdb2/datatypes.xml Sun Dec 3 09:23:33 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.database.mdb2.datatypes"> <refnamediv> <refname><classname>MDB2</classname> Datatypes</refname> @@ -120,7 +120,7 @@ <para> The length limited option is the most recommended for efficiency reasons. The undefined length option allows very large fields but may prevent the use - of indexes and may not allow sorting on fields of its type. + of indexes, nullability and may not allow sorting on fields of its type. </para> <para> The fields of this type should be able to handle 8 bit characters. Drivers @@ -128,14 +128,20 @@ the values of the strings to be converted to this type. </para> <para> + By default MDB2 will use variable length character types. If fixed length + types should be used can be controlled via the fixed modifier. + </para> + <para> <example> - <title>Example of text data type with <parameter>length</parameter> option</title> + <title>Example of text data type with <parameter>length</parameter> + and <parameter>fixed</parameter> option</title> <programlisting role="php"> <![CDATA[ <?php 'sometext' = array( - 'type' = 'text', - 'length' = 12, + 'type' => 'text', + 'length' => 12, + 'fixed' => 'fixed', ), ?> ]]> @@ -160,7 +166,7 @@ <![CDATA[ <?php 'someboolean' = array( - 'type' = 'boolean', + 'type' => 'boolean', ), ?> ]]> @@ -184,9 +190,9 @@ <![CDATA[ <?php 'someint' = array( - 'type' = 'integer', - 'length' = 10, - 'unsigned' = true, + 'type' => 'integer', + 'length' => 10, + 'unsigned' => true, ), ?> ]]> @@ -231,7 +237,7 @@ <![CDATA[ <?php 'somedecimal' = array( - 'type' = 'decimal', + 'type' => 'decimal', ), ?> ]]> @@ -255,7 +261,7 @@ <![CDATA[ <?php 'somefloat' = array( - 'type' = 'float', + 'type' => 'float', ), ?> ]]> @@ -291,7 +297,7 @@ <![CDATA[ <?php 'somedate' = array( - 'type' = 'date', + 'type' => 'date', ), ?> ]]> @@ -329,9 +335,9 @@ <![CDATA[ <?php 'sometime' = array( - 'type' = 'time', - 'default' = '12:34:05', - 'notnull' = true, + 'type' => 'time', + 'default' => '12:34:05', + 'notnull' => true, ), ?> ]]> @@ -357,7 +363,7 @@ <![CDATA[ <?php 'sometimestamp' = array( - 'type' = 'timestamp', + 'type' => 'timestamp', ), ?> ]]> @@ -392,11 +398,11 @@ <![CDATA[ <?php 'someblob' = array( - 'type' = 'blob', + 'type' => 'blob', ), // or 'someclob' = array( - 'type' = 'clob', + 'type' => 'clob', ), ?> ]]> @@ -417,7 +423,7 @@ 'id' => array( 'type' => 'text', 'length' => 32, - 'unsigned' => true, + 'fixed' => true, ), 'someint' => array( 'type' => 'integer', @@ -480,7 +486,7 @@ <tbody> <row> <entry>id</entry> - <entry>character varying(32)</entry> + <entry>character(32)</entry> <entry></entry> <entry></entry> <entry></entry> @@ -570,7 +576,7 @@ <tbody> <row> <entry>id</entry> - <entry>varchar(32)</entry> + <entry>char(32)</entry> <entry></entry> <entry>unsigned</entry> <entry>YES</entry>

« previous php.pear.doc (#8985) next »