DatabaseSchema_pgsql::addField() calls $this->_createFieldSql() while that function is in fact called $this->createFieldSql().
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 338586-add-field-undefined-function.patch | 1.18 KB | damien tournoud |
| #5 | 338586-add-field-undefined-function.patch | 3.1 KB | swentel |
| #3 | 338586-add-field-undefined-function.patch | 894 bytes | damien tournoud |
| #1 | 338586-add-field-undefined-function.patch | 895 bytes | damien tournoud |
Comments
Comment #1
damien tournoud commentedComment #2
swentel commentedSeems like there's another one: Call to undefined method DatabaseSchema_pgsql::_processField()
Comment #3
damien tournoud commentedComment #4
swentel commentedAll succeed except 7 fails on schema api
Insert with a default succeeded. Other schema.test 50 SchemaTestCase->testSchema()
Insert into the new table succeeded. Other schema.test 62 SchemaTestCase->testSchema()
Two fields were successfully inserted. Other schema.test 66 SchemaTestCase->testSchema()
Insert with a serial succeeded. Other schema.test 80 SchemaTestCase->testSchema()
Insert with a serial succeeded. Other schema.test 82 SchemaTestCase->testSchema()
The serial is monotone. Other schema.test 84 SchemaTestCase->testSchema()
There were two rows. Other schema.test 87 SchemaTestCase->testSchema()
Comment #5
swentel commentedOk, patch contains 3 other very small fixes in schema.test which makes all database tests pass,
HOWEVER, someone with more postgres skills should find out why those small fixes make them pass and why a default value of 0 makes it fail ..
Comment #6
damien tournoud commentedWell, no, you will not modify the test case to satisfy the PostgreSQL driver!
Comment #7
swentel commentedI know, I should have marked it CNW also, just wanted to point out with the patch where the failures were :)
Comment #8
damien tournoud commentedThis should be better.
Comment #9
swentel commentedLast patch makes all Databases tests pass, so marking rtbc
Comment #10
grub3 commentedYes it works like a charm.
Comment #11
grub3 commentedWhat is the impact of this bug on database creation under PostgreSQL?
Should I delete the Drupal7 database and create a new one from scratch?
Comment #12
dries commentedCommitted to CVS HEAD. Thanks! :)
Comment #13
damien tournoud commentedComment #14
serenecloud commentedAgreed with the above. After applying http://drupal.org/node/337794 and this patch I am able to run all simpletests on php5, apache2, postgres 8.1 without this error:
Final Simpletest output: