My favorites | Sign in
Logo
                
Search
for
Updated Dec 21, 2008 by possible248
Labels: Phase-Requirements, Phase-Implementation
SqlSyntax  
Describes how SQL should be written for BurstCMS

Introduction

Because BurstCMS is designed so that the same modules can run in different databases, without any sort of modification, there are certain restrictions on SQL syntax.

Names

Table, column, and other names in the database ought to fit the regex ^[A-Za-z][A-Za-z0-9_]{0,19}$ although this will not be enforced.

Quoting

The SQL standard of using single quotes to quote values and double quotes to quote table names and such should be obeyed. Before your SQL is executed, BurstCMS will run SET sql_mode='ANSI_QUOTES' in MySQL to make the standard-quote-style SQL work.

Reserved words

As the list of reserved words varies from database to database, affix a prefix to all table names and such in the database to avoid a conflict with a reserved word.


Sign in to add a comment
Hosted by Google Code