Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Decimal scale #935

Merged
merged 8 commits into from
Jul 27, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reset format
  • Loading branch information
dreamsxin committed Jul 26, 2013
commit 35a696e65a516e75c66b6124bc2a170fccc1bceb
18 changes: 9 additions & 9 deletions ext/db/column.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,6 @@ PHP_METHOD(Phalcon_Db_Column, __construct){
}
}

/**
* Check if the field is numeric
*/
if (phalcon_array_isset_string(definition, SS("isNumeric"))) {
PHALCON_OBS_NVAR(is_numeric);
phalcon_array_fetch_string(&is_numeric, definition, SL("isNumeric"), PH_NOISY);
phalcon_update_property_this(this_ptr, SL("_isNumeric"), is_numeric TSRMLS_CC);
}

/**
* Check if the field is unsigned (only MySQL)
*/
Expand All @@ -202,6 +193,15 @@ PHP_METHOD(Phalcon_Db_Column, __construct){
phalcon_array_fetch_string(&dunsigned, definition, SL("unsigned"), PH_NOISY);
phalcon_update_property_this(this_ptr, SL("_unsigned"), dunsigned TSRMLS_CC);
}

/**
* Check if the field is numeric
*/
if (phalcon_array_isset_string(definition, SS("isNumeric"))) {
PHALCON_OBS_NVAR(is_numeric);
phalcon_array_fetch_string(&is_numeric, definition, SL("isNumeric"), PH_NOISY);
phalcon_update_property_this(this_ptr, SL("_isNumeric"), is_numeric TSRMLS_CC);
}

/**
* Check if the field is auto-increment/serial
Expand Down