10
0
mirror of https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local synced 2024-10-31 19:23:42 +01:00

COLLATE in sqlite3

This commit is contained in:
Anthony Scemama 2014-11-12 15:34:43 +01:00
parent 53aaf0cb71
commit 581677574f

View File

@ -156,7 +156,7 @@ class EMSL_local:
conn = sqlite3.connect(self.db_path)
c = conn.cursor()
c.execute("SELECT DISTINCT elt from all_value WHERE name=:name_us",
c.execute("SELECT DISTINCT elt from all_value WHERE name=:name_us COLLATE NOCASE",
{"name_us": basis_name})
data = c.fetchall()
@ -174,7 +174,7 @@ class EMSL_local:
d = []
for elt in elts:
c.execute("SELECT DISTINCT data from all_value WHERE name=:name_cur AND elt=:elt_cur",
c.execute("SELECT DISTINCT data from all_value WHERE name=:name_cur COLLATE NOCASE AND elt=:elt_cur COLLATE NOCASE",
{"name_cur": basis_name,
"elt_cur": elt})