Repository navigation
Conversation
Remove MDB2_PORTABILITY_EMPTY_TO_NULL from MDB2 options; fixes issue owncloud#2371
|
Can't test: @eMerzh @Raydiation @bartv2 @icewind1991 @butonic |
|
@sodnpoo Please state that ouy license this under MIT license - or you can sign the contributors agreement - @karlitschek |
|
@owncloud-bot retest this please |
|
@DeepDiver1975 Good point. A one line is normally ok but still would be good. |
|
@sodnpoo Can I ask you to implement a small and simple unit test? Would help a lot to get the problem sorted out on all databases. THX |
|
for what i've tested it's ok for me ... and it's usally a good idea to have this so i'm in favor of merging... but i'm also behind @DeepDiver1975 it would be great to have some small unit test :) |
|
@DeepDiver1975 how do I go about signing the contributors agreement? |
|
👎 @DeepDiver1975 why exactly did you disable the portability for MSSQL in the first place? |
mssql is broken as well - just like Oracle ??? Queries/unit tests which execute fine on other dbs failed with mssql. |
|
AFAIK mssql knows the difference between '' and NULL and stores them just fine. hm mdb2 will also convert null to emptystring in return values I think. maybe thats what makes it work in mssql? we need more debug output when the database queries fail ... |
|
for those to lazy to read the docs: |
yes - and this causes the failure as mdb2 converts empty strings to null. Having MDB2_PORTABILITY_EMPTY_TO_NULL disabled -> works |
|
removing the not null constraint works just as well. even on oracle. so either loose portability or drop the notnull constraint |
Hmm - looks like I don't see the issue. |
|
The problem is that disabling MDB2_PORTABILITY_EMPTY_TO_NULL does not teach oracle the difference between '' and NULL. We would get rid of the issues, yes. Leaving this portability flag enabled will force use to take care of related problems in a way that solves them for oracle as well. I'll try to make this a list: MDB2_PORTABILITY_EMPTY_TO_NULL enabled:
MDB2_PORTABILITY_EMPTY_TO_NULL disabled:
-> issues related to '' vs NULL will only surface when testing on oracle. Automating that is far from done and it seems I am the only one testing that db. Disabling MDB2_PORTABILITY_EMPTY_TO_NULL will reducing the chances of finding these issues. And I don't want them to surface at large installations running oracle. The mentioned github issues can all be solved by allowing null values in string columns, which fixes the problem in a database portable way. Disabling db portability features is not a way to solve bugs IMHO. |
|
@bartv2 whats the null vs '' situation for oracle with doctrine? |
|
closed as mentioned in #3666 |
Remove MDB2_PORTABILITY_EMPTY_TO_NULL from MDB2 options; fixes issue #2371