Changeset 20317
- Timestamp:
- 2011/02/22 10:44:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Query.php
r20167 r20317 730 730 $sth =& $this->prepare($n, $types, $result_types); 731 731 if (PEAR::isError($sth) && $this->force_run) { 732 return ;732 return $sth; 733 733 } 734 734 735 735 $result = $this->execute($sth, $arr); 736 736 if (PEAR::isError($result) && $this->force_run) { 737 return ;737 return $sth; 738 738 } 739 739 … … 938 938 return $err; 939 939 } 940 941 /** 942 * SQLクエリの結果セットのカラム名だけを取得する 943 * 944 * @param string $n 実行する SQL 文 945 * @param array $arr ブレースホルダに挿入する値 946 * @param boolean エラーが発生しても処理を続行する場合 true 947 * @param mixed $types プレースホルダの型指定 デフォルトnull = string 948 * @param mixed $result_types 返値の型指定またはDML実行(MDB2_PREPARE_MANIP) 949 * @return array 実行結果の配列 950 */ 951 function getQueryDefsFields($n ,$arr = array(), $ignore_err = false, $types = null, $result_types = MDB2_PREPARE_RESULT ){ 952 953 $n = $this->dbFactory->sfChangeMySQL($n); 954 955 $sth =& $this->prepare($n, $types, $result_types); 956 if (PEAR::isError($sth) && ($this->force_run || $ignore_err)) { 957 return; 958 } 959 960 $result = $this->execute($sth, $arr); 961 if (PEAR::isError($result) && ($this->force_run || $ignore_err)) { 962 return; 963 } 964 $arrRet = $result->getColumnNames(); 965 //PREPAREの解放 966 $sth->free(); 967 968 return $arrRet; 969 } 970 940 971 } 941 972
Note: See TracChangeset
for help on using the changeset viewer.