Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

66-67 Data migration is broken #706

Merged
merged 1 commit into from Mar 27, 2013
Merged

66-67 Data migration is broken #706

merged 1 commit into from Mar 27, 2013

Conversation

joetsoi
Copy link
Contributor

@joetsoi joetsoi commented Mar 27, 2013

067_turn_extras_to_strings.py is currently broken due to 7677d69e , this is an example from a dump of pdeu before the change, after the change and what query should be executing.

pdeu=# select count(id) from package_extra  where left(value,1) = '"';
 count  
--------
 274194
(1 row)

pdeu=# select count(id) from package_extra  where substr(value,0,1) = '"';
 count 
-------
     0
(1 row)

pdeu=# select count(id) from package_extra  where substr(value,1,1) = '"';
 count  
--------
 274194
(1 row)

substr counts from 1, see examples in postgres docs

@ghost ghost assigned joetsoi Mar 27, 2013
@ghost ghost assigned amercader Mar 27, 2013
@amercader amercader merged commit 43ddc88 into master Mar 27, 2013
@smotornyuk smotornyuk deleted the 706-fix-data-migration branch December 19, 2018 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants