# バグを見つけろ:React Native > コードは1つ。バグを見つけるか、バグがないことを示してください。 デイリーチャレンジ: 2026-08-19 (UTC) · Mid-Level ```tsx import * as SQLite from 'expo-sqlite' const db = SQLite.openDatabaseSync('blog.db') type Post = { id: number; title: string; author_id: number } export async function loadPostsWithAuthors() { const posts = await db.getAllAsync('SELECT id, title, author_id FROM posts') const enriched = [] for (const post of posts) { const author = await db.getFirstAsync( 'SELECT name FROM users WHERE id = ?', post.author_id ) enriched.push({ ...post, author }) } return enriched } ``` ## あなたの判断 - セキュリティ上の欠陥 - ロジックのバグ - コードスタイル - 問題なし 1日1回まで。回答するとすぐに正解が表示されます。 --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ja/daily/react-native