MySQL Forums
Forum List  »  Data Recovery

Re: Views not correctly exported to dump file
Posted by: JK Heydt
Date: April 11, 2022 11:42AM

It looks exactly like the standard dump file that gets created every night:


-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64)
--
-- Host: localhost Database: hto_fcd
-- ------------------------------------------------------
-- Server version 8.0.20

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Temporary view structure for view `vw_charges`
--

DROP TABLE IF EXISTS `vw_charges`;
/*!50001 DROP VIEW IF EXISTS `vw_charges`*/;
SET @saved_cs_client = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `vw_charges` AS SELECT
1 AS `BillingAcctNo`,
1 AS `CompanyNo`,
1 AS `StandingCd`,
1 AS `CustomerTypeCd`,
1 AS `InvoiceGroupCd`,
1 AS `RecordNo`,
1 AS `ChargeBatchNo`,
1 AS `AcctNo`,
1 AS `HaulCd`,
1 AS `PlanNo`,
1 AS `PrechargeNo`,
1 AS `TicketStopNo`,
1 AS `BillingDesc`,
1 AS `AutoChargeNo`,
1 AS `EffectiveDate`,
1 AS `Units`,
1 AS `UnitRate`,
1 AS `TotalCharge`,
1 AS `ClearedBit`,
1 AS `InvoiceNo`,
1 AS `HideBit`*/;
SET character_set_client = @saved_cs_client;

--
-- Final view structure for view `vw_charges`
--

/*!50001 DROP VIEW IF EXISTS `vw_charges`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8mb4 */;
/*!50001 SET character_set_results = utf8mb4 */;
/*!50001 SET collation_connection = utf8mb4_0900_ai_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `vw_charges` AS select `a`.`BillingAcctNo` AS `BillingAcctNo`,`account`.`CompanyNo` AS `CompanyNo`,`account`.`StandingCd` AS `StandingCd`,`account`.`CustomerTypeCd` AS `CustomerTypeCd`,`account`.`InvoiceGroupCd` AS `InvoiceGroupCd`,`charge`.`RecordNo` AS `RecordNo`,`charge`.`ChargeBatchNo` AS `ChargeBatchNo`,`charge`.`AcctNo` AS `AcctNo`,`charge`.`HaulCd` AS `HaulCd`,`charge`.`PlanNo` AS `PlanNo`,`charge`.`PrechargeNo` AS `PrechargeNo`,`charge`.`TicketStopNo` AS `TicketStopNo`,`charge`.`BillingDesc` AS `BillingDesc`,`charge`.`AutoChargeNo` AS `AutoChargeNo`,`charge`.`EffectiveDate` AS `EffectiveDate`,`charge`.`Units` AS `Units`,`charge`.`UnitRate` AS `UnitRate`,`charge`.`TotalCharge` AS `TotalCharge`,`charge`.`ClearedBit` AS `ClearedBit`,`charge`.`InvoiceNo` AS `InvoiceNo`,`charge`.`HideBit` AS `HideBit` from (((((`charge` join `pre_charge` on(((`pre_charge`.`RecordNo` = `charge`.`PrechargeNo`) and (`pre_charge`.`HaulCd` = `charge`.`HaulCd`) and (`pre_charge`.`HideBit` = 0)))) left join `haul_plan` on(((`haul_plan`.`RecordNo` = `charge`.`PlanNo`) and (`charge`.`HaulCd` = 'HAUL')))) left join `route_plan` on(((`route_plan`.`RecordNo` = `charge`.`PlanNo`) and (`charge`.`HaulCd` = 'ROUTE')))) join (select `account`.`RecordNo` AS `RecordNo`,(case when ((`account`.`ParentAcctNo` = 0) or (`account`.`BillToSelfBit` = 1)) then `account`.`RecordNo` else `account`.`ParentAcctNo` end) AS `BillingAcctNo` from `account`) `a` on((`a`.`RecordNo` = `charge`.`AcctNo`))) left join `account` on((`account`.`RecordNo` = `a`.`BillingAcctNo`))) where ((`charge`.`HideBit` = 0) and (ifnull(`haul_plan`.`HideBit`,0) = 0) and (ifnull(`route_plan`.`HideBit`,0) = 0)) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-04-11 13:39:48

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Views not correctly exported to dump file
319
April 11, 2022 11:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.