[ http://issues.apache.org/jira/browse/DDLUTILS-21?page=comments#action_12330972 ]
Thomas Dudziak commented on DDLUTILS-21: ---------------------------------------- Hmm, interesting. Makes sense actually ;-) But I wonder why this works in non-delimited mode then. As per SQL-92 spec, the server should convert the identifier to uppercase (ie. TABLENAME) upon creation, so neither tables.name = "tableName" nor tables.name = 'tableName' (with single quotes) should work but rather tables.name = 'TABLENAME' Could you have a look into the sysobjects table and see what the exact string is in there ? > Sql Server drop statements fail without delimited identifiers > ------------------------------------------------------------- > > Key: DDLUTILS-21 > URL: http://issues.apache.org/jira/browse/DDLUTILS-21 > Project: DdlUtils > Type: Bug > Reporter: Richard Bounds > Assignee: Thomas Dudziak > Attachments: patch.txt > > The drop statements that are generated for sql server are prefixed by: > IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'tablename') > Without a delimeter being specified the statement changes to: > IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = tablename) > ...which fails (note the lack of quotes around tablename). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
