andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.74k stars 521 forks source link

Not working with android version 10+ #538

Open Raj797979 opened 1 year ago

Raj797979 commented 1 year ago

"react": "17.0.2", "react-native": "0.66.4", "react-native-sqlite-storage": "^6.0.1",

Have added below code in react-native.config.js file

dependencies: { "react-native-sqlite-storage": { platforms: { android: { sourceDir: "../node_modules/react-native-sqlite-storage/platforms/android-native", packageImportPath: "import io.liteglue.SQLitePluginPackage;", packageInstance: "new SQLitePluginPackage()" } } } }

Getting bulk update query issue 
If i remove react-native.config code than it's working properly in android version 11 and above but if i add than it's working in 
android version 10 and below 

Everything is same than why it's giving query issue.

**Update query** 

INSERT INTO Maintable SELECT * FROM Landingtable WHERE TRUE
                        ON CONFLICT(Symbol) DO UPDATE SET 
                        Name = excluded.Name,
                        Symbol = excluded.Symbol

Please help me to resolve this issue..