OSDN Git Service

MERGE: リビジョン1714のマージ。SQL文からバッククオート(`)を取り除いた。
authorsakamocchi <o-takashi@sakamocchi.jp>
Sat, 31 Mar 2012 07:13:28 +0000 (16:13 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Sat, 31 Mar 2012 07:13:28 +0000 (16:13 +0900)
commit716737bbba72fd53a140e453567fc7976fd7293b
tree7d3a80fb43d8b9a7e065591703a9e89e6df04411
parent40e8acdbf9f6249aaaf8305719784301485a9956
MERGE: リビジョン1714のマージ。SQL文からバッククオート(`)を取り除いた。

http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1714

REMOVE: backtick (a.k.a backquote, grave accent) from identifier in SQL
statement

For enabling to use under several SQL implementations such as SQLite,
the sql statements generated by Nucleus CMS need to be compatible for
several SQL implements.

For this issue, we select ANSI SQL89 standard. According the standard,
identifier such as database name, table name and so on should consist of
alphanumeric and underscore with no quotations. ANSI SQL92 just allow us
to use reserved woords (a.k.a keywords) for identifier with double
quotation.

The identifier with backticks is MySQL extension. In detail, please
refer to MySQL document.
http://dev.mysql.com/doc/refman/5.0/en/identifiers.html
13 files changed:
install/index.php
install/install.sql
nucleus/convert/wordpress.php
nucleus/libs/ADMIN.php
nucleus/libs/COMMENT.php
nucleus/libs/backup.php
nucleus/libs/globalfunctions.php
nucleus/plugins/NP_SecurityEnforcer.php
nucleus/upgrades/upgrade.functions.php
nucleus/upgrades/upgrade3.3.php
nucleus/upgrades/upgrade3.4.php
nucleus/upgrades/upgrade3.5.php
nucleus/upgrades/upgrade3.6.php