# Postgres bpchar Default Value Throwing Error

**URL:** <https://forum.liquibase.org/t/postgres-bpchar-default-value-throwing-error/3262>\
**Category:** General Discussion\
**Created:** [August 13, 2015, 4:57am UTC](https://forum.liquibase.org/t/postgres-bpchar-default-value-throwing-error/3262 "2015-08-13T04:57:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephenLawrence](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@StephenLawrence](https://forum.liquibase.org/u/StephenLawrence)\
**Post date:** [August 13, 2015, 4:57am UTC](https://forum.liquibase.org/t/postgres-bpchar-default-value-throwing-error/3262/1 "2015-08-13T04:57:00Z")

</div>

I have generated a migration from a postgres source but when I try to import that xml migration into a new database I have errors with bpchar columns:

[ERROR] Reason: liquibase.exception.DatabaseException: ERROR: syntax error at or near “N”

[ERROR] Position: 163 [Failed SQL: CREATE TABLE my\_table (id BIGSERIAL NOT NULL, group\_id BIGINT NOT NULL, award\_id BIGINT NOT NULL, archived BPCHAR(1) **DEFAULT ‘‘N’::bpchar’** NOT NULL, time\_created TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL, time\_modified TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL)]

Here is what the xml looks like:

The defaultValue is being quoted when it imports (it is adding single quotes around it). Is there any way to ask liquibase to NOT add quotes around the default value?

---

<div class="post-metadata">

**Author:** ![un1439416369730r15id](https://avatars.discourse-cdn.com/v4/letter/u/da6949/32.png) [@un1439416369730r15id](https://forum.liquibase.org/u/un1439416369730r15id)\
**Post date:** [August 13, 2015, 4:57am UTC](https://forum.liquibase.org/t/postgres-bpchar-default-value-throwing-error/3262/2 "2015-08-13T04:57:00Z")

</div>

I forced the defaultValue to defaultValueNumeric but I am not sure if that is the proper solution.
