It might be a Postgresql thing, but when importing a site, the following error appears:

PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "1313765754943.5" LINE 1: ...ighwater) VALUES ('JonGriffinsBlogCategory', '1', '131376575... ^: INSERT INTO migrate_log (machine_name, process_type, starttime, initialHighwater) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( ) in MigrationBase->beginProcess() (line 700 of /var/www/sites/jongriffin.com/drupal-7/sites/all/modules/migrate/includes/base.inc).

The problem is that unlike MySQL, Postgres actually checks types. You are sending a float to an integer for starttime.

I will try for a patch, but I don't have a lot of time to test it.

Comments

tresero’s picture

Changing the field types to real fixes the problem. I will let a dev create a patch.

microtime returns a decimal point, hence postgresql will not accept that in a bigint field.

melinda.jackson’s picture

I'm having the same issue.

PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "1320700018188.2" LINE 1: ...itialHighwater) VALUES ('AllyStyleGuideTag', '1', '132070001... ^: INSERT INTO styleguidemigrate_log (machine_name, process_type, starttime, initialHighwater) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( ) in MigrationBase->beginProcess() (line 738 of /Library/Server/Web/Data/Sites/drupal/sites/all/modules/migrate/includes/base.inc)

mikeryan’s picture

Project: WordPress Migrate » Migrate
Version: 7.x-1.x-dev » 7.x-2.x-dev
Priority: Major » Normal

migrate_log is entirely handled by the Migrate module. Looks like we need to round the microtime() value.

mikeryan’s picture

Status: Active » Closed (duplicate)
liam morland’s picture

Issue tags: +PostgreSQL