Subversion Repositories oidplus

Rev

Rev 1116 | Rev 1148 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1116 Rev 1130
Line 109... Line 109...
109
         * @return string
109
         * @return string
110
         */
110
         */
111
        public function setupSetTablePrefix(string $cont, string $table, string $prefix): string {
111
        public function setupSetTablePrefix(string $cont, string $table, string $prefix): string {
112
                $cont = str_replace('['.$table.']', '['.$prefix.$table.']', $cont);
112
                $cont = str_replace('['.$table.']', '['.$prefix.$table.']', $cont);
113
                $cont = str_replace('PK_'.$table, 'PK_'.$prefix.$table, $cont);
113
                $cont = str_replace('PK_'.$table, 'PK_'.$prefix.$table, $cont);
114
                $cont = str_replace('IX_'.$table, 'PK_'.$prefix.$table, $cont);
114
                return str_replace('IX_'.$table, 'PK_'.$prefix.$table, $cont);
115
                return $cont;
-
 
116
        }
115
        }
117
 
116
 
118
        /**
117
        /**
119
         * @param string $database
118
         * @param string $database
120
         * @return string
119
         * @return string
Line 160... Line 159...
160
                                $x = preg_replace("@from\\s+(.+)\\s+(".$REGEX_JOIN.")\\s+(.+)(".$REGEX_JOIN.")@ismU",
159
                                $x = preg_replace("@from\\s+(.+)\\s+(".$REGEX_JOIN.")\\s+(.+)(".$REGEX_JOIN.")@ismU",
161
                                                                  'from (\1 '.$INVALIDATE_SEQUENCE.'\2 \5) \6', $x, 1, $count);
160
                                                                  'from (\1 '.$INVALIDATE_SEQUENCE.'\2 \5) \6', $x, 1, $count);
162
                        } while ($count > 0);
161
                        } while ($count > 0);
163
                        $x = str_replace($INVALIDATE_SEQUENCE,'',$x);
162
                        $x = str_replace($INVALIDATE_SEQUENCE,'',$x);
164
                }
163
                }
165
                $sql = implode(' union ', $ary);
164
                return implode(' union ', $ary);
166
                return $sql;
-
 
167
        }
165
        }
168
 
166
 
169
        /**
167
        /**
170
         * @param bool $bool
168
         * @param bool $bool
171
         * @return string
169
         * @return string