Pārlūkot izejas kodu

fix: resolved conflicts in database.py

version-14
Shariq Ansari pirms 3 gadiem
committed by GitHub
vecāks
revīzija
5c6c9bb5c4
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 0 papildinājumiem un 8 dzēšanām
  1. +0
    -8
      frappe/database/database.py

+ 0
- 8
frappe/database/database.py Parādīt failu

@@ -116,19 +116,11 @@ class Database(object):

"""
query = str(query)
<<<<<<< HEAD
if not run:
return query
=======

<<<<<<< HEAD
# remove \n \t from start of query and replace them with space anywhere in middle
query = re.sub(r'\s', ' ', query).lstrip()
>>>>>>> ac5effc7dd (fix: remove tab \t and newlines \n from start of query and remove from middle)
=======
# remove \n \t from start and end of query
query = re.sub(r'^\s*|\s*$', '', query)
>>>>>>> 7bb172365f (fix: only remove \n\t from start and end)

if re.search(r'ifnull\(', query, flags=re.IGNORECASE):
# replaces ifnull in query with coalesce


Notiek ielāde…
Atcelt
Saglabāt