New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run fixture/load User
fails to load User data
#172
Comments
The |
Thank you for your posting! Works perfectly with MySQL, but don't work with MS SQL Server.. |
@AlekseyBykov how exactly it doesn't work? |
Hi, samdark! Thank you for your reply! I installed advanced application template, created two databases yii2advanced: one in the local MySQL another in the remote MS SQL Server. Applied the migration on both the databases. Next, I loaded fixture into the MySQL table tbl_user, the data is loaded successfully. Then tried to load fixture into the MS SQL Server's table [dbo].[tbl_user] but get exception:
Tried to define the table name as described below, several variants, all the have not helped:
|
I execute
Full stacktrace and command output:
Additional info
|
Testing bolilerplate was refactored. Is it still an issue? |
I'm closing the issue unless further information provided. |
This is still an issue |
I've created a fix for this: yiisoft/yii2#13572 |
The PR yiisoft/yii2#13572 is merged. Is the issue resolved? |
What steps will reproduce the problem?
Execute
php yii fixture/load User
;What's expected?
Data from
tests\codeception\common\fixtures\data\init_login.php
should be loaded todb
;What do you get instead?
Not loaded.
How to fix:
Set
public $dataFile = __DIR__ . '/data/init_login.php';
insideUserFixture
Additional info
The text was updated successfully, but these errors were encountered: