I'm not able to delete a table from d1 due to this mysterious error. It's the only table in my datab
I'm not able to delete a table from d1 due to this mysterious error. It's the only table in my database.



await db.batch([
db.prepare('UPDATE sessions SET updated=CURRENT_TIMESTAMP WHERE id_session=?1')
.bind(session)
.expect({ meta: { changes: 1 } }),
db.prepare('SELECT * FROM ...'),
...
])await db.batch([
db.prepare('UPDATE sessions SET updated=CURRENT_TIMESTAMP WHERE id_session=?1 RETURNING *')
.bind(session)
.expect({ meta: { changes: 1 } })
.set({ user: 'id_user' }), // Or user: [ 'id_user', 0 ] to indicate a position in the results array
db.prepare('SELECT * FROM users WHERE id_user=?1').bind( db.get('user') )
...
])
... COLLATE UNICODE_NOCASE.
> Maximum SQL statement length?await db.batch([
db.prepare('UPDATE sessions SET updated=CURRENT_TIMESTAMP WHERE id_session=?1')
.bind(session)
.expect({ meta: { changes: 1 } }),
db.prepare('SELECT * FROM ...'),
...
])await db.batch([
db.prepare('UPDATE sessions SET updated=CURRENT_TIMESTAMP WHERE id_session=?1 RETURNING *')
.bind(session)
.expect({ meta: { changes: 1 } })
.set({ user: 'id_user' }), // Or user: [ 'id_user', 0 ] to indicate a position in the results array
db.prepare('SELECT * FROM users WHERE id_user=?1').bind( db.get('user') )
...
])... COLLATE UNICODE_NOCASE Cannot create a string longer than 0x1fffffe8 characters> Maximum SQL statement lengthawait env.MYDATABASE_DB.prepare(`insert into quotes (order_id, location_name, location_id, status, type, vendor, date, date_exp, vendor_order_id, vendor_order_body) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).bind(parseInt(key), raw_data_post.orders[0].restaurant_name, customer_id, 'pending', type, best_auto_vendor, JSON.stringify(timestamp1), JSON.stringify(timestamp1), 'notsure', results).run()CREATE TABLE quotes (order_id text PRIMARY KEY,location_id text,status text,type text,vendor text,date integer,date_exp integer,vendor_order_id text,vendor_order_body text);