Closed (outdated)
Project:
Drupal core
Version:
8.1.x-dev
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2011 at 01:25 UTC
Updated:
13 Jul 2016 at 23:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mattconnolly commentedNow there's an issue number, I can attach the patch correctly named.
Comment #2
mattconnolly commentedWhy was the status of the patch "Ignored" i wonder?
Comment #3
mattconnolly commentedGo Testbot!
Comment #4
joachim commentedI've been bitten by this one a few times... good idea!
Comments should be a sentence with a capital letter and full stop.
I think it would be good to say 'escape' here, as that is the meaning of what is being done. Eg:
// Add backticks to escape field names.
The dot operator needs a space each side of it.
4 days to next Drupal core point release.
Comment #5
damien tournoud commentedThis is by design, see #371: resolve ANSI SQL-92/99/2003 reserved words conflict in query statements.
Comment #6
joachim commented> db_create_table correctly escapes field names when creating a table. But drupal_write_record does not
Then isn't this an inconsistency? You can create tables with the DB API that you then can't write to!
At the least we have a documentation bug -- drupal_write_record() should mention this.
Comment #7
valthebaldI think this issue was made irrelevant by DBTNG?
Comment #9
daffie commentedDrupal 8 no longer has a drupal_write_record() function.