Hey, we can quote identifiers with backticks in MySQL. Yay!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2564 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -142,18 +142,18 @@ public class MySQLLiaison extends BaseLiaison
|
|||||||
// from DatabaseLiaison
|
// from DatabaseLiaison
|
||||||
public String columnSQL (String column)
|
public String columnSQL (String column)
|
||||||
{
|
{
|
||||||
return column;
|
return "`" + column + "`";
|
||||||
}
|
}
|
||||||
|
|
||||||
// from DatabaseLiaison
|
// from DatabaseLiaison
|
||||||
public String tableSQL (String table)
|
public String tableSQL (String table)
|
||||||
{
|
{
|
||||||
return table;
|
return "`" + table + "`";
|
||||||
}
|
}
|
||||||
|
|
||||||
// from DatabaseLiaison
|
// from DatabaseLiaison
|
||||||
public String indexSQL (String index)
|
public String indexSQL (String index)
|
||||||
{
|
{
|
||||||
return index;
|
return "`" + index + "`";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user