Code Quality Comparison of Firebird, MySQL, and PostgreSQL
PVS-Studio has performed the analysis of the code of open source databases: Firebird, MySQL, PostgreSQL. The result is pretty good for Firebird:
So, the code-quality rankings are as follows:
1 place - Firebird and PostgreSQL.
2 place - MySQL.
More details:
Code Quality Comparison of Firebird, MySQL, and PostgreSQL