10
0
mirror of https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local synced 2024-11-01 03:33:46 +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) 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})