usql
usql copied to clipboard
vector::_M_range_check @ "SELECT 1 FROM a.b WHERE 1 = 1 AND 1"
~/tmp/uSQL4CC/examples/sqlparse $ unix/sqlparse usql> SELECT 1 FROM a.b WHERE 1 = 1 AND 1 terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Aborted
There's a underflow in SQLNodeList.cpp (line 81). I simply replace the "size_t" to "long long" and it works.