Database independent code

NancyDru - June 11, 2007 - 02:03
Project:Coder
Version:5.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Based on How to write database independent code:

1) Suggest db_query_range when a LIMIT is specified.
2) You might already do this, but suggest NULL instead of ''.
3) Check for table names in braces - one of mine slipped through with back ticks on it.

#1

NancyDru - September 7, 2007 - 21:39

Is this a duplicate now?

#2

douggreen - September 8, 2007 - 10:52

Sorry, this ticket fell off my first page of issues. Thanks for bringing it back to the forefront.

  1. Thanks! I just added this
  2. I think that short of adding a SQL parser to coder, that this is going to be difficult. Exactly what are you suggesting?
  3. This was implemented about a week ago.

#3

NancyDru - September 8, 2007 - 13:50

2. I don't remember exactly. It was mentioned in the post I referenced.

 
 

Drupal is a registered trademark of Dries Buytaert.