Pluf Framework

Pluf Framework Commit Details


Date:2008-11-07 03:18:40 (16 years 5 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:8d29ac0f2a67d7a6fd9e7e2da00dd048aea02c7d
Parents: 69938949b2ac73b7f63978ddf9f71741c5bf77ab
Message:Fixed the quoting of the columns for the MySQL driver.

Changes:

File differences

src/Pluf/DB/Schema/MySQL.php
162162
163163
164164
165
166
165
166
167
167168
168169
169170
......
177178
178179
179180
180
181
182
181183
182184
183185
                $val['col'] = $idx;
            }
            $index[$this->con->pfx.$model->_a['table'].'_'.$idx] =
                sprintf('CREATE INDEX `%s` ON `%s` (`%s`);',
                        $idx, $this->con->pfx.$model->_a['table'], $val['col']);
                sprintf('CREATE INDEX `%s` ON `%s` (%s);',
                        $idx, $this->con->pfx.$model->_a['table'],
                        Pluf_DB_Schema::quoteColumn($val['col'], $this->con));
        }
        foreach ($model->_a['cols'] as $col => $val) {
            $field = new $val['type']();
                    sprintf('CREATE UNIQUE INDEX `%s` ON `%s` (%s);',
                            $col.'_unique_idx',
                            $this->con->pfx.$model->_a['table'],
                            $col);
                            Pluf_DB_Schema::quoteColumn($col, $this->con)
                            );
            }
        }
        return $index;

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.14544s using 13 queries.