seznam / SuperiorMySqlpp

SuperiorMySQL++
GNU Lesser General Public License v3.0
31 stars 20 forks source link

'Commited' should be 'commiTTed', at least in SQL queries #5

Closed jschrotter closed 8 years ago

jschrotter commented 8 years ago

There are typos in

SuperiorMySqlpp::IsolationLevel    {
        ReadUncommited,
        ReadCommited,
..

Committed should have double 't'. It's not only about correct spelling. It results in errors when creating transactions:

SuperiorMySqlpp::detail::toQueryString(IsolationLevel isolationLevel)
        {
            switch (isolationLevel)
            {
                case IsolationLevel::ReadUncommited:
                    return "READ UNCOMMITED";

                case IsolationLevel::ReadCommited:
                    return "READ COMMITED";
...

An error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COMMITED; START TRANSACTION READ WRITE