changeset 689:13fb1392d2f2

Function setviastring() only concerned with table 'par'.
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 18 May 2020 19:15:11 +0900
parents 1aa16edc28e5
children 87ce0eef5872
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Mon May 18 19:07:52 2020 +0900
+++ b/s4-funcs.sh	Mon May 18 19:15:11 2020 +0900
@@ -1225,14 +1225,13 @@
   fi
 }
 setviastring() {
-  table=$1
+  table=par
   oifs="$IFS"
   IFS="&" 
-  for us in $2; do
+  for us in $1; do
     k=${us%%=*}
     v="`echo ${us#*=}|tr '%+' '= '|nkf -Ww -mQ|sed -e 's/\"/\"\"/g'`"
-    query "replace into $table values('$session', '$k', 'string', \"$v\");"
-    #echo $k=$v
+    setpar "$k" "string" "$v"
   done
   IFS="$oifs"
 }
@@ -1406,7 +1405,7 @@
       done
       ;;
     *)
-      setviastring par "$s"
+      setviastring "$s"
       ;;
   esac
 }

yatex.org