Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.68 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. sqlString = "SELECT t.id as id, t.parent, t.children, t.title, t.tag, " +
  2.                 "t.folder, t.context, t.goal, t.added, t.modified as modified, " +
  3.                 "t.duedate, t.startdate, " +
  4.                 "t.duetime, t.starttime, t.reminder, t.repeat, t.completed, " +
  5.                 "t.rep_advanced, t.status, " +
  6.                 "t.star, t.priority, t.length, t.timer, t.note, t.value, " +
  7.                 "f.id as folderId, f.label as folderLabel, f.value " +
  8.                 "as folderValue, f.privy as folderPrivy, " +
  9.                 "CASE WHEN t.folder=0 THEN '0' ELSE f.sortorder END as sortorder, " +
  10.                 "f.archived as folderArchived, f.modified " +
  11.                 "as folderModified";
  12.         sqlString += " FROM tasks t";
  13.         sqlString += " LEFT OUTER JOIN folders f ON t.folder=f.value";