#55 ✓resolved
alab

SQL Error within TweetModel.saveTweet breaks displaying of tweets

Reported by alab | June 7th, 2010 @ 04:22 AM

I was able to debug this down into JazzRecord.save which throws the SQL Error

JazzRecord.save() sql:
INSERT INTO tweets (user_id, favorited, in_reply_to_user_id, in_reply_to_screen_name, text, created_at, truncated, twitter_id, in_reply_to_status_id, source, SC_timeline_from, SC_user_received_by, SC_is_reply, SC_created_at_unixtime, SC_text_raw, SC_retrieved_unixtime, isSent, id) VALUES(1, 0, NULL, NULL, 'Floyd Landis never doped to improve his result$ & David Stern would never influence the refs in historic rivalry just for ratings #NBACARE , 'Mon Jun 07 03:45:11 +0000 2010', 0, 15603865080, NULL, 'web', 'home', 'c_alb', 0, 1275882311000, 'Floyd Landis never doped to improve his result$ & David Stern would never influence the refs in historic rivalry just for ratings #NBACARE , 1275897932404, 0, NULL)

SQLError: 'Error #3115: SQL Error.', details:'near 'Mon': syntax error', operation:'execute', detailID:'2003'

The problem is the text Value – the original tweet ends with #NBACARE$ – and in the SQL statement the last '$' is lost as well as the the closing quote.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Spaz Desktop project

Shared Ticket Bins

People watching this ticket

Tags

Pages