coopernurse/gorp — pull request #109 by LeGEC (2013-11-27 14:32:42+00:00)
Title: "MySQLDialect.CreateTableSuffix()" panics with uninitialized fields

Prior behavior : when using MySQLDialect as a dialect, if one of its fields "Encoding" or "Engine" was not initialized, "dbMap.CreateTable()" would generate an invalid request, and executing it would trigger an error.
The error message would be produced by MySQL : "ERROR 1064 (42000): 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 '=' "

Proposed behavior : if one of the fields is not initialized (value is empty string), panic when building the query, with a more explicit message : "gorp - uninitialized MySQLDialect.Engine, MySQLDialect.Encoding. Check that your MySQLDialect was correctly initialized when declared."

The panic is triggered in "MySQLDialect.CreateTableSuffix()".