-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Issues with PDO and our data #2448
Comments
I have tried to save an entry today, that has Publish Tabs in it. Publish Tabs don't send any data through, but PDO is still expecting a value to be present; The value it recieves is
|
Adding PDO was supposed to make our API so much easier, but instead, after looking through the relevant classes, it is so much more complicated. I really want to help debug and fix this, but I have no idea where to even start. |
Thought the same thing, but I assumed this is only a rough first step and a long way to go until release. To be more specific, I don't really understand why there are two database classes now, |
Yep, there's still a way off to go to clear it up and have it production ready. It's a little bit more effort than I thought it'd be, but the hard part is done :)
That's me being a little ambitious/naive by thinking eventually there will be |
There's nothing naive about being ambitious :) I've kind of fixed my immediate issue, by forcing the Publish Tabs field locally to send Very confused, but definitely sure we need to re-address how we process queries. |
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015
Usign bindValue makes it easier to support NULL in general. Fixes symphonycms#2448 Using bindValue allows us to insert NULLs in integer columns.
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015 Picked from 69439c6
Usign bindValue makes it easier to support NULL in general. Fixes symphonycms#2448 Using bindValue allows us to insert NULLs in integer columns. Picked from 158b87d
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws>
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015 Picked from 69439c6
Usign bindValue makes it easier to support NULL in general. Fixes symphonycms#2448 Using bindValue allows us to insert NULLs in integer columns. Picked from 158b87d
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws>
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws>
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015 Picked from 69439c6 Picked from 33102ad
Usign bindValue makes it easier to support NULL in general. Fixes symphonycms#2448 Using bindValue allows us to insert NULLs in integer columns. Picked from 158b87d Picked from dee9e5a
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws> Picked from e6c7673
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015 Picked from 69439c6 Picked from 33102ad
Usign bindValue makes it easier to support NULL in general. Fixes symphonycms#2448 Using bindValue allows us to insert NULLs in integer columns. Picked from 158b87d Picked from dee9e5a
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws> Picked from e6c7673
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws> Co-authored-by: Nicolas Brassard <nitriques@users.noreply.github.com> Picked from e6c7673
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015 Picked from 69439c6 Picked from 33102ad Picked from 5355f60
Usign bindValue makes it easier to support NULL in general. Fixes symphonycms#2448 Using bindValue allows us to insert NULLs in integer columns. Picked from 158b87d Picked from dee9e5a Picked from 55723a3
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws> Co-authored-by: Nicolas Brassard <nitriques@users.noreply.github.com> Picked from e6c7673 Picked from fee6f90
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re #2604 Fixes #2562 Re #2472 Re #2448 Fixes #2425 Re #2015 Picked from 69439c6 Picked from 33102ad Picked from 5355f60 Picked from fb6bcec
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re #2015 Fixes #2425 Fixes #2448 Fixes #2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws> Co-authored-by: Nicolas Brassard <nitriques@users.noreply.github.com> Picked from e6c7673 Picked from fee6f90 Picked from a35ce85
This commit brings a new API for the datbase layer. Instead of creating our dynamic SQL queries with concat and sprintf The way it works is that you first start with on of the factory methods available in the Database class. You then use the created DatabaseStatement and its chainable API to add `part` to the clause. This is very much a WIP. The API will change at some point. Re symphonycms#2604 Fixes symphonycms#2562 Re symphonycms#2472 Re symphonycms#2448 Fixes #2425 Re symphonycms#2015 Picked from 69439c6 Picked from 33102ad Picked from 5355f60 Picked from fb6bcec
This commit is based on the original PDO implementation from the integration branch. It replaces the original PDO changes with the new Query Builder API. Picked from 989299b Picked from 5ba3664 Re symphonycms#2015 Fixes #2425 Fixes symphonycms#2448 Fixes symphonycms#2562 Co-authored-by: Nils Werner <nils.werner@gmail.com> Co-authored-by: Brendan Abbott <brendan@bloodbone.ws> Co-authored-by: Nicolas Brassard <nitriques@users.noreply.github.com> Picked from e6c7673 Picked from fee6f90 Picked from a35ce85
Since the PDO upgrade, using the
query
function from the database classes means that we can't passnull
as a value any more.PDO expects an actual value for a column, or to use
bindValue
and explicitly setPDO:: PARAM_NULL
for the type. As we don't use that inquery
we can't define the type properly, and get errors instead.So, the manager classes need to migrate over to using
prepare
andbindValue
to function correctly again. I would be uncomfortable in allowing a0
to go through to the table in place ofnull
as this could have consequences further down the line that we don't know yet.The text was updated successfully, but these errors were encountered: