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

dbo_sqlite3 doesn't parse floats properly #61

Open
ghost opened this issue Oct 11, 2013 · 0 comments
Open

dbo_sqlite3 doesn't parse floats properly #61

ghost opened this issue Oct 11, 2013 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 11, 2013

Created by derrick, 7th Jul 2010. (originally Lighthouse ticket #12):


currently, the function column doesn't represent floats as all the possibilities sqlite3 understands

2.1 on http://www.sqlite.org/datatype3.html states that a float can be represented like such:

"If the declared type for a column contains any of the strings "REAL", "FLOA", or "DOUB" then the column has REAL affinity." meaning it's considered a float.

therefore the last conditional needs to be updated to

if (strpos($col, 'numeric') !== false || strpos($col, 'decimal') !== false || strpos($col, 'real') !== false || strpos($col, 'doub') !== false) {

please can this last condition be updated to reflect this

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants