Skip to content

Commit

Permalink
fix(PostgresGrammar): Fix wrapping of enum types
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed May 12, 2020
1 parent 54ec32b commit 2d65e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Grammars/PostgresGrammar.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ component extends="qb.models.Grammars.BaseGrammar" singleton {

function compileAddType( blueprint, commandParameters ) {
var values = arrayMap( commandParameters.values, function( val ) {
return wrapValue( val );
return "'" & val & "'";
} );
return "CREATE TYPE #wrapColumn( commandParameters.name )# AS ENUM (#arrayToList( values, ", " )#)";
}
Expand Down

0 comments on commit 2d65e08

Please sign in to comment.