Permalink
Browse files

Re-added spatial type point.

  • Loading branch information...
1 parent f169423 commit 81dccd5aa86422a3b38f42b7a115196d75133759 @gabordemooij committed Dec 1, 2012
Showing with 12 additions and 3 deletions.
  1. +6 −0 RedBean/QueryWriter/MySQL.php
  2. +6 −3 RedBean/QueryWriter/PostgreSQL.php
@@ -90,6 +90,11 @@ class RedBean_QueryWriter_MySQL extends RedBean_QueryWriter_AQueryWriter impleme
*/
const C_DATATYPE_SPECIAL_DATETIME = 81;
+ /**
+ * Special type point. Only available through explicit cast.
+ * @var integer
+ */
+ const C_DATATYPE_SPECIAL_POINT = 90;
/**
*
@@ -135,6 +140,7 @@ public function __construct( RedBean_Adapter $adapter ) {
RedBean_QueryWriter_MySQL::C_DATATYPE_TEXT32=>' LONGTEXT ',
RedBean_QueryWriter_MySQL::C_DATATYPE_SPECIAL_DATE=>' DATE ',
RedBean_QueryWriter_MySQL::C_DATATYPE_SPECIAL_DATETIME=>' DATETIME ',
+ RedBean_QueryWriter_MySQL::C_DATATYPE_SPECIAL_POINT=>' POINT ',
);
$this->sqltype_typeno = array();
@@ -47,7 +47,11 @@ class RedBean_QueryWriter_PostgreSQL extends RedBean_QueryWriter_AQueryWriter im
*/
const C_DATATYPE_SPECIAL_DATETIME = 81;
-
+ /**
+ * Special type point. Only available through explicit cast.
+ * @var integer
+ */
+ const C_DATATYPE_SPECIAL_POINT = 90;
/**
* Specified field type cannot be overruled
@@ -110,8 +114,7 @@ public function __construct( RedBean_Adapter $adapter ) {
self::C_DATATYPE_TEXT=>' text ',
self::C_DATATYPE_SPECIAL_DATE => ' date ',
self::C_DATATYPE_SPECIAL_DATETIME => ' timestamp without time zone ',
-
-
+ self::C_DATATYPE_SPECIAL_POINT => ' point ',
);
$this->sqltype_typeno = array();

0 comments on commit 81dccd5

Please sign in to comment.