-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Possibility to override more Types through __construct($config) string #367
Comments
Any comment on this? |
dg
added a commit
that referenced
this issue
Oct 8, 2020
I added options |
dg
added a commit
that referenced
this issue
Oct 14, 2020
dg
added a commit
that referenced
this issue
Oct 15, 2020
dg
added a commit
that referenced
this issue
Oct 30, 2020
dg
added a commit
that referenced
this issue
Oct 30, 2020
dg
added a commit
that referenced
this issue
Oct 30, 2020
dg
added a commit
that referenced
this issue
Oct 30, 2020
dg
added a commit
that referenced
this issue
Nov 2, 2020
dg
added a commit
that referenced
this issue
Nov 2, 2020
Jakub-Fajkus
pushed a commit
to peckadesign/dibi
that referenced
this issue
Feb 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can change only few types for normalize() behaviour.
JSON, DATE, DATETIME
like here:
dibi/src/Dibi/Connection.php
Lines 64 to 65 in 70e940f
We don't have access to modify behaviour for the rest - namely for TIME and TIME_INTERVAL.
This block is hit even when column native type is "TIME":
dibi/src/Dibi/Result.php
Lines 493 to 496 in 70e940f
dibi/examples/result-set-data-types.php
Lines 26 to 33 in 70e940f
Add TIME and TIME_INTERVAL to configurable parameters and allow to set them to
's', // as 'string'
to keep column as is.dibi/src/Dibi/Type.php
Lines 27 to 28 in 70e940f
2. Maybe some another flag to disable normalizer() along with detectTypes() completellly
dibi/src/Dibi/Result.php
Line 435 in 70e940f
and
dibi/src/Dibi/Result.php
Line 450 in 70e940f
Not in every environment such auto-re-typing to PHP's types is useful and to conform the freedom Ill suggest this change.
The text was updated successfully, but these errors were encountered: