10.09.2015 Views

Migrating Uber from MySQL to PostgreSQL

uber_migration_pypgday_2013

uber_migration_pypgday_2013

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Boolean Errors<br />

Code Changes<br />

As noted before, <strong>MySQL</strong> does not truly have a boolean<br />

type; BOOL and BOOLEAN are synonyms for TINYINT(1).<br />

These are the easiest errors <strong>to</strong> fix, usually it involves<br />

changing Python code <strong>to</strong> use True and False instead of<br />

1 and 0.<br />

Evan Klitzke (<strong>Uber</strong>, Inc.) <strong>Migrating</strong> <strong>Uber</strong> <strong>from</strong> <strong>MySQL</strong> <strong>to</strong> <strong>PostgreSQL</strong> March 13, 2013 35 / 59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!