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

fActiveRecord cannot handle MySQL tables that have columns of BIT(1) default value 0 #81

Open
jeffturcotte opened this issue Jul 10, 2012 · 0 comments
Labels

Comments

@jeffturcotte
Copy link
Member

Ticket #671 by Connor

I understand this may have been by design to discourage the use of BIT(1). It should hardly affect developers since they can use TINYINT(1) instead.

Comment by Connor

Here are more details: if the table has columns of BIT(1) default value 0, where class A extends fActiveRecord for that table,

then this evaluates:

$myrecord = new A();

but this will throw an fProgrammerException:

$myrecord = new A(array('name of some unique key' => 'value of that unique key'));

Comment by @wbond

Can you paste the exception message and backtrace?

Comment by Connor

Fatal error: Uncaught exception 'IneffectiveSubmissionException?' in /opt/wysperwyre/controller/UserController.php:43 Stack trace: #0 [internal function]: UserController?->login('dennis', 'password') #1 /var/www/wysperwyre.com/index.php(78): call_user_func_array(Array, Array) #2 {main} thrown in /opt/wysperwyre/controller/UserController.php on line 43

IneffectiveSubmissionException? and UserController? are classes which I wrote for my application, of course.

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

1 participant