11.11.2015, 11:09
I have but one possible explanation: that column is a text type column. If the character 2 is stored and you try to fetch it as an int you will get its numerical character code, which is 50. See: http://www.asciitable.com/