This commit is contained in:
2026-03-18 17:48:16 +07:00
parent a9020b0388
commit ad117fe837
2 changed files with 59 additions and 1 deletions

View File

@@ -204,7 +204,8 @@ app.get('/api/tables/:tableName/data', requireAuth, async (req, res) => {
if (value && value.trim()) {
params.push(`%${value}%`);
paramIndex++;
return `"${column}" ILIKE $${paramIndex - 1}`;
// Use CAST to TEXT to support UUID and other non-text column types
return `CAST("${column}" AS TEXT) ILIKE $${paramIndex - 1}`;
}
return null;
}).filter(c => c);