1

I have recently been writing an application using Play (great framework, can't really fault it). However, I'm getting a weird error when pushing the app to Heroku.

2013-08-12T15:52:17.641129+00:00 app[web.1]: [←[31merror←[0m] play - ERROR: synt
ax error at or near "user"
2013-08-12T15:52:17.744588+00:00 app[web.1]:   Position: 14 [ERROR:0, SQLSTATE:4
2601]

That's where it seems to be going wrong. The weird aspect of the error is the fact I don't have any tables or references to 'user' in my SQL-related code (evolutions, models and even my database). Would it be an issue with something being cached?

Thanks in advance, Adil

EDIT

I seem to have fixed the error:

  • I deleted the evolution scripts, for some reason they were filled with data I didn't need (e.g sql scripts to create a 'user table')
  • I updated all my references to the user table (even class names) to 'AppUser' (this is changeable).
  • I ran sql queries on the pgsql database directly, creating the tables manually.
  • I then disabled the evolutions plugin and removed the jdbc username and password when committing to heroku.
3
  • Are you 100% sure that you really don't have any tables or columns that are named user? Commented Aug 13, 2013 at 6:45
  • Yes, 100% sure. I also checked the database for any errors too. Commented Aug 13, 2013 at 7:17
  • 1
    Too localized, and is already fixed by the OP. Commented Aug 13, 2013 at 14:06

1 Answer 1

1

Postgresql has a default "user" table. I would recommend naming your table something else like member. It will conflict with it otherwise. Caps might work, or tildes `user`, but even then I'd recommend using a different name for the table. Wipe your table just in case there is an evolution backup.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.