-
Notifications
You must be signed in to change notification settings - Fork 25
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
haveInDatabase insert value to table with 1 column #7
Comments
Please show the line of code that you used and the error message that you got. |
$id = $I->haveInDatabase('my_table', []); Message was about sql syntax error, resulting sql query looked like INSERT INTO my_table() VALUES () my_table has only id autoincrement column (postgres SERIAL) |
What exactly is a use case for inserting a row with auto increment id with no known fields? You are welcome to make a patch and raise a pull request though. |
I have a system with multiple entities of different nature and users could leave comments to them. Comments link to these entities via the table ("commentable"), the scheme looks like:
Ok, whats code of conduct and how I could set up project for dev? I tried to set up tests, but in my local installation, only DbTest & SqliteTest tests passed. Also got |
Hello! I have in my postgres DB table with 1 serial column (id) and not able to insert a row into this table in my test. I could insert a row into any other table that has more than 1 column, but not into the table that has the only id column. Is it possible, maybe with another method?
The text was updated successfully, but these errors were encountered: