/ Check-in [5350229b]
Login

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

Overview
Comment:Remove an unreachable branch from the sqlite3_value_numeric_type() interface.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5350229b52b18a4961858a30538c5c75e5bd3048
User & Date: drh 2014-07-26 20:12:56
Context
2014-07-29
11:54
Have calls to the xFilter() method of rtree virtual tables ensure that cursor is initialized before proceeding. Fix for [d2889096e7bdeac]. check-in: 8cc41b0b user: dan tags: trunk
05:49
Enhancements and updates to the Win32 mutex subsystem. check-in: 18984c32 user: mistachkin tags: winMutex
2014-07-28
15:01
Merge recent trunk changes into the threads branch. check-in: 163c247b user: drh tags: threads
2014-07-26
20:12
Remove an unreachable branch from the sqlite3_value_numeric_type() interface. check-in: 5350229b user: drh tags: trunk
16:47
Avoid unnecessary no-op calls to applyNumericAffinity() for a small performance improvement. check-in: 413d7287 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

   288    288   ** is appropriate.  But only do the conversion if it is possible without
   289    289   ** loss of information and return the revised type of the argument.
   290    290   */
   291    291   int sqlite3_value_numeric_type(sqlite3_value *pVal){
   292    292     int eType = sqlite3_value_type(pVal);
   293    293     if( eType==SQLITE_TEXT ){
   294    294       Mem *pMem = (Mem*)pVal;
   295         -    ApplyNumericAffinity(pMem);
          295  +    applyNumericAffinity(pMem);
   296    296       eType = sqlite3_value_type(pVal);
   297    297     }
   298    298     return eType;
   299    299   }
   300    300   
   301    301   /*
   302    302   ** Exported version of applyAffinity(). This one works on sqlite3_value*,