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

Insert with no data #149

Open
vlakarados opened this issue Jul 25, 2017 · 0 comments
Open

Insert with no data #149

vlakarados opened this issue Jul 25, 2017 · 0 comments

Comments

@vlakarados
Copy link

Currently it seems impossible to make an insert with no data (utilising database defaults).

This is the error you get when not specifying anything:

array_keys() expects parameter 1 to be array, null given in file /vendor/aura/sqlquery/src/Common/Insert.php on line 349

Use case: For a step by step process of first creating and then populating some entity.

This may be achieved by either setting all VALUES to NULL, either by explicitly stating INSERT INTO some_table DEFAULT VALUES

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

1 participant