Skip to content

Fatal error retrieving table fields when creating model from existing table #17

@falmp

Description

@falmp

When creating model from existing table, after choosing a table name, if the given table has a double unsigned column, a fatal error will be thrown and fields are not updated or become blank.

URL accessed by AJAX:
http://localhost/recess/apps/model/gen/getTableProps/Default/table_name.json

Error:
Fatal error: Call to undefined function double unsigned() in D:\wamp\www\recess\recess\database\pdo\MysqlDataSourceProvider.class.php on line 109

Column in question:
column_name double unsigned DEFAULT NULL

I'm using the edge version from github. Lines with problem:

108: if( ($spacePos = strpos($mysqlType,' '))) {
109: $mysqlType = substr($mysqlType(0,$spacePos));
110: }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions