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

This is really an odd issue!!!!!!!!!!!!! #97

Open
RobertZito opened this issue Mar 16, 2014 · 1 comment
Open

This is really an odd issue!!!!!!!!!!!!! #97

RobertZito opened this issue Mar 16, 2014 · 1 comment

Comments

@RobertZito
Copy link

Okay, I have been fighting with this all day and I found an odd pattern. I have a table named inventory, every time I use inventory.using(connection).all I get an error [Error: ORA-00942: table or view does not exist]. In the trace I see the table name select t0.id AS c0 FROM inventorys t0 [], note the "s". When I rename the table to inventorys the code works, where is this s coming from and can this really be the issue?

@ioneyed
Copy link

ioneyed commented Mar 31, 2014

I believe this library automatically appends an S to the table names of which you named your model.

You can do the following:
var Monkies = persist.define('Monkies',{
//model definition here
},{tableName:'inventory'});

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

No branches or pull requests

2 participants