Index: pgCast.cpp =================================================================== RCS file: /projects/pgadmin3/src/schema/pgCast.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -Lsrc/schema/pgCast.cpp -Lsrc/schema/pgCast.cpp -u -w -r1.27 -r1.28 --- src/schema/pgCast.cpp +++ src/schema/pgCast.cpp @@ -45,7 +45,7 @@ sql += wxT(")\n WITHOUT FUNCTION"); else sql += wxT(")\n WITH FUNCTION ") + GetQuotedSchemaPrefix(GetCastNamespace()) + qtIdent(GetCastFunction()) + wxT("(") + GetSourceType() + wxT(")"); - if (GetCastContext() != wxT("Explicit")) + if (GetCastContext() != wxT("EXPLICIT")) sql += wxT("\n AS ") + GetCastContext(); sql += wxT(";\n"); }