Migration script 'train_migrate01_backend_to_store.py' doesn't support
INSTR function for postgresql database. INSTR function does support
sqlite3 and mysql.
Used 'POSITION' function instead of 'INSTR' function if database is
postgresql.
Closes-Bug: #1840898
Reviewed: https:/ /review. opendev. org/677694 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=6e525647f60 8839890a8a00a8e 03a540a1891471
Committed: https:/
Submitter: Zuul
Branch: master
commit 6e525647f608839 890a8a00a8e03a5 40a1891471
Author: Abhishek Kekane <email address hidden>
Date: Wed Aug 21 10:38:14 2019 +0000
Fix INSTR not supported for postgresql
Migration script 'train_ migrate01_ backend_ to_store. py' doesn't support
INSTR function for postgresql database. INSTR function does support
sqlite3 and mysql.
Used 'POSITION' function instead of 'INSTR' function if database is
postgresql.
Closes-Bug: #1840898
Change-Id: I62c592f0885927 b873ed35a1efe4a 0f8407e7dee