Добрый день!
при закрытии смены на кассе (укм49.10) касса выдает ошибку
Use result failed: Error (1032)
Can't find record in 'h':SQL SELECT l.user_id, l.user_name, h.id, h.type FROM trm_out_login l LEFT JOIN
trm_out_receipt_header h ON h.login=l.id and h.cash_id=l.cash_id LEFT JOIN.
после этого на кассу продолжают нормально работать, но опять при закрытии смены выводит такую же ошибку.
Смена не закрывается!
нашел что то:
в таблицах trm_out_login и trm_out_logout есть запис с login =1488. но в таблице trm_out_receipt_header нет такого записа, там с 1487 переходит на 1489. Это поможет? анализировать?
3:37 mysqld started
161108 22:23:37 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
161108 22:23:37 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
161108 22:23:38 InnoDB: Started; log sequence number 5 153496284
161108 22:23:38 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.0.67' socket: '/tmp/mysql.sock' port: 3306 Source distribution
161108 22:24:10 InnoDB: error clustered record for sec rec not found
InnoDB: index `shift_open` of table `ukmclient/trm_out_receipt_header`
InnoDB: sec index record PHYSICAL RECORD: n_fields 3; compact format; info bits 0
0: len 8; hex 00000000000f4dfc; asc M ;; 1: len 8; hex 000000000000011a; asc ;; 2: len 8; hex 000000000002a945; asc E;;
InnoDB: clust index record PHYSICAL RECORD: n_fields 19; compact format; info bits 0
0: len 8; hex 00000000000f4dfc; asc M ;; 1: len 8; hex 000000000002a944; asc D;; 2: len 6; hex 000004b3162f; asc /;; 3: len 7; hex 80000180040084; asc ;; 4: len 8; hex 000000000002b203; asc ;; 5: len 8; hex 00000000000001c4; asc ;; 6: len 8; hex 0000000000000000; asc ;; 7: len 8; hex 0000000000000000; asc ;; 8: len 0; hex ; asc ;; 9: SQL NULL; 10: SQL NULL; 11: len 8; hex 00000000000005d5; asc ;; 12: len 8; hex 000000000000011a; asc ;; 13: len 8; hex 800012561fb09c23; asc V #;; 14: len 4; hex 80000003; asc ;; 15: len 18; hex d4b4d680d5a1d5b4d5a1d680d5afd5b22033; asc 3;; 16: SQL NULL; 17: len 4; hex 80000000; asc ;; 18: len 1; hex 80; asc ;;
TRANSACTION 0 78941986, ACTIVE 0 sec, process no 2527, OS thread id 311307 fetching rows, thread declared inside InnoDB 4
mysql tables in use 4, locked 0
MySQL thread id 9, query id 631 localhost 127.0.0.1 ukm_terminal Sending data
SELECT IFNULL(SUM(p.amount), 0) FROM trm_out_receipt_payment p LEFT JOIN trm_out_receipt_header h ON h.cash_id = p.cash_id and h.id = p.receipt_header LEFT JOIN trm_out_receipt_footer f ON f.id = h.id and f.cash_id = h.cash_id LEFT JOIN trm_out_shift_open so ON so.id = h.shift_open and so.cash_id = h.cash_id WHERE so.id >= 282 AND so.id <= 282 AND f.result = 0 AND p.type = 0 AND p.is_cash = 1 AND h.type = 0 AND p.cash_id = 1003004
InnoDB: Submit a detailed bug report to
161108 22:24:10 InnoDB: error clustered record for sec rec not found
InnoDB: index `shift_open` of table `ukmclient/trm_out_receipt_header`
InnoDB: sec index record PHYSICAL RECORD: n_fields 3; compact format; info bits 0
0: len 8; hex 00000000000f4dfc; asc M ;; 1: len 8; hex 000000000000011a; asc ;; 2: len 8; hex 000000000002a945; asc E;;
InnoDB: clust index record PHYSICAL RECORD: n_fields 19; compact format; info bits 0
0: len 8; hex 00000000000f4dfc; asc M ;; 1: len 8; hex 000000000002a944; asc D;; 2: len 6; hex 000004b3162f; asc /;; 3: len 7; hex 80000180040084; asc ;; 4: len 8; hex 000000000002b203; asc ;; 5: len 8; hex 00000000000001c4; asc ;; 6: len 8; hex 0000000000000000; asc ;; 7: len 8; hex 0000000000000000; asc ;; 8: len 0; hex ; asc ;; 9: SQL NULL; 10: SQL NULL; 11: len 8; hex 00000000000005d5; asc ;; 12: len 8; hex 000000000000011a; asc ;; 13: len 8; hex 800012561fb09c23; asc V #;; 14: len 4; hex 80000003; asc ;; 15: len 18; hex d4b4d680d5a1d5b4d5a1d680d5afd5b22033; asc 3;; 16: SQL NULL; 17: len 4; hex 80000000; asc ;; 18: len 1; hex 80; asc ;;
TRANSACTION 0 78941993, ACTIVE 0 sec, process no 2527, OS thread id 311307 fetching rows, thread declared inside InnoDB 107
mysql tables in use 3, locked 0
MySQL thread id 9, query id 638 localhost 127.0.0.1 ukm_terminal Sending data
SELECT COUNT(h.id) FROM trm_out_receipt_header h LEFT JOIN trm_out_receipt_footer f ON f.id = h.id and f.cash_id = h.cash_id LEFT JOIN trm_out_shift_open so ON so.id = h.shift_open and so.cash_id = h.cash_id WHERE so.id >= 282 AND so.id <= 282 AND f.result = 0 AND h.type = 0 AND h.cash_id = 1003004