hellios78 / flexviews

Automatically exported from code.google.com/p/flexviews
0 stars 0 forks source link

unsigned tiny int support for flexcdc #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add table with tiny int
2. use flexcdc run_consumer.php
3. insert a record with negative unsigned value in a tinyint field

What is the expected output? What do you see instead?
script crash

What version of the product are you using? On what operating system?
flexviews 1.7.1

Please provide any additional information below.

Fix suggest :

In 
http://code.google.com/p/flexviews/source/browse/trunk/consumer/include/flexcdc.
php#605

switch(trim($datatype)) {
  case 'mediumint':
  case 'tinyint':
  case 'smallint':
  case 'int':
echo1("COL: $col\n");                           if($col[0] == "-" && strpos($col, '(')) {
$col = trim(strstr($col,'('), '()');
}

Original issue reported on code.google.com by c.liouke...@gmail.com on 6 Sep 2011 at 2:15

GoogleCodeExporter commented 9 years ago
fix for this issue is in trunk

Original comment by greenlion@gmail.com on 13 Mar 2012 at 8:27