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:
parent
53aaf0cb71
commit
581677574f
@ -156,7 +156,7 @@ class EMSL_local:
|
|||||||
conn = sqlite3.connect(self.db_path)
|
conn = sqlite3.connect(self.db_path)
|
||||||
c = conn.cursor()
|
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})
|
{"name_us": basis_name})
|
||||||
|
|
||||||
data = c.fetchall()
|
data = c.fetchall()
|
||||||
@ -174,7 +174,7 @@ class EMSL_local:
|
|||||||
d = []
|
d = []
|
||||||
|
|
||||||
for elt in elts:
|
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,
|
{"name_cur": basis_name,
|
||||||
"elt_cur": elt})
|
"elt_cur": elt})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user