sebastianbergmann / dbunit

DbUnit port for PHP/PHPUnit.
https://phpunit.de/
Other
225 stars 186 forks source link

Error on insert into columns that have "integer" names #131

Closed yourwebmaker closed 6 years ago

yourwebmaker commented 10 years ago

The value list is correct but looks like the db extension does not set the params correctly

1) Foo\Tests\Core\Database\Repository\Song\SongRepositoryFunctionalTest::mustReturnACollectionOfSongsFindingSongsFromAnArtist
PHPUnit_Extensions_Database_Operation_Exception: COMPOSITE[INSERT] operation failed on query: 
                INSERT INTO `cifraclub_test`.`views_musicas_pt`
                (`id_musica`, `id_artista`, `meshits`, `semanahits`, `totalhits`, `semanahits_old`, `1_old`, `2_old`, `3_old`, `4_old`, `5_old`, `6_old`, `7_old`, `1`, `2`, `3`, `4`, `5`, `6`, `7`)
                VALUES
                (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
             using args: Array
(
    [0] => 1
    [1] => 1
    [2] => 40000
    [3] => 400
    [4] => 1000
    [5] => 123
    [6] => 21
    [7] => 654
    [8] => 87
    [9] => 879
    [10] => 65
    [11] => 879
    [12] => 879
    [13] => 
    [14] => 
    [15] => 
    [16] => 
    [17] => 
    [18] => 
    [19] => 2
)
 [SQLSTATE[23000]: Integrity constraint violation: 1048 Column '1' cannot be null]
stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions.