extract_command() should probably just be self.data.strip(" \t\n0123456789") Currently: "ALTER TABLE" will come back as "ALTER". Only the first "word" is returned by extract_command().
extract_command() should probably just be self.data.strip(" \t\n0123456789")
Currently: "ALTER TABLE" will come back as "ALTER". Only the first "word" is returned by extract_command().