Skip to content

Instantly share code, notes, and snippets.

@anathematic
Created May 11, 2011 23:42
Show Gist options
  • Save anathematic/967637 to your computer and use it in GitHub Desktop.
Save anathematic/967637 to your computer and use it in GitHub Desktop.
## Postgres cares about your data
postgres_cares=# create table cakes (
postgres_cares(# name varchar(10)
postgres_cares(# );
CREATE TABLE
postgres_cares=# insert into cakes (name) values('super chocolate');
ERROR: value too long for type character varying(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment