-
Notifications
You must be signed in to change notification settings - Fork 107
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
Fix strict types in App::getTag() #1541
Merged
mvorisek
merged 13 commits into
atk4:develop
from
PhilippGrashoff:string_typecast_in_getTag
Dec 13, 2020
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ebd184f
Add (string) typecast to encodeHTML() call
PhilippGrashoff 41f72f1
Merge remote-tracking branch 'atk4/develop' into string_typecast_in_g…
PhilippGrashoff 9360f3c
change to fix proposed by ibelar
PhilippGrashoff fce318b
make CS fixer happy
PhilippGrashoff 4cf2ae5
Revert all
mvorisek 327b765
Merge branch 'develop' into string_typecast_in_getTag
mvorisek 92f89dd
Fix in ui "from php to ui" method
mvorisek 508debb
fix fast skip
mvorisek 140327e
Merge remote-tracking branch 'origin/develop' into string_typecast_in…
mvorisek 53187fb
fix for data/806
mvorisek ba58cd7
Revert "fix for data/806"
mvorisek 1a65f69
better fix
mvorisek 1724f83
fix by checking if pure numerical
mvorisek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@georgehristov because of atk4/data#806 when validation is triggered.
I am not sure with this. We can switch to mandatory or allow zero IDs for non SQL persistences only.
Do you know, if zero as ID is actually a problem with some DB engine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to reproduce http://sqlfiddle.com/#!9/d28469/1 - at least with MySQL zero is understood as empty ID and AI is applied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sqlite hovewer supports zero - https://dbfiddle.uk/?rdbms=sqlite_3.27&fiddle=f2d14bf69f3a8d2ae85b3ff07703c9fa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with last fix I think we can keep "required" (and thus reject zero IDs)
/cc @DarkSide666 @georgehristov