Platonides at gmail
May 25, 2012, 4:03 PM
Post #3 of 3
On 25/05/12 23:47, Jeroen De Dauw wrote:
> I have some test class in which I need to (temporary) add a table. I did
> some stuff that works locally for my (just constructing some SQL and
> passing it to wfGetDb()->safeQuery) but it fails on Jenkins, presumably
> because it's using SQLLite or whatever there. Is there a better way to add
> such tables?
What's the definition of your table?
It should be possible to write it in a way compatible with both MySQL
and SQLite. Problem: We support more backends.
Another option is to branch depending on the backend used.
And finally, there's the option to skip that test iif the backend is
SQLite (there's currently a test doing that on mysql, take a look at it).
Wikitech-l mailing list
Wikitech-l [at] lists