Lines Matching defs:stmt
517 sqlite3_stmt *stmt = NULL;
526 rc = sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL);
533 idx = sqlite3_bind_parameter_index(stmt, ":device");
534 rc = sqlite3_bind_int64(stmt, idx, device_cache);
538 sqlite3_finalize(stmt);
542 idx = sqlite3_bind_parameter_index(stmt, ":inode");
543 rc = sqlite3_bind_int64(stmt, idx, inode_cache);
547 sqlite3_finalize(stmt);
551 idx = sqlite3_bind_parameter_index(stmt, ":mtime");
552 rc = sqlite3_bind_int64(stmt, idx, mtime_cache);
556 sqlite3_finalize(stmt);
560 idx = sqlite3_bind_parameter_index(stmt, ":parent");
561 rc = sqlite3_bind_text(stmt, idx, parent, -1, NULL);
565 sqlite3_finalize(stmt);
569 idx = sqlite3_bind_parameter_index(stmt, ":file");
570 rc = sqlite3_bind_text(stmt, idx, file, -1, NULL);
574 sqlite3_finalize(stmt);
578 sqlite3_step(stmt);
579 sqlite3_finalize(stmt);
706 sqlite3_stmt *stmt = NULL;
734 rc = sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL);
744 while (sqlite3_step(stmt) == SQLITE_ROW) {
746 row->device = sqlite3_column_int64(stmt, 0);
747 row->inode = sqlite3_column_int64(stmt, 1);
748 row->mtime = sqlite3_column_int64(stmt, 2);
749 row->parent = estrdup((const char *) sqlite3_column_text(stmt, 3));
750 row->file = estrdup((const char *) sqlite3_column_text(stmt, 4));
755 sqlite3_finalize(stmt);
1468 sqlite3_stmt *stmt = NULL;
1523 rc = sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL);
1527 idx = sqlite3_bind_parameter_index(stmt, ":name");
1528 rc = sqlite3_bind_text(stmt, idx, rec->name, -1, NULL);
1530 sqlite3_finalize(stmt);
1534 idx = sqlite3_bind_parameter_index(stmt, ":section");
1535 rc = sqlite3_bind_text(stmt, idx, rec->section, -1, NULL);
1537 sqlite3_finalize(stmt);
1541 idx = sqlite3_bind_parameter_index(stmt, ":name_desc");
1542 rc = sqlite3_bind_text(stmt, idx, rec->name_desc, -1, NULL);
1544 sqlite3_finalize(stmt);
1548 idx = sqlite3_bind_parameter_index(stmt, ":desc");
1549 rc = sqlite3_bind_text(stmt, idx, rec->desc.data,
1552 sqlite3_finalize(stmt);
1556 idx = sqlite3_bind_parameter_index(stmt, ":lib");
1557 rc = sqlite3_bind_text(stmt, idx, rec->lib.data,
1560 sqlite3_finalize(stmt);
1564 idx = sqlite3_bind_parameter_index(stmt, ":return_vals");
1565 rc = sqlite3_bind_text(stmt, idx, rec->return_vals.data,
1568 sqlite3_finalize(stmt);
1572 idx = sqlite3_bind_parameter_index(stmt, ":env");
1573 rc = sqlite3_bind_text(stmt, idx, rec->env.data,
1576 sqlite3_finalize(stmt);
1580 idx = sqlite3_bind_parameter_index(stmt, ":files");
1581 rc = sqlite3_bind_text(stmt, idx, rec->files.data,
1584 sqlite3_finalize(stmt);
1588 idx = sqlite3_bind_parameter_index(stmt, ":exit_status");
1589 rc = sqlite3_bind_text(stmt, idx, rec->exit_status.data,
1592 sqlite3_finalize(stmt);
1596 idx = sqlite3_bind_parameter_index(stmt, ":diagnostics");
1597 rc = sqlite3_bind_text(stmt, idx, rec->diagnostics.data,
1600 sqlite3_finalize(stmt);
1604 idx = sqlite3_bind_parameter_index(stmt, ":errors");
1605 rc = sqlite3_bind_text(stmt, idx, rec->errors.data,
1608 sqlite3_finalize(stmt);
1612 idx = sqlite3_bind_parameter_index(stmt, ":md5_hash");
1613 rc = sqlite3_bind_text(stmt, idx, rec->md5_hash, -1, NULL);
1615 sqlite3_finalize(stmt);
1619 idx = sqlite3_bind_parameter_index(stmt, ":machine");
1621 rc = sqlite3_bind_text(stmt, idx, rec->machine, -1, NULL);
1623 rc = sqlite3_bind_null(stmt, idx);
1625 sqlite3_finalize(stmt);
1629 rc = sqlite3_step(stmt);
1631 sqlite3_finalize(stmt);
1635 sqlite3_finalize(stmt);
1643 rc = sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL);
1647 idx = sqlite3_bind_parameter_index(stmt, ":device");
1648 rc = sqlite3_bind_int64(stmt, idx, rec->device);
1650 sqlite3_finalize(stmt);
1654 idx = sqlite3_bind_parameter_index(stmt, ":inode");
1655 rc = sqlite3_bind_int64(stmt, idx, rec->inode);
1657 sqlite3_finalize(stmt);
1661 idx = sqlite3_bind_parameter_index(stmt, ":mtime");
1662 rc = sqlite3_bind_int64(stmt, idx, rec->mtime);
1664 sqlite3_finalize(stmt);
1668 idx = sqlite3_bind_parameter_index(stmt, ":file");
1669 rc = sqlite3_bind_text(stmt, idx, rec->file_path, -1, NULL);
1671 sqlite3_finalize(stmt);
1675 idx = sqlite3_bind_parameter_index(stmt, ":md5_hash");
1676 rc = sqlite3_bind_text(stmt, idx, rec->md5_hash, -1, NULL);
1678 sqlite3_finalize(stmt);
1682 idx = sqlite3_bind_parameter_index(stmt, ":id");
1683 rc = sqlite3_bind_int64(stmt, idx, mandb_rowid);
1685 sqlite3_finalize(stmt);
1689 rc = sqlite3_step(stmt);
1690 sqlite3_finalize(stmt);
1718 rc = sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL);
1729 idx = sqlite3_bind_parameter_index(stmt, ":device");
1730 sqlite3_bind_int64(stmt, idx, rec->device);
1731 idx = sqlite3_bind_parameter_index(stmt, ":inode");
1732 sqlite3_bind_int64(stmt, idx, rec->inode);
1733 idx = sqlite3_bind_parameter_index(stmt, ":mtime");
1734 sqlite3_bind_int64(stmt, idx, rec->mtime);
1735 idx = sqlite3_bind_parameter_index(stmt, ":id");
1736 sqlite3_bind_int64(stmt, idx, mandb_rowid);
1737 idx = sqlite3_bind_parameter_index(stmt, ":md5");
1738 sqlite3_bind_text(stmt, idx, rec->md5_hash, -1, NULL);
1739 idx = sqlite3_bind_parameter_index(stmt, ":file");
1740 sqlite3_bind_text(stmt, idx, rec->file_path, -1, NULL);
1741 rc = sqlite3_step(stmt);
1742 sqlite3_finalize(stmt);
1816 sqlite3_stmt *stmt = NULL;
1827 rc = sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL);
1834 idx = sqlite3_bind_parameter_index(stmt, ":md5_hash");
1835 rc = sqlite3_bind_text(stmt, idx, mymd5, -1, NULL);
1839 sqlite3_finalize(stmt);
1846 if (sqlite3_step(stmt) == SQLITE_ROW) {
1847 sqlite3_finalize(stmt);
1852 sqlite3_finalize(stmt);