title: Could not extract result set after using page(pagable) springboot
body: <p><strong>Repository</strong></p>
  
  <pre><code>@Query(value="SELECT * FROM Invoiceupload.invoiceupload where email=:email", nativeQuery=true)
  
  public Page getInvoiceDetailByEmail(String email,Pageable pageable);
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>// View all invoices by a vendor
  
      @GetMapping("/viewByEmail/{email}")
      public Page&lt;Map&lt;String,Object&gt;&gt; getVendorInvoices(@RequestHeader (value="Authorization") String token,@PathVariable("email") String email,Pageable pageable){
  
          if(request.checkVendorTokenValidity(token)!= null) {    
  
              return invoiceRepository.getInvoiceDetailByEmail(email, pageable);
          }
          else
              throw new Unauthorized(ErrorMessages.NOT_AUTHORISED);
      }
  </code></pre>
  
  <p>I am trying to fetch all invoices from db passing email,for now I have 19 invoice records in my db 
  So when i try to run this endpoint from post man it works fine ,returns all 19 invoices
  BUT when I added another invoice (total=20) it failed to fetch</p>
  
  <p><strong>error:</strong></p>
  
  <blockquote>
    <p>could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet</p>
  </blockquote>
  
  <p>When I tried  replacing  Page> with List> it worked fine,
  <strong>so i think there is a problem in page  and pageable ,can some one please help</strong></p>