Comments on: Overflow in Wp-Dstats2 WordPress plugin? https://technology.amis.nl/2004/11/30/large-number-overflow-in-wp-dstats2-wordpress-plugin/ Friends of Oracle and Java Fri, 29 May 2015 11:00:21 +0000 hourly 1 http://wordpress.org/?v=4.2.2 By: jon kvanvig https://technology.amis.nl/2004/11/30/large-number-overflow-in-wp-dstats2-wordpress-plugin/#comment-1229 Sat, 20 Aug 2005 03:18:35 +0000 /?p=278#comment-1229 I don’t know if you’ll see this, since it is a fairly old post, but I’ll try.

I’ve switched to WP 1.5, and wp-dstats2 doesn’t work for it, so started using Stattraq. Amazing result: same overflow problem! If it’s the same issue, the relevant code is:
`$sqlQuery = “SELECT COUNT(DISTINCT session_id) AS cnt FROM $tablestattraq WHERE ” . (‘all’ != $time_frame ? “access_time BETWEEN ‘$startDate’ AND ‘$endDate’ AND” : ” ) .” user_agent_type=0″;
$output = $wpdb->get_row($sqlQuery);
return $output->cnt;

I’m not facile enough to see why this might cause the same overflow problem–any idea?

]]>
By: jon kvanvig https://technology.amis.nl/2004/11/30/large-number-overflow-in-wp-dstats2-wordpress-plugin/#comment-1228 Mon, 04 Apr 2005 01:01:36 +0000 /?p=278#comment-1228 Fantastic! I just hit the problem about a week ago, and have been trying to figure it out ever since. Thanks so much for the code!!!

]]>