CtrlZvi added a comment.
I agree 100% with using the not being coupled to strings and using the native integer types. It seems like a positive change for a whole host of reasons. But that's a much larger change in a system I don't have experience in, and my experiments with trying to support both the strings returned by MySQL and PostgreSQL and the integers returned by SQLite were not successful. In the specific case I found in Wikibase, the complexity comes from taking the results and using them as keys in an associative array, which autocasts returned strings to integer, then taking those keys and comparing them to what comes from the database in a type sensitive way. MySQL and PostgreSQL require the cast back into string for that comparison, SQLite requires no cast. If that's the only place that's sensitive like that, a local workaround could be used, but I'm assuming if there's one place that breaks, there are others, too. TASK DETAIL https://phabricator.wikimedia.org/T316487 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: aaron, CtrlZvi Cc: Krinkle, CtrlZvi, Aklapper, Hellket777, LisafBia6531, Astuthiodit_1, 786, Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule, Beast1978, ItamarWMDE, Un1tY, Akuckartz, Hook696, darthmon_wmde, Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Vali.matei, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, Neuronton, Scott_WUaS, Wikidata-bugs, aude, Dinoguy1000, waldyrious, Lydia_Pintscher, Nikerabbit, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org