escaping columns names in insert and update by [] #131

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@Gutek
Contributor

Gutek commented Mar 2, 2012

I run into a problem with one of my column names and it was an issue with not escaping column name in insert and update.

wrapping column name in [] for MS SQL should be enough :)

@robconery

This comment has been minimized.

Show comment Hide comment
@robconery

robconery May 2, 2012

Contributor

Believe it or not, I put this in there on purpose :). If you need it escaped, the penalty is that you need to escape it yourself :). I'm NOT being snarky/mean - but reserved words, spaces and other characters are not terribly good design

Contributor

robconery commented May 2, 2012

Believe it or not, I put this in there on purpose :). If you need it escaped, the penalty is that you need to escape it yourself :). I'm NOT being snarky/mean - but reserved words, spaces and other characters are not terribly good design

@robconery robconery closed this May 2, 2012

@Gutek

This comment has been minimized.

Show comment Hide comment
@Gutek

Gutek May 2, 2012

Contributor

true :) however sometimes you do not have a choice and you need to use what is provided to you :( like in this case a DB :)

Contributor

Gutek commented May 2, 2012

true :) however sometimes you do not have a choice and you need to use what is provided to you :( like in this case a DB :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment