Fix PostgresStorageAdapter Pointers not working #3464
Fix PostgresStorageAdapter Pointers not working #3464mlakkadshaw wants to merge 1 commit intoparse-community:masterfrom
Conversation
|
Pointers should always be 10 chars as they are stored as their pointee's objectId. Do you have a precise case where that value is not 10 chars? |
|
If the person decided to use custom IDs instead of the system generated one then it might cause problems. |
|
Custom id's should always be 10 chars, also, note that this will completetly fail as you'll need to alter the tables and there is no upgrade strategy to alter all tables. |
In PostgresStorageAdapter the pointer type is declared as char[10], but if the size of the pointer is less than 10 chars, then it adds whitespace for the remaining characters, this cause the pointer to stop working