Skip to content

Commit

Permalink
Fixed issue introduced in MySQL upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 15, 2009
1 parent 2e14a17 commit f4572e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion makedb.sql
Expand Up @@ -76,7 +76,7 @@ CREATE TABLE alextreg_entrypoints (
CREATE TABLE alextreg_papertrail (
id int not null auto_increment,
action text not null,
sql mediumtext not null,
sqltext mediumtext not null,
author varchar(128) not null,
entrydate datetime not null,
primary key (id)
Expand Down
5 changes: 3 additions & 2 deletions vendor/index.php
Expand Up @@ -36,8 +36,9 @@ function update_papertrail($action, $donesql, $extid)

// Fill in the papertrail.
$sql = 'insert into alextreg_papertrail' .
' (action, sql, author, entrydate)' .
' (action, sqltext, author, entrydate)' .
" values ('$sqlaction', '$sqlsql', '$sqlauthor', NOW())";

do_dbinsert($sql);
} // update_papertrail

Expand All @@ -62,7 +63,7 @@ function op_renderpapertrail()
$htmlentrydate = htmlentities($row['entrydate'], ENT_QUOTES);
$htmlsql = '';
if ($showsql)
$htmlsql = "<br>\n<code>'" . htmlentities($row['sql'], ENT_QUOTES) . "'</code>";
$htmlsql = "<br>\n<code>'" . htmlentities($row['sqltext'], ENT_QUOTES) . "'</code>";
echo " <li><b>$htmlaction</b>: <i>by $htmlauthor, on ${htmlentrydate}</i>${htmlsql}\n";
} // while
db_free_result($query);
Expand Down

0 comments on commit f4572e7

Please sign in to comment.