/ Check-in [bf81aabf]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enhance sqlite3_bind_parameter_index so that is does not segfault if you call it incorrectly by passing NULL in place of the parameter name. Ticket #1032. (CVS 2159)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bf81aabff1303b66f12d28b730d19b7cbdb2de6a
User & Date: drh 2004-12-09 18:29:14
Context
2004-12-10
02:08
Add a -DUSE_TCL_STUBS to the standard Makefile. This might help with ticket #1034. Or maybe not. (CVS 2160) check-in: 4c30c373 user: drh tags: trunk
2004-12-09
18:29
Enhance sqlite3_bind_parameter_index so that is does not segfault if you call it incorrectly by passing NULL in place of the parameter name. Ticket #1032. (CVS 2159) check-in: bf81aabf user: drh tags: trunk
2004-12-07
15:41
Only evaluate expressions once for UPDATE and INSERT statements that have BEFORE triggers. Fix for ticket #980. (CVS 2158) check-in: 4852186a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeapi.c.

   589    589     int i;
   590    590     if( p==0 ){
   591    591       return 0;
   592    592     }
   593    593     createVarMap(p); 
   594    594     for(i=0; i<p->nVar; i++){
   595    595       const char *z = p->azVar[i];
   596         -    if( z && strcmp(z,zName)==0 ){
          596  +    if( z && zName && strcmp(z,zName)==0 ){
   597    597         return i+1;
   598    598       }
   599    599     }
   600    600     return 0;
   601    601   }