Skip to content

Added support for column inline comments in SQLite#819

Merged
deeky666 merged 1 commit intodoctrine:masterfrom
hason:sqlite_comment
Jan 10, 2016
Merged

Added support for column inline comments in SQLite#819
deeky666 merged 1 commit intodoctrine:masterfrom
hason:sqlite_comment

Conversation

@hason
Copy link
Copy Markdown
Contributor

@hason hason commented Mar 18, 2015

No description provided.

@doctrinebot
Copy link
Copy Markdown

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1176

We use Jira to track the state of pull requests and the versions they got
included in.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm... why is DBAL not using a prepared statement here? :|

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we make sure here that $comment does not contain \n? Otherwise the generated SQL will be invalid. We could either strip newlines or throw exception...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@hason hason force-pushed the sqlite_comment branch 2 times, most recently from 4fca981 to c27e90f Compare March 18, 2015 12:29
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hason this change is not part of your PR, is it? Can we try to not mix different things here?

@hason
Copy link
Copy Markdown
Contributor Author

hason commented Jun 16, 2015

@deeky666 This is necessary for correct handling custom types in ORM

@deeky666 deeky666 merged commit a4dfce2 into doctrine:master Jan 10, 2016
deeky666 added a commit that referenced this pull request Jan 10, 2016
Added support for inline comments for SQLite

fixes #1118
@deeky666
Copy link
Copy Markdown
Member

Merged manually via 3dcf0cc. Added more tests, made AbstractPlatform::getInlineColumnCommentSQL() throw exception if not supported and fixed some CS. Thanks @hason !

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants