Replies: 4 comments
-
Hi, ParaTest doesn't create any database, it only provides an environment variable unique to each process, and that variable is an integer. If you need it to be a letter, you can convert that integer with a simple trick like |
Beta Was this translation helpful? Give feedback.
-
Ah my bad. Is it possible to do this in the |
Beta Was this translation helpful? Give feedback.
-
You should to it in your bootstrap |
Beta Was this translation helpful? Give feedback.
-
Ok thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Summary
ParaTest creates databases suffixed with _1, _2, etc.
SingleStore also uses those suffixes for internal purposes.
This results in errors when trying to create the databases.
Is there a way to suffix the database names with strings instead? _a -> ... -> _z -> _aa -> _ab
Current behavior
ParaTest can't create databases suffixed with integers in SingleStore.
How to reproduce: command, code and error stack trace
Run an instance of SingleStore in Docker:
https://github.com/singlestore-labs/singlestoredb-dev-image#how-to-run-the-docker-image-on-linux-or-apple-intel
Change the PHPUnit environment to interact with SingleStore as the DB (just like you would with MySql).
Run tests.
PS: SingleStore is MySql compatible.
Stack trace from SingleStore itself:
Expected behavior
An option or manual hook to change the suffix to something like _a, _b, etc.
Beta Was this translation helpful? Give feedback.
All reactions