Have been enjoying drush soql extension packaged with salesforce (salesforce_api/salesforce_api.drush.inc) for some time.

Recently switched to new All-Versions-2.0 Drush, which is working fine; however, when I use the "drush soql" commands that were working fine previously, now I get invisible output.

The query is made ok, and the data returned from SF, but the data itself is not printed. For example:

$ drush soql show tables

... (142 lines) ...

142 rows in set.

Another example:

$ drush soql select Id from Contact where Email = \'someone@someone.net\'

1 rows in set (2.68 sec)

Programmatically, I am getting data, so I wonder if this is happening to anyone else using "drush soql" commands with the All-Versions-2.0 drush release.

Again, thanks a million for this wonderful drush extension!

CommentFileSizeAuthor
#1 salesforce_api.drush_.inc_.patch1.48 KBvictorkane

Comments

victorkane’s picture

Status: Active » Needs work
StatusFileSize
new1.48 KB

Thanks to jmiccolis comment, here is a quick and dirty fix for the problem, obtained by rearranging the parameters in the call to drush_print_table() in several instances in the file salesforce_api.drush.inc

drush_print_table($rows, 4, TRUE); >>>> drush_print_table($rows, TRUE);

I have even left the previous lines commented out, since this may not be the best solution (output restored, however).

Bevan’s picture

Status: Needs work » Fixed

http://drupal.org/cvs?commit=245264

I removed the commented-out lines.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.