SQLite

Ticket Change Details
Login
Overview

Artifact ID: 9c40070dd46915e9094ac3c277289432bce03094
Ticket: 264b970c4379fd4b94c1173d9623d619675f20c7
Crash when calling sqlite_rename_parent() with NULL parameters.
User & Date: drh 2014-04-14 19:46:52
Changes

  1. foundin changed to: "3.8.4.3"
  2. icomment:
    The sqlite_rename_parent() SQL function is an undocumented function used as
    part of the implementation of ALTER TABLE.  This function should never be
    access by an application.  But if an application does invoke the function and
    gives it a NULL parameter in the 1st or 2nd argument, a crash might result.
    
    <blockquote><verbatim>
    SELECT sqlite_rename_parent(NULL,1,1);
    </verbatim></blockquote>
    
    The problem appears to have existed since ALTER TABLE was first enhanced to
    be able to deal with foreign key constraints, by check-in [b4a10c39e726dc190]
    on 2009-09-26 for SQLite version 3.6.19.
    
  3. login: "drh"
  4. mimetype: "text/x-fossil-wiki"
  5. severity changed to: "Important"
  6. status changed to: "Open"
  7. title changed to:
    Crash when calling sqlite_rename_parent() with NULL parameters.
    
  8. type changed to: "Code_Defect"