klen / mixer

Mixer -- Is a fixtures replacement. Supported Django, Flask, SqlAlchemy and custom python objects.
Other
939 stars 96 forks source link

Update random() usage for cross-db compat #110

Closed jomasti closed 3 years ago

jomasti commented 5 years ago

MSSQL and Oracle do not have 'RANDOM()'. Using the custom constructs in sqlalchemy will allow for calling the right random function depending on the dialect being used.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-1.6%) to 85.118% when pulling 799f629a5f3edd6c97745450736f822e0aa52049 on jomasti:feature/func-random into 6af15d5e65d8a2ee8185f7777bf095d611ba13ae on klen:develop.

klen commented 3 years ago

@jomasti

Thank you for the PR.