UnQL

Check-in [dc86933067]
Login

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

Overview
Comment:Fix an uninitialized structure that was causing segfaults.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dc86933067ca75d5631071803143c5ebbf1a1357
User & Date: drh 2011-06-21 17:42:01
Context
2011-06-21
20:36
Improvisations directed toward implementing the query engine. check-in: 26fd1b039d user: drh tags: trunk
17:42
Fix an uninitialized structure that was causing segfaults. check-in: dc86933067 user: drh tags: trunk
17:31
Rename TABLE to DATASET. check-in: b854a47a54 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/parse.y.

482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
}



////////////////////////// The INSERT command /////////////////////////////////
//
cmd(A) ::= INSERT INTO tabname(N) VALUE jvalue(V). {
  Command *pNew = xjd1PoolMalloc(p->pPool, sizeof(*pNew));
  if( pNew ){
    pNew->eCmdType = TK_INSERT;
    pNew->u.ins.name = N;
    pNew->u.ins.jvalue = V;
  }
  A = pNew;
}
cmd(A) ::= INSERT INTO tabname(N) select(Q). {
  Command *pNew = xjd1PoolMalloc(p->pPool, sizeof(*pNew));
  if( pNew ){
    pNew->eCmdType = TK_INSERT;
    pNew->u.ins.name = N;
    pNew->u.ins.pQuery = Q;
  }
  A = pNew;
}







|








|







482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
}



////////////////////////// The INSERT command /////////////////////////////////
//
cmd(A) ::= INSERT INTO tabname(N) VALUE jvalue(V). {
  Command *pNew = xjd1PoolMallocZero(p->pPool, sizeof(*pNew));
  if( pNew ){
    pNew->eCmdType = TK_INSERT;
    pNew->u.ins.name = N;
    pNew->u.ins.jvalue = V;
  }
  A = pNew;
}
cmd(A) ::= INSERT INTO tabname(N) select(Q). {
  Command *pNew = xjd1PoolMallocZero(p->pPool, sizeof(*pNew));
  if( pNew ){
    pNew->eCmdType = TK_INSERT;
    pNew->u.ins.name = N;
    pNew->u.ins.pQuery = Q;
  }
  A = pNew;
}