Skip to content

Commit

Permalink
fix(jans-linux-setup): rdbm index (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Mar 30, 2022
1 parent be9e63c commit ec3bd1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jans-linux-setup/jans_setup/setup_app/installers/rdbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,13 @@ def create_indexes(self):
tblCls,
ind_name,
i+1,
tmp_str.safe_substitute({'field':attr.name, 'data_type': data_type})
tmp_str.safe_substitute({'field':attr.name})
)
self.dbUtils.exec_rdbm_query(sql_cmd)
elif Config.rdbm_type == 'pgsql':
sql_cmd ='CREATE INDEX ON "{}" (({}));'.format(
tblCls,
tmp_str.safe_substitute({'field':attr.name, 'data_type': data_type})
tmp_str.safe_substitute({'field':attr.name})
)
self.dbUtils.exec_rdbm_query(sql_cmd)

Expand Down
8 changes: 4 additions & 4 deletions jans-linux-setup/jans_setup/static/rdbm/mysql_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@
},
"__common__": {
"JSON": [
"CAST($field->'$.v' AS $data_type ARRAY)",
"CAST($field->'$.v[0]' AS $data_type)",
"CAST($field->'$.v[1]' AS $data_type)",
"CAST($field->'$.v[2]' AS $data_type)"
"CAST($field->'$.v' AS CHAR(128) ARRAY)",
"CAST($field->'$.v[0]' AS CHAR(128))",
"CAST($field->'$.v[1]' AS CHAR(128))",
"CAST($field->'$.v[2]' AS CHAR(128))"
],
"fields": [
"uid"
Expand Down

0 comments on commit ec3bd1b

Please sign in to comment.