1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

F #3600: Fix index

This commit is contained in:
Ruben S. Montero 2020-04-15 10:40:36 +02:00
parent 5158f956cb
commit c3e5eb90ae
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -848,7 +848,7 @@ class BackEndPostgreSQL < OneDBBacKEnd
def self.preprocess_query(query)
return query unless query.upcase.start_with?('REPLACE')
query[0, 6] = 'INSERT'
query[0, 7] = 'INSERT'
table_start = query.index('INTO ', 7) + 5
names_start = query.index('(', table_start) + 1