SQLite
Diff
Not logged in

Differences From Artifact [e536218d]:

To Artifact [1ddc1c93]:


   187    187       if( z==0 ) return;
   188    188       len = 0;
   189    189       for(z2=z; *z2; len++){
   190    190         SQLITE_SKIP_UTF8(z2);
   191    191       }
   192    192     }
   193    193     p1 = sqlite3_value_int(argv[1]);
          194  +#ifdef SQLITE_SUBSTR_COMPATIBILITY
          195  +  if( p1==0 ) p1 = 1; /* <rdar://problem/6778339> */
          196  +#endif
   194    197     if( argc==3 ){
   195    198       p2 = sqlite3_value_int(argv[2]);
   196    199       if( p2<0 ){
   197    200         p2 = -p2;
   198    201         negP2 = 1;
   199    202       }
   200    203     }else{