db: while converting strings to int/bigint check for invalid characters
 - backport from trunk (rev# 9730)
db: while converting strings to bigint check for invalid characters
 - completing previous commit
 - backport from trunk (rev# 9732)