From: Tim Otten Date: Mon, 31 Mar 2014 22:31:27 +0000 (-0700) Subject: GenCode - Apply SQL-escaping to table comments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=06459c91e5c0e1370477be288b173b26a7e04789;p=civicrm-core.git GenCode - Apply SQL-escaping to table comments Fix regression stemming from 9e64deca --- diff --git a/xml/templates/schema.tpl b/xml/templates/schema.tpl index 68c9015c91..8305c0484f 100644 --- a/xml/templates/schema.tpl +++ b/xml/templates/schema.tpl @@ -52,7 +52,7 @@ CREATE TABLE `{$table.name}` ( {if ! $first},{/if} {assign var='first' value=false} - `{$field.name}` {$field.sqlType}{if $field.collate} COLLATE {$field.collate}{/if} {if $field.required}{if $field.required == "false"}NULL{else}NOT NULL{/if}{/if} {if $field.autoincrement}AUTO_INCREMENT{/if} {if $field.default|count_characters}DEFAULT {$field.default}{/if} {if $field.comment}COMMENT '{$field.comment}'{/if} + `{$field.name}` {$field.sqlType}{if $field.collate} COLLATE {$field.collate}{/if} {if $field.required}{if $field.required == "false"}NULL{else}NOT NULL{/if}{/if} {if $field.autoincrement}AUTO_INCREMENT{/if} {if $field.default|count_characters}DEFAULT {$field.default}{/if} {if $field.comment}COMMENT '{ts escape=sql}{$field.comment}{/ts}'{/if} {/foreach} {* table.fields *} {if $table.primaryKey}