Fix for issue #2206: unreliable db typecast for numerical column types

Fixes issue #2206: unreliable db typecast for numerical column types.
Unit test for "CDbColumnSchema" has been created.
Seems no BC break.