Hex Artifact Content
Not logged in

Artifact 2df8e511fd162db7f6e89651031e17f751b0d7b0:

Ticket change [2df8e511fd] - Ticket [2ee159304e] Error in timeline (armv5tel-linux) showing events status still Open with 1 other change by anonymous 2010-11-30 20:33:57.
0000: 44 20 32 30 31 30 2d 31 31 2d 33 30 54 32 30 3a  D 2010-11-30T20:
0010: 33 33 3a 35 37 0a 4a 20 2b 63 6f 6d 6d 65 6e 74  33:57.J +comment
0020: 20 5c 6e 5c 6e 3c 68 72 5c 73 2f 3e 3c 69 3e 61   \n\n<hr\s/><i>a
0030: 6e 6f 6e 79 6d 6f 75 73 5c 73 63 6c 61 69 6d 69  nonymous\sclaimi
0040: 6e 67 5c 73 74 6f 5c 73 62 65 5c 73 76 69 72 69  ng\sto\sbe\sviri
0050: 63 5c 73 61 64 64 65 64 5c 73 6f 6e 5c 73 32 30  c\sadded\son\s20
0060: 31 30 2d 31 31 2d 33 30 5c 73 32 30 3a 33 33 3a  10-11-30\s20:33:
0070: 35 37 3a 3c 2f 69 3e 3c 62 72 5c 73 2f 3e 5c 6e  57:</i><br\s/>\n
0080: 53 6f 2c 5c 73 6d 61 6e 69 66 65 73 74 5f 70 61  So,\smanifest_pa
0090: 72 73 65 5c 73 69 6e 63 6c 75 64 65 73 3a 5c 72  rse\sincludes:\r
00a0: 5c 6e 3c 76 65 72 62 61 74 69 6d 3e 5c 72 5c 6e  \n<verbatim>\r\n
00b0: 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73  \s\s\s\s\s\s\s\s
00c0: 70 2d 3e 72 44 61 74 65 5c 73 3d 5c 73 64 62 5f  p->rDate\s=\sdb_
00d0: 64 6f 75 62 6c 65 28 30 2e 30 2c 5c 73 22 53 45  double(0.0,\s"SE
00e0: 4c 45 43 54 5c 73 6a 75 6c 69 61 6e 64 61 79 28  LECT\sjulianday(
00f0: 25 51 29 22 2c 5c 73 6e 65 78 74 5f 74 6f 6b 65  %Q)",\snext_toke
0100: 6e 28 26 78 2c 30 29 29 3b 5c 72 5c 6e 3c 2f 76  n(&x,0));\r\n</v
0110: 65 72 62 61 74 69 6d 3e 5c 72 5c 6e 5c 72 5c 6e  erbatim>\r\n\r\n
0120: 57 68 69 6c 65 5c 73 74 68 65 5c 73 74 61 67 5f  While\sthe\stag_
0130: 69 6e 73 65 72 74 5c 73 63 61 6c 6c 65 64 5c 73  insert\scalled\s
0140: 69 6e 5c 73 6d 61 6e 69 66 65 73 74 5f 63 72 6f  in\smanifest_cro
0150: 73 73 6c 69 6e 6b 28 29 5c 73 64 6f 65 73 3a 5c  sslink()\sdoes:\
0160: 72 5c 6e 3c 76 65 72 62 61 74 69 6d 3e 5c 72 5c  r\n<verbatim>\r\
0170: 6e 5c 73 5c 73 64 62 5f 70 72 65 70 61 72 65 28  n\s\sdb_prepare(
0180: 26 73 2c 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73 22  &s,\r\n\s\s\s\s"
0190: 52 45 50 4c 41 43 45 5c 73 49 4e 54 4f 5c 73 74  REPLACE\sINTO\st
01a0: 61 67 78 72 65 66 28 74 61 67 69 64 2c 74 61 67  agxref(tagid,tag
01b0: 74 79 70 65 2c 73 72 63 49 64 2c 6f 72 69 67 69  type,srcId,origi
01c0: 64 2c 76 61 6c 75 65 2c 6d 74 69 6d 65 2c 72 69  d,value,mtime,ri
01d0: 64 29 22 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73 22  d)"\r\n\s\s\s\s"
01e0: 5c 73 56 41 4c 55 45 53 28 25 64 2c 25 64 2c 25  \sVALUES(%d,%d,%
01f0: 64 2c 25 64 2c 25 51 2c 3a 6d 74 69 6d 65 2c 25  d,%d,%Q,:mtime,%
0200: 64 29 22 2c 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73  d)",\r\n\s\s\s\s
0210: 74 61 67 69 64 2c 5c 73 74 61 67 74 79 70 65 2c  tagid,\stagtype,
0220: 5c 73 73 72 63 49 64 2c 5c 73 72 69 64 2c 5c 73  \ssrcId,\srid,\s
0230: 7a 56 61 6c 75 65 2c 5c 73 72 69 64 5c 72 5c 6e  zValue,\srid\r\n
0240: 5c 73 5c 73 29 3b 5c 72 5c 6e 5c 73 5c 73 64 62  \s\s);\r\n\s\sdb
0250: 5f 62 69 6e 64 5f 64 6f 75 62 6c 65 28 26 73 2c  _bind_double(&s,
0260: 5c 73 22 3a 6d 74 69 6d 65 22 2c 5c 73 6d 74 69  \s":mtime",\smti
0270: 6d 65 29 3b 5c 72 5c 6e 3c 2f 76 65 72 62 61 74  me);\r\n</verbat
0280: 69 6d 3e 5c 72 5c 6e 5c 72 5c 6e 57 68 69 6c 65  im>\r\n\r\nWhile
0290: 5c 73 74 68 65 5c 73 63 61 6c 6c 5c 73 61 74 5c  \sthe\scall\sat\
02a0: 73 6d 61 6e 69 66 65 73 74 5f 63 72 6f 73 73 6c  smanifest_crossl
02b0: 69 6e 6b 28 29 5c 73 64 6f 65 73 3a 5c 72 5c 6e  ink()\sdoes:\r\n
02c0: 3c 76 65 72 62 61 74 69 6d 3e 5c 72 5c 6e 5c 73  <verbatim>\r\n\s
02d0: 5c 73 5c 73 5c 73 70 72 69 6f 72 5c 73 3d 5c 73  \s\s\sprior\s=\s
02e0: 64 62 5f 69 6e 74 28 30 2c 5c 72 5c 6e 5c 73 5c  db_int(0,\r\n\s\
02f0: 73 5c 73 5c 73 5c 73 5c 73 22 53 45 4c 45 43 54  s\s\s\s\s"SELECT
0300: 5c 73 72 69 64 5c 73 46 52 4f 4d 5c 73 74 61 67  \srid\sFROM\stag
0310: 78 72 65 66 22 5c 72 5c 6e 5c 73 5c 73 5c 73 5c  xref"\r\n\s\s\s\
0320: 73 5c 73 5c 73 22 5c 73 57 48 45 52 45 5c 73 74  s\s\s"\sWHERE\st
0330: 61 67 69 64 3d 25 64 5c 73 41 4e 44 5c 73 6d 74  agid=%d\sAND\smt
0340: 69 6d 65 3c 25 2e 31 37 67 22 5c 72 5c 6e 5c 73  ime<%.17g"\r\n\s
0350: 5c 73 5c 73 5c 73 5c 73 5c 73 22 5c 73 4f 52 44  \s\s\s\s\s"\sORD
0360: 45 52 5c 73 42 59 5c 73 6d 74 69 6d 65 5c 73 44  ER\sBY\smtime\sD
0370: 45 53 43 22 2c 5c 72 5c 6e 5c 73 5c 73 5c 73 5c  ESC",\r\n\s\s\s\
0380: 73 5c 73 5c 73 74 61 67 69 64 2c 5c 73 70 2d 3e  s\s\stagid,\sp->
0390: 72 44 61 74 65 5c 72 5c 6e 5c 73 5c 73 5c 73 5c  rDate\r\n\s\s\s\
03a0: 73 29 3b 5c 72 5c 6e 3c 2f 76 65 72 62 61 74 69  s);\r\n</verbati
03b0: 6d 3e 5c 72 5c 6e 5c 72 5c 6e 49 5c 73 74 68 69  m>\r\n\r\nI\sthi
03c0: 6e 6b 5c 73 74 68 61 74 5c 73 74 68 65 5c 73 3c  nk\sthat\sthe\s<
03d0: 74 74 3e 25 2e 31 37 67 3c 2f 74 74 3e 5c 73 70  tt>%.17g</tt>\sp
03e0: 72 69 6e 74 66 5c 73 6b 69 6e 64 5c 73 6f 66 5c  rintf\skind\sof\
03f0: 73 70 72 6f 6d 70 74 5c 73 73 68 6f 75 6c 64 5c  sprompt\sshould\
0400: 73 62 65 5c 73 6d 6f 76 65 64 5c 73 69 6e 74 6f  sbe\smoved\sinto
0410: 5c 73 64 62 5f 62 69 6e 64 5f 64 6f 75 62 6c 65  \sdb_bind_double
0420: 2c 5c 73 61 73 5c 73 62 65 66 6f 72 65 2e 5c 73  ,\sas\sbefore.\s
0430: 4f 74 68 65 72 77 69 73 65 5c 73 74 68 65 72 65  Otherwise\sthere
0440: 5c 73 6d 61 79 5c 73 62 65 5c 73 72 6f 75 6e 64  \smay\sbe\sround
0450: 69 6e 67 5c 73 70 72 6f 62 6c 65 6d 73 2c 5c 73  ing\sproblems,\s
0460: 6c 69 6b 65 5c 73 74 68 6f 73 65 5c 73 49 5c 73  like\sthose\sI\s
0470: 61 6d 5c 73 65 78 70 65 72 69 65 6e 63 69 6e 67  am\sexperiencing
0480: 2e 5c 72 5c 6e 5c 72 5c 6e 4e 6f 74 69 63 65 5c  .\r\n\r\nNotice\
0490: 73 74 68 61 74 5c 73 74 68 65 5c 73 74 61 67 5f  sthat\sthe\stag_
04a0: 69 6e 73 65 72 74 5c 73 72 65 73 75 6c 74 65 64  insert\sresulted
04b0: 2c 5c 73 69 6e 5c 73 62 6f 74 68 5c 73 63 6f 6d  ,\sin\sboth\scom
04c0: 70 75 74 65 72 73 2c 5c 73 69 6e 3a 5c 72 5c 6e  puters,\sin:\r\n
04d0: 3c 76 65 72 62 61 74 69 6d 3e 5c 72 5c 6e 52 45  <verbatim>\r\nRE
04e0: 50 4c 41 43 45 5c 73 49 4e 54 4f 5c 73 74 61 67  PLACE\sINTO\stag
04f0: 78 72 65 66 28 74 61 67 69 64 2c 74 61 67 74 79  xref(tagid,tagty
0500: 70 65 2c 73 72 63 49 64 2c 6f 72 69 67 69 64 2c  pe,srcId,origid,
0510: 76 61 6c 75 65 2c 6d 74 69 6d 65 2c 72 69 64 29  value,mtime,rid)
0520: 5c 73 56 41 4c 55 45 53 28 31 31 2c 31 2c 37 34  \sVALUES(11,1,74
0530: 2c 37 34 2c 27 33 36 35 27 2c 32 34 35 35 35 32  ,74,'365',245552
0540: 35 2e 34 32 32 34 30 37 34 31 2c 37 34 29 3b 5c  5.42240741,74);\
0550: 72 5c 6e 3c 2f 76 65 72 62 61 74 69 6d 3e 5c 72  r\n</verbatim>\r
0560: 5c 6e 5c 72 5c 6e 57 68 69 6c 65 5c 73 74 68 65  \n\r\nWhile\sthe
0570: 5c 73 70 72 69 6e 74 66 2d 73 74 79 6c 65 5c 73  \sprintf-style\s
0580: 53 51 4c 5c 73 71 75 65 72 69 65 73 5c 73 77 69  SQL\squeries\swi
0590: 74 68 5c 73 3c 74 74 3e 25 2e 31 37 67 3c 2f 74  th\s<tt>%.17g</t
05a0: 74 3e 5c 73 68 61 64 5c 73 64 69 66 66 65 72 65  t>\shad\sdiffere
05b0: 6e 74 5c 73 72 65 73 75 6c 74 73 5c 73 69 6e 5c  nt\sresults\sin\
05c0: 73 74 68 65 5c 73 74 77 6f 5c 73 63 6f 6d 70 75  sthe\stwo\scompu
05d0: 74 65 72 73 2e 0a 4b 20 32 65 65 31 35 39 33 30  ters..K 2ee15930
05e0: 34 65 37 32 31 33 34 39 61 61 65 32 30 65 37 61  4e721349aae20e7a
05f0: 38 31 35 35 63 37 65 36 63 32 62 30 34 31 61 39  8155c7e6c2b041a9
0600: 0a 55 20 61 6e 6f 6e 79 6d 6f 75 73 0a 5a 20 64  .U anonymous.Z d
0610: 39 33 34 62 33 39 63 39 62 32 39 61 37 62 64 39  934b39c9b29a7bd9
0620: 34 32 35 39 36 34 62 65 32 34 35 33 39 39 64 0a  425964be245399d.