Categories
Mozilla

Making Macros More Useful

Or at least one of them! I just landed Bug 392055, which makes NS_ENSURE_SUCCESS print out the error code if it failed. No more needing to fire up the debugger to figure out why your function is failing when you don’t expect it. This change is for debug builds only though!

See the bug for all the details, but I hope this helps some people debug things a bit faster. Now go rebuild your whole tree since just about every single file depends on the file I modified! :p

Categories
Mozilla

Storage Explorer 0.1

I just resolved Bug 394108, which means Storage Explorer 0.1 is complete!

There are still several features I want to add such as database properties and data viewing, but right now it offers basic query execution. If you want to help, you can file bugs and/or submit patches!

Here is the version 0.1 build.

Categories
Mozilla

mozStorage Explorer

The other day while working I realized how annoying it can be to debug some mozStorage issues. Enter mozStorage Explorer. It’s a simple little addon I wrote that lets you run queries on databases found in your profile. Right now that’s all it does, but in the future I plan to let it browse data too (as soon as I figure how out how to list all the tables in a database).

I’ve tossed it up here for those of you who want to play with it. Suggestions welcome!

Categories
Mozilla

The Awesomeness of the Try Server

Did you know about the Try Server? It is really a beautiful thing. You log in with your LDAP account (anyone with CVS access should have it), submit the patch, then watch the tree. But that isn’t why it is awesome. It is awesome because it then compiles your changes (in a clobber build), and provides you with the builds. I’ve already found a windows only compile time error with Bug 391870 that would have had a bad impact had I checked it in (as many of us know, the windows test boxen take forever to cycle sometimes). On top of that, I can provide builds for people to play with and report any issues in the bug!

I can’t tell you how useful this could have when I was working on making SQLite a shared library. Luckily then, I had Ryan VanderMeulen testing all the platforms I couldn’t (thanks again Ryan).

Summary: use the Try Server and don’t burn the tree! Rumor has it, they’ll be running tests soon too!

On an unrelated note, awesomeness is apparently a word according to my spell checker. You learn something new everyday…

Categories
Mozilla

Unicode LIKE support for mozStorage

Bug 391156 landed today which enables unicode support for LIKE statements in mozStorage. Thanks goes out to Seth for helping me to get this well tested and working correctly. This feature was needed for places search, as well as download manager’s new search.

Next thing we need to do is to better optimize our LIKE implementation so that is runs faster.