wiki.techinc.nl/tests/phpunit/includes/db
physikerwelt 5048f30f69 Fix: numFields wrong for sqlite
Currently the first row of the result
is used to return the number of fields.
This fix corrects that calculation, which has returned
twice the number of fields before. The reason for that
was that the resulting data array has the following form:
array() {
 [0] => value_0
 ["field_name0"] =>value_0
 [1] => value_1
 ["field_name1"] =>value_1
...
Furthermore the constant 0 (int) is returned if the result
set is empty. This issue should be corrected in the future,
since the number or fields should be answered in a metadata context
independent of the data stored in the relation.

Bug: 65578
Change-Id: I399c7c857dcbd774cc4eb6102bbfe8a8764b07c9
2014-05-21 13:09:13 +00:00
..
DatabaseMysqlBaseTest.php Pass phpcs-strict on some test files (6/11) 2014-04-24 18:26:19 +00:00
DatabaseSqliteTest.php Fix: numFields wrong for sqlite 2014-05-21 13:09:13 +00:00
DatabaseSQLTest.php Pass phpcs-strict on some test files (6/11) 2014-04-24 18:26:19 +00:00
DatabaseTest.php Pass phpcs-strict on some test files (6/11) 2014-04-24 18:26:19 +00:00
DatabaseTestHelper.php Avoid fatal error if doing a DB query after close() 2014-04-30 17:04:06 -07:00
LBFactoryTest.php Avoid interacting with LBFactory singleton in tests 2014-01-02 14:27:19 +01:00
ORMRowTest.php Fixed some @params documentation (tests) 2014-04-17 20:43:42 +02:00
ORMTableTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00
TestORMRowTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00