Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-added spatial type point.

  • Loading branch information...
commit 81dccd5aa86422a3b38f42b7a115196d75133759 1 parent f169423
@gabordemooij authored
View
6 RedBean/QueryWriter/MySQL.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();
View
9 RedBean/QueryWriter/PostgreSQL.php
@@ -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.
Something went wrong with that request. Please try again.