Bug 19438

Summary: Transaction errors are never displayed in database query view
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Web Inspector (Deprecated)Assignee: Adam Roben (:aroben) <aroben>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch + changelog
darin: review+
patch v2 + changelog darin: review+

Adam Roben (:aroben)
Reported 2008-06-08 12:59:24 PDT
Transaction errors are never displayed in database query view. To repro: 1. Go to http://webkit.org/misc/DatabaseExample.html 2. Go to the Databases panel and click on the NoteTest database 3. Enter the following text on the query input line: INSERT INTO WebKitStickyNotes (note) VALUES (NULL) Results: The line of text you entered disappears, and no error is shown.
Attachments
patch + changelog (4.00 KB, patch)
2008-06-08 13:23 PDT, Adam Roben (:aroben)
darin: review+
patch v2 + changelog (5.42 KB, patch)
2008-06-08 13:42 PDT, Adam Roben (:aroben)
darin: review+
Adam Roben (:aroben)
Comment 1 2008-06-08 13:23:40 PDT
Created attachment 21579 [details] patch + changelog
Darin Adler
Comment 2 2008-06-08 13:26:20 PDT
Comment on attachment 21579 [details] patch + changelog r=me; seems fine as is But this seems a little strange to me. Why wouldn't we instead use two different error functions for the two different cases, and then share a common worker function?
Adam Roben (:aroben)
Comment 3 2008-06-08 13:29:13 PDT
(In reply to comment #2) > (From update of attachment 21579 [details] [edit]) > r=me; seems fine as is > > But this seems a little strange to me. Why wouldn't we instead use two > different error functions for the two different cases, and then share a common > worker function? Yeah, that's probably a better way to go. I guess this patch is a little too quick-n-dirty.
Adam Roben (:aroben)
Comment 4 2008-06-08 13:42:03 PDT
Created attachment 21580 [details] patch v2 + changelog Updated to address Darin's comments.
Darin Adler
Comment 5 2008-06-08 13:49:32 PDT
Comment on attachment 21580 [details] patch v2 + changelog r=me
Adam Roben (:aroben)
Comment 6 2008-06-08 13:58:24 PDT
Committed in r34455
Note You need to log in before you can comment on or make changes to this bug.