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

Saving resources to database #63

Closed
KacerCZ opened this issue Apr 3, 2015 · 0 comments
Closed

Saving resources to database #63

KacerCZ opened this issue Apr 3, 2015 · 0 comments

Comments

@KacerCZ
Copy link

KacerCZ commented Apr 3, 2015

During migration from Nette 2.0.18 to Nette 2.3.1 I found problem with saving resources to database as LOB.

Nette 2.0 used bindValue() with autodetected types before calling execute() on prepared query.
See here: https://github.com/nette/nette/blob/v2.0.18/Nette/Database/Statement.php#L83
Nette 2.3 passes parameters directly to execute.

This difference is problem when I try to save resource - it is saved to database as string "Resource id #260", because PDO needs to have set correct binding to save conent of resource.
Is it possible to add binding of values into Database\Connection::query()?

@dg dg closed this as completed in 98b3610 Apr 22, 2015
dg added a commit that referenced this issue Apr 22, 2015
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