0
update profiles_profiles set unconfirmed_phone=2222222222 where id = 1;


mysql> select * from profiles_profiles\G
*************************** 1. row ***************************
               id: 1
          user_id: 1
            phone: NULL
unconfirmed_phone: 2147483647

何らかの理由で、「2222222222」で更新が機能しません。ただし、1111111111 で動作します。

MySQL は常に他のすべてのフィールドを更新しますが、毎回 unconfirmed_phone を 2147483647 に変更します。

mysql> desc profiles_profiles;
+-------------------+----------+------+-----+---------+----------------+
| Field             | Type     | Null | Key | Default | Extra          |
+-------------------+----------+------+-----+---------+----------------+
| id                | int(11)  | NO   | PRI | NULL    | auto_increment |
| user_id           | int(11)  | NO   | UNI | NULL    |                |
| phone             | int(11)  | YES  | UNI | NULL    |                |
| unconfirmed_phone | int(11)  | YES  |     | NULL    |                |


*************************** 8. row ***************************
           Name: products_products
         Engine: InnoDB
        Version: 10
     Row_format: Compact
           Rows: 0
 Avg_row_length: 0
    Data_length: 16384
Max_data_length: 0
   Index_length: 16384
      Data_free: 5242880
 Auto_increment: 1
    Create_time: 2013-04-11 05:23:31
    Update_time: NULL
     Check_time: NULL
      Collation: utf8_general_ci
       Checksum: NULL
 Create_options: 
        Comment: 
4

1 に答える 1